{
 "version": "2.2",
 "instance": {
  "fmbh-20231231.htm": {
   "nsprefix": "fmbh",
   "nsuri": "http://www.firstmid.com/20231231",
   "dts": {
    "inline": {
     "local": [
      "fmbh-20231231.htm"
     ]
    },
    "schema": {
     "local": [
      "fmbh-20231231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd",
      "https://xbrl.sec.gov/ecd/2023/ecd-sub-2023.xsd"
     ]
    }
   },
   "keyStandard": 567,
   "keyCustom": 205,
   "axisStandard": 36,
   "axisCustom": 0,
   "memberStandard": 76,
   "memberCustom": 58,
   "hidden": {
    "total": 15,
    "http://xbrl.sec.gov/dei/2023": 3,
    "http://fasb.org/us-gaap/2023": 10,
    "http://www.firstmid.com/20231231": 2
   },
   "contextCount": 698,
   "entityCount": 1,
   "segmentCount": 139,
   "elementCount": 1292,
   "unitCount": 9,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2023": 2722,
    "http://xbrl.sec.gov/dei/2023": 38,
    "http://xbrl.sec.gov/ecd/2023": 4,
    "http://fasb.org/srt/2023": 3
   },
   "report": {
    "R1": {
     "role": "http://www.firstmid.com/20231231/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_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
     "longName": "100010 - Statement - Consolidated Balance Sheets",
     "shortName": "Consolidated Balance Sheets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical",
     "longName": "100020 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CommonStockSharesAuthorized",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockSharesAuthorized",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome",
     "longName": "100040 - Statement - Consolidated Statements of Income",
     "shortName": "Consolidated Statements of Income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss",
     "longName": "100050 - Statement - Consolidated Statements of Comprehensive Income (Loss)",
     "shortName": "Consolidated Statements of Comprehensive Income (Loss)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical",
     "longName": "100060 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)",
     "shortName": "Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
     "longName": "100070 - Statement - Consolidated Statements of Changes in Stockholders' Equity",
     "shortName": "Consolidated Statements of Changes in Stockholders' Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_00e29dc8-16a3-4465-95fc-aeae36c8cfb2",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_422be7c2-d41d-40c4-9458-bd0cb6becd2f",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical",
     "longName": "100080 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)",
     "shortName": "Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4da3b343-4d29-441e-b1c8-0711c6dbd12e",
      "name": "us-gaap:StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
     "longName": "100090 - Statement - Consolidated Statements of Cash Flows",
     "shortName": "Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.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_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.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_c6c2e28f-24b4-481a-866b-d42988d70398",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c6c2e28f-24b4-481a-866b-d42988d70398",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation",
     "longName": "995457 - Disclosure - Basis of Accounting and Consolidation",
     "shortName": "Basis of Accounting and Consolidation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShare",
     "longName": "995467 - Disclosure - Earnings Per Share",
     "shortName": "Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCashAndDueFromBanks",
     "longName": "995477 - Disclosure - Cash and Due from Banks",
     "shortName": "Cash and Due from Banks",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecurities",
     "longName": "995487 - Disclosure - Investment Securities",
     "shortName": "Investment Securities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses",
     "longName": "995497 - Disclosure - Loans and Allowance for Credit Losses",
     "shortName": "Loans and Allowance for Credit Losses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNet",
     "longName": "995507 - Disclosure - Premises and Equipment, Net",
     "shortName": "Premises and Equipment, Net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets",
     "longName": "995517 - Disclosure - Goodwill and Intangible Assets",
     "shortName": "Goodwill and Intangible Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeposits",
     "longName": "995527 - Disclosure - Deposits",
     "shortName": "Deposits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings",
     "longName": "995537 - Disclosure - Repurchase Agreements and Other Borrowings",
     "shortName": "Repurchase Agreements and Other Borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapital",
     "longName": "995547 - Disclosure - Regulatory Capital",
     "shortName": "Regulatory Capital",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstruments",
     "longName": "995557 - Disclosure - Disclosures of Fair Values of Financial Instruments",
     "shortName": "Disclosures of Fair Values of Financial Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlan",
     "longName": "995567 - Disclosure - Deferred Compensation Plan",
     "shortName": "Deferred Compensation Plan",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CompensationRelatedCostsGeneralTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CompensationRelatedCostsGeneralTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlan",
     "longName": "995577 - Disclosure - Stock Incentive Plan",
     "shortName": "Stock Incentive Plan",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlans",
     "longName": "995587 - Disclosure - Retirement Plans",
     "shortName": "Retirement Plans",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes",
     "longName": "995597 - Disclosure - Income Taxes",
     "shortName": "Income Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictions",
     "longName": "995607 - Disclosure - Dividend Restrictions",
     "shortName": "Dividend Restrictions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RestrictionsOnDividendsLoansAndAdvancesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RestrictionsOnDividendsLoansAndAdvancesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilities",
     "longName": "995617 - Disclosure - Commitments and Contingent Liabilities",
     "shortName": "Commitments and Contingent Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactions",
     "longName": "995627 - Disclosure - Related Party Transactions",
     "shortName": "Related Party Transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinations",
     "longName": "995637 - Disclosure - Business Combinations",
     "shortName": "Business Combinations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeases",
     "longName": "995647 - Disclosure - Leases",
     "shortName": "Leases",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivatives",
     "longName": "995657 - Disclosure - Derivatives",
     "shortName": "Derivatives",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatements",
     "longName": "995667 - Disclosure - Parent Company Only Financial Statements",
     "shortName": "Parent Company Only Financial Statements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies",
     "longName": "995687 - Disclosure - Basis of Accounting and Consolidation (Policies)",
     "shortName": "Basis of Accounting and Consolidation (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "34",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables",
     "longName": "995697 - Disclosure - Basis of Accounting and Consolidation (Tables)",
     "shortName": "Basis of Accounting and Consolidation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:SummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:SummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "longName": "995707 - Disclosure - Earnings Per Share (Tables)",
     "shortName": "Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables",
     "longName": "995717 - Disclosure - Investment Securities (Tables)",
     "shortName": "Investment Securities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables",
     "longName": "995727 - 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": "38",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetTables",
     "longName": "995737 - Disclosure - Premises and Equipment, Net (Tables)",
     "shortName": "Premises and Equipment, Net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
     "longName": "995747 - Disclosure - Goodwill and Intangible Assets (Tables)",
     "shortName": "Goodwill and Intangible Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsTables",
     "longName": "995757 - Disclosure - Deposits (Tables)",
     "shortName": "Deposits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:ScheduleOfDepositsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:ScheduleOfDepositsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables",
     "longName": "995767 - Disclosure - Repurchase Agreements and Other Borrowings (Tables)",
     "shortName": "Repurchase Agreements and Other Borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalTables",
     "longName": "995777 - Disclosure - Regulatory Capital (Tables)",
     "shortName": "Regulatory Capital (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables",
     "longName": "995787 - Disclosure - Disclosures of Fair Values of Financial Instruments (Tables)",
     "shortName": "Disclosures of Fair Values of Financial Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanTables",
     "longName": "995797 - Disclosure - Stock Incentive Plan (Tables)",
     "shortName": "Stock Incentive Plan (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables",
     "longName": "995807 - Disclosure - Income Taxes (Tables)",
     "shortName": "Income Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesTables",
     "longName": "995817 - Disclosure - Commitments and Contingent Liabilities (Tables)",
     "shortName": "Commitments and Contingent Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsTables",
     "longName": "995827 - Disclosure - Related Party Transactions (Tables)",
     "shortName": "Related Party Transactions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
     "longName": "995837 - Disclosure - Business Combinations (Tables)",
     "shortName": "Business Combinations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_fc1a7a66-8874-47e4-a02d-4a62ef1dcfcc",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesTables",
     "longName": "995847 - Disclosure - Leases (Tables)",
     "shortName": "Leases (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables",
     "longName": "995857 - Disclosure - Derivatives (Tables)",
     "shortName": "Derivatives (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsTables",
     "longName": "995867 - Disclosure - Parent Company Only Financial Statements (Tables)",
     "shortName": "Parent Company Only Financial Statements (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
     "longName": "995887 - 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": "53",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:FederalFundsSellingPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CashCashEquivalentsAndShortTermInvestmentsTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
     "longName": "995897 - Disclosure - Basis of Accounting and Consolidation - Summary of Estimated Useful Lives for Major Depreciable Classification of Premises and Equipment (Details)",
     "shortName": "Basis of Accounting and Consolidation - Summary of Estimated Useful Lives for Major Depreciable Classification of Premises and Equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "C_b28caaa1-aca1-43c5-a401-cd9a34fc8787",
      "name": "us-gaap:PropertyPlantAndEquipmentUsefulLife",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_b28caaa1-aca1-43c5-a401-cd9a34fc8787",
      "name": "us-gaap:PropertyPlantAndEquipmentUsefulLife",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
     "longName": "995907 - 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": "55",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8914b86f-947f-48c7-a1cc-31b0ada6e905",
      "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:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
     "longName": "995917 - Disclosure - Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Loss (Details)",
     "shortName": "Basis of Accounting and Consolidation - Schedule of Amounts Reclassified from Accumulated Other Comprehensive Loss (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_81eef0e6-6273-40b8-8725-887d91bdb9c0",
      "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:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
     "longName": "995927 - 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": "57",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails",
     "longName": "995937 - Disclosure - Earnings Per Share - Additional Information (Details)",
     "shortName": "Earnings Per Share - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
       "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
       "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
       "span",
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureCashAndDueFromBanksAdditionalInformationDetails",
     "longName": "995947 - Disclosure - Cash and Due from Banks - Additional Information (Details)",
     "shortName": "Cash and Due from Banks - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CashUninsuredAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CashUninsuredAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
     "longName": "995957 - 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": "60",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
     "longName": "995967 - Disclosure - Investment Securities - Additional Information (Details)",
     "shortName": "Investment Securities - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:EquitySecuritiesFvNi",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:PercentageInvestmentBookValueExceedsStockholdersEquity",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails",
     "longName": "995977 - Disclosure - Investment Securities - Schedule of Proceeds From Sales of Available for Sale Investment Securities, Realized Gains and Losses and Income Tax Expense (Details)",
     "shortName": "Investment Securities - Schedule of Proceeds From Sales of Available for Sale Investment Securities, Realized Gains and Losses and Income Tax Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
     "longName": "995987 - 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": "63",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
     "longName": "995997 - 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": "64",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails",
     "longName": "996007 - Disclosure - Investment Securities - Maturities of Investment Securities (Details)",
     "shortName": "Investment Securities - Maturities of Investment Securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AvailableForSaleSecuritiesDebtMaturitiesFairValueFiscalYearMaturityTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AvailableForSaleSecuritiesDebtMaturitiesFairValueFiscalYearMaturityTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
     "longName": "996017 - 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": "66",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FinancingReceivableBeforeAllowanceForCreditLossAndFee",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
     "longName": "996027 - 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": "67",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncreaseDecreaseInAccountsAndNotesReceivable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncreaseDecreaseInAccountsAndNotesReceivable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
     "longName": "996037 - 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": "68",
     "firstAnchor": {
      "contextRef": "C_a669734f-2b53-4d4c-a7e5-e39d75892059",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
     "longName": "996047 - 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": "69",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
     "longName": "996057 - Disclosure - Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio Based on Risk Rating Category and Payment Activity (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Credit Risk Profile of Loan Portfolio Based on Risk Rating Category and Payment Activity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
     "longName": "996067 - 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": "71",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R72": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
     "longName": "996077 - Disclosure - Loans and Allowance for Credit Losses - Recorded Balance of Loans on Nonaccrual Loans (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Recorded Balance of Loans on Nonaccrual Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
     "longName": "996087 - Disclosure - Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Difficulty and Modified (Details)",
     "shortName": "Loans and Allowance for Credit Losses - Amortized Cost Basis of Loans Experiencing Difficulty and Modified (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
     "longName": "996097 - 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": "74",
     "firstAnchor": {
      "contextRef": "C_03e4211d-bb29-479e-9d5f-486ab1c9af64",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_03e4211d-bb29-479e-9d5f-486ab1c9af64",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
     "longName": "996107 - 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": "75",
     "firstAnchor": {
      "contextRef": "C_eb88315d-1e75-4c1c-aebb-4b67a1a3b640",
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_eb88315d-1e75-4c1c-aebb-4b67a1a3b640",
      "name": "fmbh:FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:FinancialEffectOfLoanModificationsTableTextBlock",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
     "longName": "996137 - 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": "76",
     "firstAnchor": {
      "contextRef": "C_246d897f-4ecd-4509-8873-17846dde4593",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_246d897f-4ecd-4509-8873-17846dde4593",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails",
     "longName": "996147 - Disclosure - Premises and Equipment, Net - Summary of Premises and Equipment (Details)",
     "shortName": "Premises and Equipment, Net - Summary of Premises and Equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetAdditionalInformationDetails",
     "longName": "996157 - Disclosure - Premises and Equipment, Net - Additional Information (Details)",
     "shortName": "Premises and Equipment, Net - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:Depreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:Depreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails",
     "longName": "996167 - 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": "79",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:GoodwillGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:GoodwillGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
     "longName": "996177 - 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": "80",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "fmbh:PrincipalBalanceOfMortgageLoansServicedForOthers",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R81": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
     "longName": "996187 - 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": "81",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_76070d7a-b454-4f3a-a92e-1ba04244cf91",
      "name": "fmbh:BusinessAcquisitionUnallocatedPurchasePrice",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R82": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
     "longName": "996197 - 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": "82",
     "firstAnchor": {
      "contextRef": "C_d2c34d6d-d5d2-4c76-a7fe-8bddfcd1b608",
      "name": "us-gaap:FiniteLivedIntangibleAssetsNet",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_01bc71b0-a3c0-4172-80f4-805fc9d726cc",
      "name": "fmbh:MsrmortgageServicingRightsAcquired",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R83": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
     "longName": "996207 - 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": "83",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_947dc497-65be-44a1-958b-16d9a6c1b426",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails",
     "longName": "996217 - 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": "84",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails",
     "longName": "996227 - Disclosure - Deposits - Summary of Deposits (Details)",
     "shortName": "Deposits - Summary of Deposits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:NoninterestBearingDepositLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:InterestBearingDomesticDepositDemand",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfDepositsTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R86": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails",
     "longName": "996237 - Disclosure - Deposits - Summary of Interest Expense on Deposits (Details)",
     "shortName": "Deposits - Summary of Interest Expense on Deposits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:InterestExpenseDemandDepositAccounts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ComponentsOfDepositInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:InterestExpenseDemandDepositAccounts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ComponentsOfDepositInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfAggregateAmountOfTimeDepositsMoreThan100000Details",
     "longName": "996247 - Disclosure - Deposits - Summary of Aggregate Amount of Time Deposits more than 100,000 (Details)",
     "shortName": "Deposits - Summary of Aggregate Amount of Time Deposits more than 100,000 (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:TimeDeposits100000OrMore",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AggregateTimeDepositsMoreThan100000AndRelatedInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:TimeDeposits100000OrMore",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:AggregateTimeDepositsMoreThan100000AndRelatedInterestExpenseTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails",
     "longName": "996257 - Disclosure - Deposits - Summary of Maturities for All Time Deposits (Details)",
     "shortName": "Deposits - Summary of Maturities for All Time Deposits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:TimeDepositMaturitiesYearOne",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:MaturitiesOfTimeDepositsTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:TimeDepositMaturitiesYearOne",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:MaturitiesOfTimeDepositsTableTextBlock",
       "div",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsAdditionalInformationDetails",
     "longName": "996267 - Disclosure - Deposits - Additional Information (Details)",
     "shortName": "Deposits - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "fmbh:TotalOfPublicEntitiyBalances",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "fmbh:TotalOfPublicEntitiyBalances",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R90": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails",
     "longName": "996277 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Borrowings (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Schedule of Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "fmbh:AdvanceFromFederalHomeLoanBankOvernight",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "fmbh:AdvanceFromFederalHomeLoanBankOvernight",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R91": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails",
     "longName": "996287 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Aggregate Annual Maturities of Long-Term Borrowings (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Schedule of Aggregate Annual Maturities of Long-Term Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:AdvancesFromFederalHomeLoanBanks",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c2f7683c-a939-4052-9485-8a5215abfb49",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
     "longName": "996297 - 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": "92",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails",
     "longName": "996307 - 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": "93",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_2bd61986-acfb-4bd9-a9de-a0fdd83f51bf",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails",
     "longName": "996317 - Disclosure - Repurchase Agreements and Other Borrowings - Schedule of Securities Underlying the Repurchase Agreements (Details)",
     "shortName": "Repurchase Agreements and Other Borrowings - Schedule of Securities Underlying the Repurchase Agreements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "C_119b4114-b1b1-40e3-9e81-5cb87a00f32b",
      "name": "us-gaap:ShorttermDebtMaximumMonthendOutstandingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfSecuritiesSoldUnderAgreementsToRepurchaseTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_119b4114-b1b1-40e3-9e81-5cb87a00f32b",
      "name": "us-gaap:ShorttermDebtMaximumMonthendOutstandingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfSecuritiesSoldUnderAgreementsToRepurchaseTableTextBlock",
       "div",
       "fmbh:RepurchaseAgreementsAndOtherBorrowingsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R95": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails",
     "longName": "996327 - 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": "95",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalAdditionalInformationDetails",
     "longName": "996337 - Disclosure - Regulatory Capital - Additional Information (Details)",
     "shortName": "Regulatory Capital - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DescriptionOfRegulatoryRequirementsCapitalAdequacyPurposes",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:DescriptionOfRegulatoryRequirementsCapitalAdequacyPurposes",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R97": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails",
     "longName": "996347 - Disclosure - Regulatory Capital - Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations (Details)",
     "shortName": "Regulatory Capital - Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:Capital",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:Capital",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
     "longName": "996357 - Disclosure - Disclosures of Fair Values of Financial Instruments - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1025b100-0f81-4528-a0ef-12f30528b5db",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R99": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
     "longName": "996367 - Disclosure - Disclosures of Fair Values of Financial Instruments - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "C_a669734f-2b53-4d4c-a7e5-e39d75892059",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c93d4c4c-2737-4f87-af72-dcbdb2cd3d48",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R100": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
     "longName": "996377 - Disclosure - Disclosures of Fair Values of Financial Instruments - Additional Information (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:ImpairedFinancingReceivableRelatedAllowance",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bd990726-693a-4619-af6b-8640c45e867f",
      "name": "us-gaap:ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
     "longName": "996387 - Disclosure - Disclosures of Fair Values of Financial Instruments - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Assets Measured at Fair Value on a Nonrecurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "C_c8ebe182-5956-46a6-8681-f335007cdb5e",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_fe091c82-f518-4790-8f63-f801587ca3f9",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
     "longName": "996397 - Disclosure - Disclosures of Fair Values of Financial Instruments - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "C_8d1994cc-ce78-48ea-a695-811348f364a1",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8d1994cc-ce78-48ea-a695-811348f364a1",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R103": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
     "longName": "996407 - Disclosure - Disclosures of Fair Values of Financial Instruments - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "shortName": "Disclosures of Fair Values of Financial Instruments - Summary of Estimated Fair Values of Company Financial Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_68337c22-1dbe-40fa-a661-2c80c253a438",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlanAdditionalInformationDetails",
     "longName": "996417 - Disclosure - Deferred Compensation Plan - Additional Information (Details)",
     "shortName": "Deferred Compensation Plan - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CommonStockIssuedEmployeeStockTrust",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationRelatedCostsGeneralTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CommonStockIssuedEmployeeStockTrust",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationRelatedCostsGeneralTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
     "longName": "996427 - Disclosure - Stock Incentive Plan - Additional Information (Details)",
     "shortName": "Stock Incentive Plan - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:StockIncentivePlanTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:ShareBasedCompensationOptionAndIncentivePlansPolicy",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails",
     "longName": "996437 - Disclosure - Stock Incentive Plan - Summary of Compensation Cost, Net of Forfeitures, Related to Stock-based Compensation (Details)",
     "shortName": "Stock Incentive Plan - Summary of Compensation Cost, Net of Forfeitures, Related to Stock-based Compensation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:AllocatedShareBasedCompensationExpenseNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:AllocatedShareBasedCompensationExpenseNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails",
     "longName": "996447 - Disclosure - Stock Incentive Plan - Summary of Unvested Stock and Stock Units (Details)",
     "shortName": "Stock Incentive Plan - Summary of Unvested Stock and Stock Units (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "C_a669734f-2b53-4d4c-a7e5-e39d75892059",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfUnvestedRestrictedStockAndRestrictedStockUnitsRollForwardTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_00e29dc8-16a3-4465-95fc-aeae36c8cfb2",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "fmbh:ScheduleOfUnvestedRestrictedStockAndRestrictedStockUnitsRollForwardTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails",
     "longName": "996457 - Disclosure - Retirement Plans - Additional Information (Details)",
     "shortName": "Retirement Plans - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:DefinedContributionPlanEmployerMatchingContributionDescription",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:DefinedContributionPlanEmployerMatchingContributionDescription",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails",
     "longName": "996467 - Disclosure - Income Taxes - Components of Federal and State Income Tax Expense (Details)",
     "shortName": "Income Taxes - Components of Federal and State Income Tax Expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R110": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
     "longName": "996477 - Disclosure - Income Taxes - Additional Information (Details)",
     "shortName": "Income Taxes - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxExaminationPenaltiesAndInterestExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails",
     "longName": "996487 - Disclosure - Income Taxes - Effective Income Tax Reconciliation (Details)",
     "shortName": "Income Taxes - Effective Income Tax Reconciliation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails",
     "longName": "996497 - Disclosure - Income Taxes - Tax Effects of Temporary Differences on Deferred Tax Assets and Deferred Tax Liabilities (Details)",
     "shortName": "Income Taxes - Tax Effects of Temporary Differences on Deferred Tax Assets and Deferred Tax Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
     "longName": "996507 - Disclosure - Dividend Restrictions - Additional Information (Details)",
     "shortName": "Dividend Restrictions - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "C_bed53803-a97f-4557-bb6b-6085713a5809",
      "name": "us-gaap:StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:RestrictionsOnDividendsLoansAndAdvancesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bed53803-a97f-4557-bb6b-6085713a5809",
      "name": "us-gaap:StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:RestrictionsOnDividendsLoansAndAdvancesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails",
     "longName": "996517 - Disclosure - Commitments and Contingent Liabilities - Schedule of Off-balance Sheet Financial Instruments Whose Contract Amounts Represent Credit Risk (Details)",
     "shortName": "Commitments and Contingent Liabilities - Schedule of Off-balance Sheet Financial Instruments Whose Contract Amounts Represent Credit Risk (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "C_7bf70daa-036d-45d0-866c-ebd463bf3737",
      "name": "fmbh:FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialRe",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7bf70daa-036d-45d0-866c-ebd463bf3737",
      "name": "fmbh:FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialRe",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R115": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
     "longName": "996527 - Disclosure - Commitments and Contingent Liabilities - Additional Information (Details)",
     "shortName": "Commitments and Contingent Liabilities - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "C_f4fe390c-ede0-469b-81c5-ca62fa032f84",
      "name": "fmbh:NumberOfExpectedDaysToFundCommitments",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f4fe390c-ede0-469b-81c5-ca62fa032f84",
      "name": "fmbh:NumberOfExpectedDaysToFundCommitments",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R116": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
     "longName": "996537 - Disclosure - Related Party Transactions - Additional Information (Details)",
     "shortName": "Related Party Transactions - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:LoansAndLeasesReceivableRelatedParties",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:RelatedPartyDepositLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetails",
     "longName": "996547 - Disclosure - Related Party Transactions - Schedule of Related Party Transactions (Details)",
     "shortName": "Related Party Transactions - Schedule of Related Party Transactions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "C_a669734f-2b53-4d4c-a7e5-e39d75892059",
      "name": "us-gaap:LoansAndLeasesReceivableRelatedParties",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "fmbh:NewLoanReceivableRelatedParties",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
     "longName": "996557 - Disclosure - Business Combinations - Additional Information (Details)",
     "shortName": "Business Combinations - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7d2adb58-7db4-4407-80e7-36be8dab01b7",
      "name": "us-gaap:GoodwillAcquiredDuringPeriod",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
     "longName": "996567 - Disclosure - Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)",
     "shortName": "Business Combinations - Estimated Fair Values of Assets Acquired and Liabilities Assumed (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d295c729-4db8-4f21-879b-de47cead648b",
      "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-20231231.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
     "longName": "996577 - 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": "120",
     "firstAnchor": {
      "contextRef": "C_02b6d27a-5c58-4bcb-a3fd-6ef00e1110d3",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R121": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
     "longName": "996587 - 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": "121",
     "firstAnchor": {
      "contextRef": "C_afa8a0d8-4362-4bf7-a652-a5d5dc4f7567",
      "name": "us-gaap:BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationsPolicy",
       "div",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R122": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
     "longName": "996597 - 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": "122",
     "firstAnchor": {
      "contextRef": "C_afa8a0d8-4362-4bf7-a652-a5d5dc4f7567",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_afa8a0d8-4362-4bf7-a652-a5d5dc4f7567",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R123": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
     "longName": "996617 - 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": "123",
     "firstAnchor": {
      "contextRef": "C_fc1a7a66-8874-47e4-a02d-4a62ef1dcfcc",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_fc1a7a66-8874-47e4-a02d-4a62ef1dcfcc",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R124": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
     "longName": "996627 - Disclosure - Leases - Additional Information (Details)",
     "shortName": "Leases - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "C_aff0c4e1-b175-4201-a637-9408072250e0",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_aff0c4e1-b175-4201-a637-9408072250e0",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
     "longName": "996637 - 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": "125",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R126": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails",
     "longName": "996647 - Disclosure - Leases - Summary of Future Minimum Lease Payments (Details)",
     "shortName": "Leases - Summary of Future Minimum Lease Payments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R127": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails",
     "longName": "996657 - 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": "127",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R128": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
     "longName": "996667 - 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": "128",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R129": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
     "longName": "996677 - Disclosure - Derivatives - Schedule of Derivative Instruments (Details)",
     "shortName": "Derivatives - Schedule of Derivative Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "129",
     "firstAnchor": {
      "contextRef": "C_b017be45-fbb9-476f-a9c6-e09d697cd868",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_b017be45-fbb9-476f-a9c6-e09d697cd868",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R130": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
     "longName": "996687 - 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": "130",
     "firstAnchor": {
      "contextRef": "C_1db2bde9-f92a-4689-99ec-952f9dc3f44e",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1db2bde9-f92a-4689-99ec-952f9dc3f44e",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R131": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails",
     "longName": "996697 - Disclosure - Derivatives - Summary of Hedged Instrument (Details)",
     "shortName": "Derivatives - Summary of Hedged Instrument (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R132": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
     "longName": "996707 - 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": "132",
     "firstAnchor": {
      "contextRef": "C_1562e547-908c-46ac-87fc-2dbadcac71fd",
      "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-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1562e547-908c-46ac-87fc-2dbadcac71fd",
      "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-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R133": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
     "longName": "996717 - Disclosure - Parent Company Only Financial Statements - Condensed Balance Sheets (Details)",
     "shortName": "Parent Company Only Financial Statements - Condensed Balance Sheets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "C_d8b5a769-646c-4719-be3d-1979e784c720",
      "name": "us-gaap:PropertyPlantAndEquipmentNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_68f3e7b3-b0fd-4aa9-a1eb-ba4cbd1a0d1a",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
       "div",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R134": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
     "longName": "996727 - Disclosure - Parent Company Only Financial Statements - Condensed Statements of Income and Comprehensive Income (Loss) (Details)",
     "shortName": "Parent Company Only Financial Statements - Condensed Statements of Income and Comprehensive Income (Loss) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "name": "us-gaap:IncomeTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ac702f98-2ae7-4e86-91c3-9eeecbff4af7",
      "name": "us-gaap:IncomeLossFromSubsidiariesBeforeTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfCondensedIncomeStatementTableTextBlock",
       "div",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    },
    "R135": {
     "role": "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
     "longName": "996737 - Disclosure - Parent Company Only Financial Statements - Condensed Statements of Cash Flows (Details)",
     "shortName": "Parent Company Only Financial Statements - Condensed Statements of Cash Flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "C_f795f1f7-07a2-44e8-98eb-9cf8da9a3b0b",
      "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-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ac702f98-2ae7-4e86-91c3-9eeecbff4af7",
      "name": "us-gaap:DepreciationAmortizationAndAccretionNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfCondensedCashFlowStatementTableTextBlock",
       "div",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "fmbh-20231231.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "fmbh_ATMDebitCardExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ATMDebitCardExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATM Debit Card Expense",
        "label": "A T M Debit Card Expense",
        "terseLabel": "ATM / debit card expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdate201602Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingStandardsUpdate201602Member",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2016-02 [Member]",
        "terseLabel": "Accounting Standards Update 2016-02",
        "documentation": "Accounting Standards Update 2016-02 Leases (Topic 842)."
       }
      }
     },
     "auth_ref": [
      "r831"
     ]
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingStandardsUpdate201613Member",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2016-13 [Member]",
        "terseLabel": "ASU 2016-13",
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments."
       }
      }
     },
     "auth_ref": [
      "r497"
     ]
    },
    "us-gaap_AccountsNotesAndLoansReceivableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts, Notes, Loans and Financing Receivable [Line Items]",
        "terseLabel": "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": []
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent [Member]",
        "terseLabel": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent",
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r27",
      "r52",
      "r1268",
      "r1269",
      "r1270"
     ]
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "terseLabel": "Accumulated depreciation and amortization",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r337",
      "r943"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income Loss [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": [
      "r361",
      "r362",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total",
        "terseLabel": "Accumulated other comprehensive loss",
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r52",
      "r186",
      "r344",
      "r939",
      "r968",
      "r972"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income Loss [Table]",
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r361",
      "r362",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)",
        "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": [
      "r5",
      "r27",
      "r52",
      "r775",
      "r778",
      "r856",
      "r963",
      "r964",
      "r1268",
      "r1269",
      "r1270",
      "r1285",
      "r1286",
      "r1287"
     ]
    },
    "fmbh_AcquiredBookValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AcquiredBookValueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Acquired Book Value [Member]",
        "label": "Acquired Book Value [Member]",
        "terseLabel": "Acquired Book Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Finite-Lived Intangible Assets, Weighted Average Useful Life",
        "terseLabel": "Weighted average amortization period of intangibles",
        "documentation": "Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1191"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid in Capital, Common Stock",
        "terseLabel": "Additional paid-in capital",
        "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": [
      "r180"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-in Capital",
        "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": [
      "r710",
      "r711",
      "r712",
      "r987",
      "r1285",
      "r1286",
      "r1287",
      "r1362",
      "r1396"
     ]
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Axis]",
        "terseLabel": "Accounting Standards Update",
        "documentation": "Information by amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r390",
      "r391",
      "r392",
      "r393",
      "r404",
      "r456",
      "r457",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r557",
      "r710",
      "r711",
      "r712",
      "r736",
      "r737",
      "r738",
      "r739",
      "r752",
      "r753",
      "r754",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r808",
      "r809",
      "r815",
      "r816",
      "r817",
      "r818",
      "r826",
      "r827",
      "r832",
      "r833",
      "r834",
      "r835",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r899",
      "r900",
      "r901",
      "r961",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972"
     ]
    },
    "fmbh_AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AdjustmentsToAdditionalPaidInCapitalIncomeTaxBenefitFromDeferredCompensation",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax benefit associated with an equity-based deferred compensation plan. The tax benefit results from the deduction by the entity on its tax return for an award of stock that exceeds the cumulative compensation cost for common stock or preferred stock recognized for financial reporting. Includes any resulting tax benefit that exceeds the previously recognized deferred tax asset (excess tax benefits).",
        "label": "Adjustments To Additional Paid In Capital Income Tax Benefit From Deferred Compensation",
        "terseLabel": "Tax benefit related to deferred compensation distributions"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Additional Paid in Capital, Stock Issued, Issuance Costs",
        "negatedLabel": "Issuance costs pursuant to acquisition of Delta Bancshares Company",
        "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": [
      "r28",
      "r218"
     ]
    },
    "fmbh_AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AdjustmentsToDeferredCompensationEquityShareBasedCompensationRestrictedStockUnitOrRestrictedStockAward",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to deferred compensation equity share based compensation restricted stock unit or restricted stock award.",
        "label": "Adjustments To Deferred Compensation Equity Share Based Compensation Restricted Stock Unit Or Restricted Stock Award",
        "terseLabel": "Vested restricted shares/units compensation expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net income to net cash provided by operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AdvanceFromFederalHomeLoanBankOvernight": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AdvanceFromFederalHomeLoanBankOvernight",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": "fmbh_ShortTermAndLongTermBorrowings",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Advance from federal home loan bank overnight.",
        "label": "Advance from Federal Home Loan Bank Overnight",
        "terseLabel": "Federal Home Loan Bank-overnight"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Advances from Federal Home Loan Banks",
        "totalLabel": "Advance from Federal Home Loan Bank, Total",
        "terseLabel": "Federal Home Loan Bank (FHLB) fixed-term advances",
        "label": "FHLB borrowings",
        "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": [
      "r269"
     ]
    },
    "fmbh_AfsSecuritiesDebtMaturitiesSingleMaturityDateAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AfsSecuritiesDebtMaturitiesSingleMaturityDateAfterTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFS Securities, Debt Maturities, Single Maturity Date, After Ten Years, Fair Value",
        "label": "Afs Securities Debt Maturities Single Maturity Date After Ten Years Fair Value",
        "terseLabel": "AFS Securities, Debt Maturities, Single Maturity Date, After Ten Years, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AfsSecuritiesDebtMaturitiesSingleMaturityDateNextTwelveMonthsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AfsSecuritiesDebtMaturitiesSingleMaturityDateNextTwelveMonthsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFS Securities, Debt Maturities, Single Maturity Date, Next Twelve Months, Fair Value",
        "label": "Afs Securities Debt Maturities Single Maturity Date Next Twelve Months Fair Value",
        "terseLabel": "AFS Securities, Debt Maturities, Single Maturity Date, Next Twelve Months, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AfsSecuritiesDebtMaturitiesSingleMaturityDateYearSixThroughTenFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AfsSecuritiesDebtMaturitiesSingleMaturityDateYearSixThroughTenFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFS Securities, Debt Maturities, Single Maturity Date, Year Six Through Ten, Fair Value",
        "label": "Afs Securities Debt Maturities Single Maturity Date Year Six Through Ten Fair Value",
        "terseLabel": "AFS Securities, Debt Maturities, Single Maturity Date, Year Six Through Ten, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AfsSecuritiesDebtMaturitiesSingleMaturityDateYearTwoThroughFiveFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AfsSecuritiesDebtMaturitiesSingleMaturityDateYearTwoThroughFiveFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFS Securities, Debt Maturities, Single Maturity Date, Year Two Through Five, Fair Value",
        "label": "Afs Securities Debt Maturities Single Maturity Date Year Two Through Five Fair Value",
        "terseLabel": "AFS Securities, Debt Maturities, Single Maturity Date, Year Two Through Five, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AggregateTimeDepositsMoreThan100000AndRelatedInterestExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AggregateTimeDepositsMoreThan100000AndRelatedInterestExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate Time Deposits more than 100,000 and related interest expense [Table Text Block]",
        "label": "Aggregate Time Deposits More Than100000 And Related Interest Expense Table [Text Block]",
        "terseLabel": "Summary of Aggregate Amount of Time Deposits more than 100,000"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1161",
      "r1173",
      "r1183",
      "r1209"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1164",
      "r1176",
      "r1186",
      "r1212"
     ]
    },
    "fmbh_AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AgriculturalExcludingAgriculturalRealEstatePortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agricultural excluding agricultural real estate portfolio segment.",
        "label": "Agricultural Excluding Agricultural Real Estate Portfolio Segment [Member]",
        "terseLabel": "Agricultural Loans"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AgriculturalLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans or extension of credit for agricultural uses.",
        "label": "Agricultural Loans [Member]",
        "terseLabel": "Agricultural Loans",
        "verboseLabel": "Agricultural"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AgriculturalPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agricultural portfolio segment.",
        "label": "Agricultural Portfolio Segment [Member]",
        "terseLabel": "Agricultural"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AgriculturalRealEstateLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AgriculturalRealEstateLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans or extension of credit secured by farms.",
        "label": "Agricultural Real Estate Loans [Member]",
        "terseLabel": "Agricultural Real Estate Loans",
        "verboseLabel": "Farm"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1204"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1168",
      "r1177",
      "r1187",
      "r1204",
      "r1213",
      "r1217",
      "r1225"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1223"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Pre-tax compensation expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r705",
      "r717"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpenseNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Expense, after Tax",
        "terseLabel": "Total share-based compensation expense, net of income taxes",
        "documentation": "Amount, after tax, of expense for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss [Table Text Block]",
        "terseLabel": "Allowance for Credit Losses Based on Portfolio Segment",
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r79",
      "r1322"
     ]
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForLoanAndLeaseLossesWriteoffsNetAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss, Writeoff, after Recovery [Abstract]",
        "terseLabel": "Allowance for loan losses [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfFinancingCostsAndDiscounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfFinancingCostsAndDiscounts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Debt Issuance Costs and Discounts",
        "terseLabel": "Debt issuance discount",
        "totalLabel": "Amortization of Debt Issuance Costs and Discounts, Total",
        "documentation": "Amount of amortization expense attributable to debt discount (premium) and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r590",
      "r829",
      "r1112",
      "r1113",
      "r1278"
     ]
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Intangible Assets",
        "terseLabel": "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",
      "r94",
      "r98"
     ]
    },
    "us-gaap_AmortizationOfMortgageServicingRightsMSRs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfMortgageServicingRightsMSRs",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Mortgage Servicing Rights (MSRs)",
        "negatedLabel": "Mortgage servicing rights amortized",
        "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",
      "r1378"
     ]
    },
    "fmbh_AmortizationPeriodOfLoans": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AmortizationPeriodOfLoans",
     "presentation": [
      "http://www.firstmid.com/20231231/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": []
    },
    "fmbh_AnnualAwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AnnualAwardsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Annual awards.",
        "label": "Annual Awards [Member]",
        "terseLabel": "Annual Awards"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AnnualBenefitAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AnnualBenefitAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Annual Benefit to be paid",
        "label": "Annual Benefit Amount",
        "terseLabel": "Annual benefit amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "terseLabel": "Number of anti-dilutive shares not considered in computing diluted earnings per share",
        "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": [
      "r418"
     ]
    },
    "us-gaap_AssetPledgedAsCollateralWithoutRightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetPledgedAsCollateralWithoutRightMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Pledged as Collateral without Right [Member]",
        "terseLabel": "Asset Pledged as Collateral without Right",
        "documentation": "Asset pledged as collateral for which secured party (transferee) does not have right to sell or repledge by contract or custom."
       }
      }
     },
     "auth_ref": [
      "r757",
      "r877",
      "r879"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "terseLabel": "Assets",
        "totalLabel": "Total assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r240",
      "r341",
      "r378",
      "r424",
      "r432",
      "r436",
      "r496",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r757",
      "r761",
      "r813",
      "r936",
      "r1013",
      "r1133",
      "r1149",
      "r1335",
      "r1336",
      "r1370"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Total assets",
        "verboseLabel": "Assets, Fair Value",
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r142"
     ]
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Sold under Agreements to Repurchase [Line Items]",
        "terseLabel": "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": [
      "r382"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "terseLabel": "Auditor Firm Id",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location",
        "terseLabel": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name",
        "terseLabel": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169"
     ]
    },
    "fmbh_AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleAndHeldForMaturitySecuritiesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of available-for-sale and held-for-maturity securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures.",
        "label": "Available For Sale And Held For Maturity Securities Table [Text Block]",
        "terseLabel": "Available for Sale and Held For Maturity Securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Gross Unrealized Gains",
        "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": [
      "r467"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Gross Unrealized (Losses)",
        "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": [
      "r468"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available-for-sale, amotized cost",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost",
        "totalLabel": "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": [
      "r464",
      "r531",
      "r934"
     ]
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,Total (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature after one through five years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After1 Through5 Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After 1 through 5 years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature after five through ten years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After5 Through10 Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, After 5 through 10 years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesAfterTenYears",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available for sale government security, when the effect of reduced taxes are taken into account, for securities that mature after ten years. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities After Ten Years",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield,After ten years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleFullTaxEquivalentYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The yield on an available-for-sale government security, when the effect of reduced taxes are taken into account, for securities that mature in less than twelve months. The full tax-equivalent yield show what yield a fully taxable security would have to give, in order to be equivalent to a tax free government security.",
        "label": "Available For Sale Full Tax Equivalent Yield Maturities Year One",
        "terseLabel": "Available-for-sale, Full Tax-equivalent yield, One year or less (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale [Abstract]",
        "terseLabel": "Available-for-sale: [Abstract]",
        "verboseLabel": "Available-for-sale securities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionQualitativeDisclosureAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-Sale Securities, Continuous Unrealized Loss Position, Qualitative Disclosure [Abstract]",
        "terseLabel": "Available-for-sale Securities, Continuous Unrealized Loss Position, Qualitative Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, 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), 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": [
      "r1307"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10",
        "terseLabel": "Available-for-sale investments, After 5 through 10 years",
        "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": [
      "r473",
      "r918"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, 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), 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": [
      "r1306"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five",
        "terseLabel": "Available-for-sale investments, After 1 through 5 years",
        "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": [
      "r472",
      "r917"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Debt Securities, Available-for-sale, Allocated and Single Maturity Date, Maturity, after 10 Years, 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), 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": [
      "r1308"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Available-for-sale investments, After ten years",
        "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": [
      "r474",
      "r919"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostBasisRollingMaturityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostBasisRollingMaturityAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Rolling Maturity [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Amortized Cost, Rolling Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleSecuritiesDebtMaturitiesFairValueFiscalYearMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueFiscalYearMaturityTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale Securities, Debt Maturities, Fair Value, Fiscal Year Maturity [Table Text Block]",
        "label": "Available For Sale Securities Debt Maturities Fair Value Fiscal Year Maturity Table [Text Block]",
        "terseLabel": "Maturities of Investment Securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueRollingMaturityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueRollingMaturityAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, Fair Value, Rolling Maturity [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Fair Value, Rolling Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleSecuritiesDebtMaturitiesSIngleMaturityDateFairValuesinglematurityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSIngleMaturityDateFairValuesinglematurityAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-For-Sale Securities, Debt Maturities, SIngle Maturity Date, Fair Value single maturity [Abstract]",
        "label": "Available For Sale Securities Debt Maturities S Ingle Maturity Date Fair Valuesinglematurity [Abstract]",
        "verboseLabel": "Available-For-Sale Securities, Debt Maturities, Single Maturity Date, Fair Value single maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Fair Value",
        "totalLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Fair Value",
        "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."
       }
      }
     },
     "auth_ref": [
      "r1303",
      "r1304",
      "r1384"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Amortized Cost",
        "totalLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, 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), with single maturity date and allocated without single maturity date."
       }
      }
     },
     "auth_ref": [
      "r1303",
      "r1304",
      "r1383"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Amortized Cost [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Amortized Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, 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), 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": [
      "r1305"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Available-for-sale investments, One year or less",
        "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": [
      "r471",
      "r916"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, without Single Maturity Date, Amortized Cost",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, 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), without single maturity date and not allocated over maturity grouping."
       }
      }
     },
     "auth_ref": [
      "r1303",
      "r1304"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Maturity, without Single Maturity Date, Fair Value",
        "terseLabel": "Debt Securities, Available-for-sale, Maturity, without Single Maturity Date, Fair Value",
        "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), without single maturity date and not allocated over maturity grouping."
       }
      }
     },
     "auth_ref": [
      "r470",
      "r915",
      "r1303"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale, at fair value (amortized cost of $1,363,721 and $1,432,372 at December 31, 2023 and 2022, respectively)",
        "totalLabel": "Available-for-sale investments, Fair Value",
        "verboseLabel": "Total available-for-sale securities",
        "terseLabel": "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": [
      "r465",
      "r531",
      "r904",
      "r1300"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtSecuritiesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Current",
        "totalLabel": "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), classified as current."
       }
      }
     },
     "auth_ref": [
      "r461",
      "r531"
     ]
    },
    "fmbh_AvailableForSaleSecuritiesIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleSecuritiesIncomeTaxExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the net income tax expense (benefit) on the gain or loss resulting from the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
        "label": "Available For Sale Securities Income Tax Expense",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleWeightedAverageYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities.",
        "label": "Available For Sale Weighted Average Yield Maturities",
        "terseLabel": "Available-for-sale , Weighted average yield,Total (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after ten years.",
        "label": "Available For Sale Weighted Average Yield Maturities After10 Years",
        "terseLabel": "Available-for-sale , Weighted average yield,After ten years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after one through five years.",
        "label": "Available For Sale Weighted Average Yield Maturities After1 Through5 Years",
        "terseLabel": "Available-for-sale , Weighted average yield,After 1 through 5 years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities after five through ten years.",
        "label": "Available For Sale Weighted Average Yield Maturities After5 Through10 Years",
        "terseLabel": "Available-for-sale, Weighted average yield,After 5 through 10 years (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_AvailableForSaleWeightedAverageYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "AvailableForSaleWeightedAverageYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average yield for available-for-sale investment securities held by the entity with maturities of one year or less.",
        "label": "Available For Sale Weighted Average Yield Maturities Year One",
        "terseLabel": "Available-for-sale, Weighted average yield, One year or less (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r1220"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1221"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r1216"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails",
      "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": [
      "r676",
      "r677",
      "r678",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r1219"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1218"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1217"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1217"
     ]
    },
    "fmbh_BBMAndAssociatesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BBMAndAssociatesIncMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "BBM and Associates Inc.",
        "label": "B B M And Associates Inc [Member]",
        "terseLabel": "BBM &amp; Associates, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location",
        "documentation": "Information by location on balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location",
        "documentation": "Location in the balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r135"
     ]
    },
    "fmbh_BalloonPeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BalloonPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The period of time when the final, large payment is due on a real estate loan.",
        "label": "Balloon Period",
        "terseLabel": "Balloon period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsurance",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank Owned Life Insurance",
        "terseLabel": "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": [
      "r1379"
     ]
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsuranceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank Owned Life Insurance Income",
        "terseLabel": "Bank owned life insurance",
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies."
       }
      }
     },
     "auth_ref": [
      "r258"
     ]
    },
    "fmbh_BankOwnedLifeInsuranceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BankOwnedLifeInsuranceMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank Owned Life Insurance",
        "label": "Bank Owned Life Insurance [Member]",
        "documentation": "Bank owned life insurance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioCapitalAdequacyMinimum": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioCapitalAdequacyMinimum",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "terseLabel": "Common Equity Tier One Risk Based Capital Required for Capital Adequacy to RWA (%)",
        "documentation": "Ratio of minimum Common Equity Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "terseLabel": "Common Equity Tier One Risk Based Capital Required To Be Well Capitalized to RiWA (%)",
        "documentation": "Ratio of minimum Common Equity Tier 1 risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Accounting and Consolidation",
        "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_BhsTrustIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BhsTrustIMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "BHS Trust I",
        "terseLabel": "BHS Trust I",
        "label": "BHS Trust I [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BhsTrustIiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BhsTrustIiMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BHS Trust II",
        "label": "BHS Trust II [Member]",
        "documentation": "Bhs Trust II"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BlackhawkAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BlackhawkAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blackhawk Acquisition",
        "label": "Blackhawk Acquisition [Member]",
        "documentation": "Blackhawk acquisition."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BlackhawkBancorpIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BlackhawkBancorpIncMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blackhawk Bancorp, Inc",
        "label": "Blackhawk Bancorp, Inc [Member]",
        "documentation": "Blackhawk Bancorp, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BlackhawkMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BlackhawkMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blackhawk",
        "label": "Blackhawk [Member]",
        "documentation": "Blackhawk."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BuildingAndBuildingImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BuildingAndBuildingImprovementsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Building and Building Improvements [Member]",
        "terseLabel": "Building and Building Improvements",
        "verboseLabel": "Buildings and Improvements",
        "documentation": "Facility held for productive use including, but not limited to, office, production, storage and distribution facilities and any addition, improvement, or renovation to the structure, for example, but not limited to, interior masonry, interior flooring, electrical, and plumbing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Acquiree [Domain]",
        "terseLabel": "Business Acquisition, Acquiree",
        "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": [
      "r750",
      "r1119",
      "r1122"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r117",
      "r119",
      "r750",
      "r1119",
      "r1122"
     ]
    },
    "us-gaap_BusinessAcquisitionCostOfAcquiredEntityTransactionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionCostOfAcquiredEntityTransactionCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Transaction Costs",
        "terseLabel": "Pre-tax of acquisition 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/2023",
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Equity Interest Issued or Issuable, Number of Shares",
        "terseLabel": "Consideration payable in shares",
        "verboseLabel": "Consideration paid in shares",
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Line Items]",
        "terseLabel": "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": [
      "r750"
     ]
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Percentage of Voting Interests Acquired",
        "terseLabel": "Percentage of issued and outstanding shares acquired",
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination."
       }
      }
     },
     "auth_ref": [
      "r118"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareBasic",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Pro Forma Earnings Per Share, Basic",
        "terseLabel": "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": [
      "r1240",
      "r1241"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareDiluted",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Pro Forma Earnings Per Share, Diluted",
        "terseLabel": "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": [
      "r1240",
      "r1241"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Pro Forma Information [Table Text Block]",
        "terseLabel": "Unaudited Pro Forma Condensed Combined Financial Information",
        "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": [
      "r1240",
      "r1241"
     ]
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionSharePrice",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Share Price",
        "terseLabel": "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/20231231",
     "localname": "BusinessAcquisitionUnallocatedPurchasePrice",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisition unallocated purchase price.",
        "label": "Business Acquisition Unallocated Purchase Price",
        "terseLabel": "Unallocated purchase price"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisitions pro forma income tax expense benefit.",
        "label": "Business Acquisitions Pro Forma Income Tax Expense Benefit",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Income before Income Taxes",
        "label": "Business Acquisitions Pro Forma Incomebefore Income Taxes",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Pro Forma Net Income (Loss)",
        "totalLabel": "Net income available to common stockholders",
        "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": [
      "r748",
      "r749"
     ]
    },
    "fmbh_BusinessAcquisitionsProFormaNetInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaNetInterestIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Net Interest Income",
        "label": "Business Acquisitions Pro Forma Net Interest Income",
        "terseLabel": "Net interest income"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaNonInterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Non-Interest Expense",
        "label": "Business Acquisitions Pro Forma Non Interest Expense",
        "terseLabel": "Non-interest expense"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaNonInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaNonInterestIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Acquisitions Pro Forma Non-Interest Income",
        "label": "Business Acquisitions Pro Forma Non Interest Income",
        "terseLabel": "Non-interest income"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAcquisitionsProFormaProvisionForLoanLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAcquisitionsProFormaProvisionForLoanLosses",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails": {
       "parentTag": "fmbh_BusinessAcquisitionsProFormaIncomebeforeIncomeTaxes",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for credit losses",
        "documentation": "Business Acquisitions Pro Forma Provision For Loan Losses",
        "label": "Business Acquisitions Pro Forma Provision For Loan Losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Assets [Member]",
        "label": "Business Assets [Member]",
        "terseLabel": "Business Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Acquisition Related Costs",
        "terseLabel": "Pre-tax of acquisition 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": [
      "r116"
     ]
    },
    "fmbh_BusinessCombinationConsiderationAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationConsiderationAllowanceForCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "BusinessCombinationConsiderationAllowanceForCreditLossesOnNonPcdLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "BusinessCombinationConsiderationTransferred1",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Consideration Transferred",
        "totalLabel": "Total consideration paid",
        "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": [
      "r2",
      "r3",
      "r21"
     ]
    },
    "us-gaap_BusinessCombinationConsiderationTransferredAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationConsiderationTransferredAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Consideration Transferred [Abstract]",
        "terseLabel": "Consideration paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Consideration Transferred, Equity Interests Issued and Issuable",
        "terseLabel": "Common stock",
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r3"
     ]
    },
    "fmbh_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationCommonStockIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationCommonStockIssued",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common stock consideration value",
        "terseLabel": "Common stock issued (3,290,222 shares)",
        "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."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination Disclosure [Text Block]",
        "terseLabel": "Business Combinations",
        "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": [
      "r225",
      "r751"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other borrowings.",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Borrowings",
        "terseLabel": "Other borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetAcquiredAndLiabilityAssumedOtherRealEstateOwned",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable asset acquired and liability assumed other real estate owned.",
        "label": "Business Combination Recognized Identifiable Asset Acquired And Liability Assumed Other Real Estate Owned",
        "terseLabel": "Other real estate owned"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccretedToInterestIncomeOverRemainingTermOfLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed accreted to interest income over remaining term of loans.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Accreted To Interest Income Over Remaining Term Of Loans",
        "terseLabel": "Accreted to interest income over the remaining term of loans"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedAndOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets",
        "totalLabel": "Total assets acquired",
        "documentation": "Amount of assets acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCapitalLeaseObligation",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Asset Acquired and Liability Assumed, Lease Obligation",
        "terseLabel": "Lease liability",
        "documentation": "Amount of lease obligation assumed in business combination."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "terseLabel": "Cash and due from banks",
        "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": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsMarketableSecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Marketable Securities",
        "terseLabel": "Investment 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": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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": [
      "r121"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccruedInterestPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccruedInterestPayable",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated and jr. subordinated debt",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities, Long-Term 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": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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": [
      "r121"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFhlbStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFhlbStock",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans, net",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Financial Assets",
        "documentation": "The amount of financial assets (as defined) recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r121",
      "r234"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIncomeTaxReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIncomeTaxReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill, Total",
        "verboseLabel": "Intangible assets fair value",
        "terseLabel": "Intangible assets",
        "documentation": "Amount of intangible assets, excluding goodwill, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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": [
      "r120",
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities",
        "totalLabel": "Total liabilities assumed",
        "documentation": "Amount of liabilities assumed at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Liabilities",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities [Abstract]",
        "terseLabel": "Liabilities and stockholders' equity"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net",
        "totalLabel": "Net assets acquired",
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r121"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Assets",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Other Liabilities",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment",
        "terseLabel": "Premises and equipment",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment, Total",
        "documentation": "The amount of property, plant, and equipment recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r121"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuritiesSoldUnderAgreementstoRepurchase",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed, Securities Sold Under Agreements to Repurchase",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Securities Sold Under Agreementsto Repurchase",
        "terseLabel": "Securities sold under agreements to repurchase"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesShortTermInvestmentsAssumed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesShortTermInvestmentsAssumed",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "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": [
      "r121"
     ]
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAllowanceForLoanLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedAllowanceForLoanLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Allowance for credit losses",
        "documentation": "Business Combination Recognized Identifiable Assets Acquired and Liabilities Assumed Allowance For Loan Losses",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed Allowance For Loan Losses",
        "terseLabel": "Allowance for loan losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedDeposits",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination: Approximate Deposits to be acquired",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed Deposits",
        "terseLabel": "Deposits",
        "verboseLabel": "Change in acquired time deposits"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedFHLBAdvances",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, FHLB Advances",
        "label": "Business Combination Recognized Identifiable Assets Acquiredand Liabilities Assumed F H L B Advances",
        "terseLabel": "FHLB advances",
        "verboseLabel": "Change in FHLB advances"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationsPolicy",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations Policy [Policy Text Block]",
        "terseLabel": "Acquisitions",
        "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": [
      "r115"
     ]
    },
    "fmbh_CLSTrustIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CLSTrustIMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CLS Trust I [Member]",
        "label": "C L S Trust I [Member]",
        "terseLabel": "CLS Trust I"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Capital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Capital",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Capital, Actual",
        "terseLabel": "Capital ($)",
        "documentation": "Amount of total capital as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_CapitalRequiredForCapitalAdequacy": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredForCapitalAdequacy",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Risk-Based Capital, Capital Adequacy, Minimum",
        "terseLabel": "Capital Required for Capital Adequacy ($)",
        "documentation": "Amount of minimum total risk-based capital required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "terseLabel": "Capital Required for Capital Adequacy to RWA (%)",
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_CapitalRequiredToBeWellCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredToBeWellCapitalized",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Risk-Based Capital, Well Capitalized, Minimum",
        "terseLabel": "Capital Required to be Well Capitalized ($)",
        "documentation": "Amount of minimum total risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "terseLabel": "Capital Required to be Well Capitalized to RWA (%)",
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_CapitalToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Actual",
        "terseLabel": "Capital to RWA (%)",
        "documentation": "Ratio of total risk-based capital to risk-weighted assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "fmbh_CaptiveInsuranceCompanyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CaptiveInsuranceCompanyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Captive insurance company.",
        "label": "Captive Insurance Company Policy [Text Block]",
        "terseLabel": "Captive Insurance Company"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CaptiveMaximumGrossPremiums": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CaptiveMaximumGrossPremiums",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Captive maximum gross premiums.",
        "label": "Captive Maximum Gross Premiums",
        "terseLabel": "Captive maximum gross premiums"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Amount",
        "documentation": "Measured as reported on the statement of financial position (balance sheet)."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r146"
     ]
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAcquiredFromAcquisition",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net cash from (used in) business acquisition",
        "label": "Cash Acquired from Acquisition",
        "terseLabel": "Net cash provided by acquisition",
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business)."
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCashAndDueFromBanks"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Due from Banks",
        "label": "Cash and Cash Equivalents Disclosure [Text Block]",
        "documentation": "The entire disclosure for cash and cash equivalent footnotes, which may include the types of deposits and money market instruments, applicable carrying amounts, restricted amounts and compensating balance arrangements. Cash and equivalents include: (1) currency on hand (2) demand deposits with banks or financial institutions (3) other kinds of accounts that have the general characteristics of demand deposits (4) short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Generally, only investments maturing within three months from the date of acquisition qualify."
       }
      }
     },
     "auth_ref": [
      "r335",
      "r937"
     ]
    },
    "us-gaap_CashAndDueFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndDueFromBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Due from Banks",
        "terseLabel": "Cash",
        "totalLabel": "Cash and Due from Banks, Total",
        "documentation": "For banks and other depository institutions: Includes cash on hand (currency and coin), cash items in process of collection, noninterest bearing deposits due from other financial institutions (including corporate credit unions), and noninterest bearing balances with the Federal Reserve Banks, Federal Home Loan Banks and central banks."
       }
      }
     },
     "auth_ref": [
      "r238"
     ]
    },
    "us-gaap_CashAndDueFromBanksAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndDueFromBanksAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Due from Banks [Abstract]",
        "terseLabel": "Cash and due from banks:"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CashAndDueFromBanksFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CashAndDueFromBanksFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item includes currency on hand as well as demand deposits with banks or financial institutions. It also includes other kinds of accounts that have the general characteristics of demand deposits in that the Company may deposit additional funds at any time and also effectively may withdraw funds at any time without prior notice or penalty.",
        "label": "Cash And Due From Banks Fair Value Disclosure",
        "terseLabel": "Cash and due from banks"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsAndFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsAndFederalFundsSold",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, and Federal Funds Sold",
        "totalLabel": "Cash and cash equivalents",
        "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": [
      "r155"
     ]
    },
    "us-gaap_CashCashEquivalentsAndShortTermInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsAndShortTermInvestmentsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, and Short-Term Investments [Text Block]",
        "terseLabel": "Cash and Cash Equivalents and Certificates of Deposit Investments",
        "documentation": "The entire disclosure of the components of cash, cash equivalents, and short-term investments. Short-term investments may include current marketable securities."
       }
      }
     },
     "auth_ref": [
      "r1299"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total",
        "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": [
      "r65",
      "r198",
      "r377"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Decrease in cash and cash equivalents",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "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": [
      "r4",
      "r198"
     ]
    },
    "us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-04, Cash Dividends Paid to Registrant, Consolidated Subsidiaries",
        "terseLabel": "Dividends received from subsidiary",
        "documentation": "This element represents disclosure of the aggregate cash dividends paid to the entity by consolidated subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r384"
     ]
    },
    "fmbh_CashPaidDuringPeriodForAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CashPaidDuringPeriodForAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid during period for.",
        "label": "Cash Paid During Period For [Abstract]",
        "terseLabel": "Cash paid during the period for:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashUninsuredAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashUninsuredAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureCashAndDueFromBanksAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Uninsured Amount",
        "terseLabel": "Cash uninsured amount",
        "documentation": "The amount of cash as of the balance sheet date that is not insured by the Federal Deposit Insurance Corporation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CertificatesOfDepositAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CertificatesOfDepositAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Certificates of Deposit, at Carrying Value",
        "terseLabel": "Certificates of deposit investments",
        "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": [
      "r1265"
     ]
    },
    "fmbh_CertificatesOfDepositInvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CertificatesOfDepositInvestmentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Certificates of deposit investments fair value disclosure.",
        "label": "Certificates Of Deposit Investments Fair Value Disclosure",
        "terseLabel": "Certificates of deposit investments"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CertificatesOfDepositInvestmentsOriginalMaturityPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CertificatesOfDepositInvestmentsOriginalMaturityPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Certificates of deposit investments original maturity period.",
        "label": "Certificates Of Deposit Investments Original Maturity Period",
        "terseLabel": "Certificates of deposit investments original maturities period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]",
        "terseLabel": "Change in accounting principle, accounting standards update, adopted [true false]",
        "documentation": "Indicates (true false) whether accounting standards update was adopted."
       }
      }
     },
     "auth_ref": [
      "r295",
      "r296",
      "r297",
      "r327",
      "r328",
      "r389",
      "r456",
      "r457",
      "r498",
      "r499",
      "r500",
      "r505",
      "r506",
      "r557",
      "r736",
      "r752",
      "r753",
      "r769",
      "r770",
      "r771",
      "r782",
      "r783",
      "r793",
      "r808",
      "r809",
      "r814",
      "r815",
      "r816",
      "r826",
      "r832",
      "r833",
      "r834",
      "r852",
      "r899",
      "r900",
      "r961",
      "r962"
     ]
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Accounting Principle, Accounting Standards Update, Adoption Date",
        "terseLabel": "Change in accounting principle, accounting standards update, adoption date",
        "documentation": "Date accounting standards update was adopted, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r295",
      "r296",
      "r297",
      "r327",
      "r328",
      "r456",
      "r457",
      "r498",
      "r499",
      "r500",
      "r505",
      "r506",
      "r507",
      "r557",
      "r736",
      "r752",
      "r753",
      "r754",
      "r769",
      "r770",
      "r771",
      "r772",
      "r782",
      "r783",
      "r784",
      "r787",
      "r793",
      "r808",
      "r809",
      "r814",
      "r815",
      "r816",
      "r826",
      "r832",
      "r833",
      "r834",
      "r852",
      "r899",
      "r900",
      "r961",
      "r962",
      "r1242"
     ]
    },
    "us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Unrealized Gain (Loss) on Hedged Item in Fair Value Hedge",
        "terseLabel": "Gain (Loss) on Hedged Item",
        "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": [
      "r232"
     ]
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1195"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "verboseLabel": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1196"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1196"
     ]
    },
    "us-gaap_CollateralAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Axis]",
        "terseLabel": "Collateral Held",
        "documentation": "Information by category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": [
      "r1102"
     ]
    },
    "fmbh_CollateralDependentLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CollateralDependentLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateral dependent loans.",
        "label": "Collateral Dependent Loans [Member]",
        "terseLabel": "Collateral Dependent Loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Domain]",
        "terseLabel": "Collateral Held",
        "documentation": "Category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialAndIndustrialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CommercialAndIndustrialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Commercial and Industrial Loans",
        "documentation": "Commercial And Industrial Portfolio Segment.",
        "label": "Commercial And Industrial Portfolio Segment [Member]",
        "terseLabel": "Commercial and Industrial Loans"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialAndMultifamilyPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CommercialAndMultifamilyPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial and multifamily portfolio segment.",
        "label": "Commercial And Multifamily Portfolio Segment [Member]",
        "terseLabel": "Commercial And Multifamily Portfolio Segment"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CommercialIndustrialAndOtherPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CommercialIndustrialAndOtherPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial industrial and other portfolio segment.",
        "label": "Commercial Industrial And Other Portfolio Segment [Member]",
        "terseLabel": "Commercial Industrial And Other Portfolio Segment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialLoanMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Loan [Member]",
        "terseLabel": "Commercial &amp; Industrial",
        "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/2023",
     "localname": "CommercialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Portfolio Segment [Member]",
        "terseLabel": "Commercial",
        "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/2023",
     "localname": "CommercialRealEstateMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Commercial Real Estate",
        "label": "Commercial Real Estate [Member]",
        "terseLabel": "Commercial Real Estate",
        "documentation": "Property that is solely used for business purposes."
       }
      }
     },
     "auth_ref": [
      "r1097",
      "r1103",
      "r1343"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingent Liabilities",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r215",
      "r559",
      "r560",
      "r1075",
      "r1333"
     ]
    },
    "us-gaap_CommitmentsToExtendCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsToExtendCreditMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments to Extend Credit [Member]",
        "terseLabel": "Commitments to Extend Credit [Member]",
        "documentation": "Loan commitments are legally binding commitments to extend credit to a counterparty under certain terms and conditions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonEquityTierOneCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonEquityTierOneCapital",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital, Actual",
        "terseLabel": "Common Equity Tier One Risk Based Capital ($)",
        "documentation": "Amount of Common Equity Tier 1 risk-based capital as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_CommonEquityTierOneCapitalRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonEquityTierOneCapitalRatio",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital Ratio, Actual",
        "terseLabel": "Common Equity Tier One Risk Based Capital To RWA (%)",
        "documentation": "Ratio of Common Equity Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonEquityTierOneCapitalRequiredForCapitalAdequacy",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital, Capital Adequacy, Minimum",
        "terseLabel": "Common Equity Tier One Risk Based Capital Required For Capital Adequacy ($)",
        "documentation": "Amount of minimum Common Equity Tier 1 risk-based capital required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonEquityTierOneCapitalRequiredToBeWellCapitalized",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Common Equity Tier 1 Risk-Based Capital, Well Capitalized, Minimum",
        "terseLabel": "Common Equity Tier One Risk Based Capital Required to Be Well Capitalized ($)",
        "documentation": "Amount of minimum Common Equity Tier 1 risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "fmbh_CommonOwnershipShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CommonOwnershipShares",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common Ownership Shares",
        "label": "Common Ownership Shares",
        "documentation": "Common ownership shares."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares available for issuance",
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "documentation": "Aggregate number of common shares reserved for future issuance."
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockDividendsPerShareDeclared",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Dividends, Per Share, Declared",
        "terseLabel": "Cash dividends declared per common share",
        "verboseLabel": "Dividends declared per common share",
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "us-gaap_CommonStockIssuedEmployeeStockTrust": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockIssuedEmployeeStockTrust",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost basis of common stock issued and held in trust",
        "label": "Common Stock Issued, Employee Stock Trust",
        "documentation": "Value of common stock issued to a trust (for example, a 'rabbi trust') set up specifically to accumulate stock for the sole purpose of distribution to participating employees. This trust does not allow employees to immediately or after a holding period diversify into nonemployer securities. The deferred compensation plan for which this trust is set up must be settled by the delivery of a fixed number of shares of employer stock."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r1136",
      "r1137",
      "r1138",
      "r1141",
      "r1142",
      "r1143",
      "r1146",
      "r1285",
      "r1286",
      "r1362",
      "r1391",
      "r1396"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value (in dollars per share)",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r179"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, authorized (in shares)",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r1000"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, issued (in shares)",
        "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": [
      "r179"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, outstanding (in shares)",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r179",
      "r1000",
      "r1019",
      "r1396",
      "r1397"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, $4 par value; authorized 30,000,000 shares; issued 24,479,708 and 21,091,466 shares in 2023 and 2022, respectively; outstanding 23,827,137 and 20,452,376 shares in 2023 and 2022, respectively",
        "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": [
      "r179",
      "r938",
      "r1133"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1201"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1200"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1202"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1199"
     ]
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CompensationRelatedCostsGeneralTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationRelatedCostsGeneralTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlan"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Related Costs, General [Text Block]",
        "terseLabel": "Deferred Compensation Plan",
        "documentation": "The entire disclosure for compensation costs, including compensated absences accruals, compensated absences liability, deferred compensation arrangements and income statement compensation items. Deferred compensation arrangements may include a description of an arrangement with an individual employee, which is generally an employment contract between the entity and a selected officer or key employee containing a promise by the employer to pay certain amounts at designated future dates, usually including a period after retirement, 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. Disclosure also typically includes the amount of related compensation expense recognized during the reporting period, the number of shares (units) issued during the period under such arrangements, and the carrying amount as of the balance sheet date of the related liability."
       }
      }
     },
     "auth_ref": [
      "r596",
      "r597"
     ]
    },
    "us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compliance with Regulatory Capital Requirements under Banking Regulations [Line Items]",
        "terseLabel": "Compliance With Regulatory Capital Requirements Under Banking Regulations [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": [
      "r1385",
      "r1386"
     ]
    },
    "fmbh_ComponentsOfDepositInterestExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ComponentsOfDepositInterestExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of deposit interest expense [Table Text Block]",
        "label": "Components Of Deposit Interest Expense Table [Text Block]",
        "terseLabel": "Summary of Interest Expense on Deposits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive income (loss)",
        "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": [
      "r53",
      "r357",
      "r359",
      "r367",
      "r906",
      "r951"
     ]
    },
    "us-gaap_ComprehensiveIncomePolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income, Policy [Policy Text Block]",
        "terseLabel": "Accumulated Other Comprehensive Loss",
        "documentation": "Disclosure of accounting policy for comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Financial Information Disclosure [Abstract]",
        "label": "Condensed Financial Information Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Text Block]",
        "terseLabel": "Parent Company Only Financial Statements",
        "documentation": "The entire disclosure for condensed financial information, including the financial position, cash flows, and the results of operations of the registrant (parent company) as of the same dates or for the same periods for which audited consolidated financial statements are being presented. Alternatively, the details of this disclosure can be reported by the specific parent company taxonomy elements, indicating the appropriate date and period contexts in an instance document."
       }
      }
     },
     "auth_ref": [
      "r332",
      "r383",
      "r1233"
     ]
    },
    "srt_CondensedFinancialStatementsCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CondensedFinancialStatementsCaptionsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Statements, Captions [Line Items]",
        "terseLabel": "Condensed Financial Statements, 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": [
      "r312",
      "r324",
      "r325",
      "r326",
      "r383",
      "r1233"
     ]
    },
    "fmbh_ConsiderationPayableInShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ConsiderationPayableInShares",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consideration payable in shares.",
        "label": "Consideration Payable In Shares",
        "terseLabel": "Consideration payable in shares"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities",
        "documentation": "Information by consolidated entity or group of entities."
       }
      }
     },
     "auth_ref": [
      "r314",
      "r383",
      "r757",
      "r758",
      "r761",
      "r762",
      "r862",
      "r1085",
      "r1261",
      "r1262",
      "r1263",
      "r1334",
      "r1337",
      "r1338"
     ]
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities",
        "documentation": "Entity or group of entities consolidated into reporting entity."
       }
      }
     },
     "auth_ref": [
      "r314",
      "r383",
      "r757",
      "r758",
      "r761",
      "r762",
      "r862",
      "r1085",
      "r1261",
      "r1262",
      "r1263",
      "r1334",
      "r1337",
      "r1338"
     ]
    },
    "fmbh_ConstructionAndLandDevelopmentPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ConstructionAndLandDevelopmentPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Construction and land development portfolio segment.",
        "label": "Construction And Land Development Portfolio Segment [Member]",
        "terseLabel": "Construction and Land Development"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in Progress [Member]",
        "terseLabel": "Construction in Progress",
        "documentation": "Structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConstructionLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConstructionLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction Loans [Member]",
        "verboseLabel": "Construction and Land Development",
        "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": [
      "r1150"
     ]
    },
    "us-gaap_ConsumerLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsumerLoanMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Loan [Member]",
        "terseLabel": "Consumer Loans",
        "verboseLabel": "Consumer",
        "documentation": "Loan or extension of credit for personal, family, or household use excluding real estate."
       }
      }
     },
     "auth_ref": [
      "r1105"
     ]
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsumerPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Consumer Loans",
        "label": "Consumer Portfolio Segment [Member]",
        "terseLabel": "Consumer Loans",
        "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/2023",
     "localname": "ContractualInterestRateReductionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "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": [
      "r448",
      "r449",
      "r451",
      "r1097"
     ]
    },
    "us-gaap_ConversionOfStockSharesIssued1": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConversionOfStockSharesIssued1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/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": [
      "r68",
      "r69",
      "r70"
     ]
    },
    "us-gaap_CoreDepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CoreDepositsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Core Deposits [Member]",
        "terseLabel": "Core Deposit Intangibles",
        "documentation": "Entity's long-term relationships with depositors, commonly known as core deposit intangibles, which are separate from the financial instruments themselves."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cover",
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Axis]",
        "terseLabel": "Credit Facility",
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Domain]",
        "terseLabel": "Credit Facility",
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditLossStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditLossStatusAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Loss Status [Axis]",
        "terseLabel": "Credit Loss Status",
        "documentation": "Information by credit loss status of financial asset."
       }
      }
     },
     "auth_ref": [
      "r1298",
      "r1320",
      "r1325"
     ]
    },
    "us-gaap_CreditLossStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditLossStatusDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Loss Status [Domain]",
        "terseLabel": "Credit Loss Status",
        "documentation": "Credit loss status of financial asset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditQualityInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditQualityInformationAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_CumulativeAwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "CumulativeAwardsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative awards.",
        "label": "Cumulative Awards [Member]",
        "terseLabel": "Cumulative Awards"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjusted Balance [Member]",
        "terseLabel": "Cumulative Effect, Period of Adoption, Adjusted Balance",
        "documentation": "Represents amount after cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r1242",
      "r1264",
      "r1288",
      "r1318",
      "r1319",
      "r1345",
      "r1346",
      "r1347",
      "r1353",
      "r1354",
      "r1361",
      "r1362",
      "r1363",
      "r1369"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]",
        "terseLabel": "Cumulative Effect, Period of Adoption, Adjustment",
        "verboseLabel": "Cumulative Change in Accounting Principal, Adjustment",
        "documentation": "Increase (decrease) to financial statements for cumulative-effect adjustment in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r388",
      "r397",
      "r404",
      "r502",
      "r508",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r775",
      "r776",
      "r778",
      "r779",
      "r780",
      "r785",
      "r788",
      "r790",
      "r791",
      "r854"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Axis]",
        "terseLabel": "Cumulative Effect, Period of Adoption",
        "documentation": "Information by cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r388",
      "r397",
      "r404",
      "r502",
      "r508",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r775",
      "r776",
      "r778",
      "r779",
      "r780",
      "r785",
      "r788",
      "r790",
      "r791",
      "r854"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Domain]",
        "terseLabel": "Cumulative Effect, Period of Adoption",
        "documentation": "Cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r388",
      "r397",
      "r404",
      "r502",
      "r508",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r775",
      "r776",
      "r778",
      "r779",
      "r780",
      "r785",
      "r788",
      "r790",
      "r791",
      "r854"
     ]
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentFederalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "Federal",
        "documentation": "Amount of current federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1246",
      "r1282",
      "r1355"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Income Tax Expense (Benefit)",
        "totalLabel": "Total current",
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r224",
      "r735",
      "r743",
      "r1282"
     ]
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current State and Local Tax Expense (Benefit)",
        "terseLabel": "State",
        "documentation": "Amount of current state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1246",
      "r1282",
      "r1355"
     ]
    },
    "us-gaap_CustomerListsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CustomerListsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Customer Lists [Member]",
        "terseLabel": "Customer List Intangibles",
        "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": [
      "r122"
     ]
    },
    "us-gaap_DebtAndCapitalLeaseObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtAndCapitalLeaseObligations",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt and Lease Obligation",
        "terseLabel": "Debt",
        "totalLabel": "Debt and Lease Obligation, Total",
        "documentation": "Amount of short-term and long-term debt and lease obligation."
       }
      }
     },
     "auth_ref": [
      "r247"
     ]
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedGain",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and equity securities available for sale realized gain.",
        "label": "Debt And Equity Securities Available For Sale Realized Gain",
        "terseLabel": "Gross gains"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DebtAndEquitySecuritiesAvailableForSaleRealizedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DebtAndEquitySecuritiesAvailableForSaleRealizedLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and equity securities available for sale realized loss.",
        "label": "Debt And Equity Securities Available For Sale Realized Loss",
        "negatedLabel": "Gross losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt and Equity Securities, Gain (Loss)",
        "terseLabel": "Securities gains, net",
        "verboseLabel": "Realized gains on available-for-sale securities",
        "totalLabel": "Debt and Equity Securities, Gain (Loss), Total",
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r192"
     ]
    },
    "us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtAndEquitySecuritiesUnrealizedGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt and Equity Securities, Unrealized Gain (Loss)",
        "negatedLabel": "Gains on investment securities, net",
        "totalLabel": "Debt and Equity Securities, Unrealized Gain (Loss), Total",
        "documentation": "Amount of unrealized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r1035",
      "r1036",
      "r1064",
      "r1065",
      "r1066",
      "r1271",
      "r1272"
     ]
    },
    "us-gaap_DebtConversionOriginalDebtDueDateOfDebtMonthAndYear": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtConversionOriginalDebtDueDateOfDebtMonthAndYear",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, maturity month and year",
        "label": "Debt Conversion, Original Debt, Due Date of Debt, Month and Year",
        "documentation": "The month and year (YYYY-MM) in which the original debt was scheduled to mature."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r70"
     ]
    },
    "fmbh_DebtCoverageRatio": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DebtCoverageRatio",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The ratio used to analyze the amount of debt that can be supported by the cash flow generated from the property. The calculation is the net income generated by the property divided by the commercial mortgage payment.",
        "label": "Debt Coverage Ratio",
        "terseLabel": "Debt coverage ratio"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r174",
      "r175",
      "r241",
      "r244",
      "r383",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r830",
      "r1109",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1280"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Basis points",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Description of Variable Rate Basis",
        "terseLabel": "Description floating rate basis",
        "documentation": "Description of reference rate used for variable rate of debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Face Amount",
        "terseLabel": "Aggregate principal amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r148",
      "r151",
      "r575",
      "r830",
      "r1110",
      "r1111"
     ]
    },
    "us-gaap_DebtInstrumentFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Fair Value Disclosure",
        "terseLabel": "Subordinated debentures",
        "totalLabel": "Debt Instrument, Fair Value Disclosure, Total",
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r812",
      "r1110",
      "r1111"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateEffectivePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateEffectivePercentage",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Effective Percentage",
        "terseLabel": "Fixed-to-Floating Rate",
        "documentation": "Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r148",
      "r593",
      "r830"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate (as a percent)",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r576"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateTerms",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate Terms",
        "terseLabel": "Debt instrument, interest rate terms",
        "documentation": "Description of the interest rate as being fixed or variable, and, if variable, identification of the index or rate on which the interest rate is based and the number of points or percentage added to that index or rate to set the rate, and other pertinent information, such as frequency of rate resets."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [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": [
      "r383",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r830",
      "r1109",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1280"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Maturity date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r299",
      "r1109",
      "r1365"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name",
        "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": [
      "r46",
      "r383",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r830",
      "r1109",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1280"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentRedemptionDescription",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Description",
        "terseLabel": "Redemption description",
        "documentation": "Description of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption Price, Percentage of Principal Amount Redeemed",
        "documentation": "Percentage of principal amount of debt redeemed."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Debt Instrument [Table]",
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r102",
      "r103",
      "r147",
      "r148",
      "r151",
      "r167",
      "r216",
      "r217",
      "r383",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r830",
      "r1109",
      "r1110",
      "r1111",
      "r1112",
      "r1113",
      "r1280"
     ]
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentUnamortizedDiscountPremiumNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Unamortized Discount (Premium), Net",
        "terseLabel": "Debt Instrument, Unamortized Discount (Premium), Net",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium), Net, Total",
        "documentation": "Amount, after accumulated amortization, of debt discount (premium)."
       }
      }
     },
     "auth_ref": [
      "r147",
      "r148",
      "r149",
      "r150",
      "r151",
      "r1340"
     ]
    },
    "us-gaap_DebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecurities",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Securities, Total",
        "label": "Debt Securities",
        "terseLabel": "Securities pledged to Repurchase Agreements",
        "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": [
      "r459",
      "r933"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Allowance for Credit Loss, Purchased with Credit Deterioration, Increase",
        "terseLabel": "Amortized cost of PCD assets reflected the addition to allowance for credit losses",
        "documentation": "Amount of increase in allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and beneficial interest, purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r539"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Available-for-sale, 12 months or longer, 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), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r279",
      "r536",
      "r1107"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "12 months or longer, unrealized losses",
        "negatedLabel": "Available-for-sale, 12 months or longer, Unrealized losses",
        "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": [
      "r279",
      "r536"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Available-for-sale, Less than 12 months, 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), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r279",
      "r536",
      "r1107"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Available-for-sale, Less than 12 months, Unrealized Losses",
        "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": [
      "r279",
      "r536"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRestricted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleRestricted",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Restricted",
        "terseLabel": "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": [
      "r877",
      "r1073",
      "r1074"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale [Table]",
        "terseLabel": "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": [
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position",
        "totalLabel": "Available-for-sale, Total 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), in unrealized loss position without allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r276",
      "r533",
      "r1107"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss",
        "negatedTotalLabel": "Available-for-sale, Total Unrealized Losses",
        "totalLabel": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss, Total",
        "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": [
      "r277",
      "r534"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Unrealized Loss Position, Number of Positions",
        "terseLabel": "Number of securities in unrealized loss 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": [
      "r278",
      "r535"
     ]
    },
    "us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesHeldToMaturityAllowanceForCreditLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Allowance for Credit Loss",
        "terseLabel": "Allowance for credit losses, held-to-maturity debt securities",
        "totalLabel": "Debt Securities, Held-to-Maturity, Allowance for Credit Loss, Total",
        "periodStartLabel": "Debt Securities, Held-to-Maturity, Allowance for Credit Loss, Beginning Balance",
        "periodEndLabel": "Debt Securities, Held-to-Maturity, Allowance for Credit Loss, Ending Balance",
        "documentation": "Amount of allowance for credit loss for debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r477",
      "r509",
      "r514",
      "r518"
     ]
    },
    "fmbh_DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DebtSecuritiesHeldToMaturityContinuousUnrealizedLossPositionsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Held-to-Maturity, Continuous Unrealized Loss Positions [Abstract]",
        "label": "Debt Securities, Held-to-Maturity, Continuous Unrealized Loss Positions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeferredCompensationAdjustmentsRelatingToTreasuryStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredCompensationAdjustmentsRelatingToTreasuryStock",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred compensation adjustments relating to treasury stock.",
        "label": "Deferred Compensation Adjustments Relating To Treasury Stock",
        "terseLabel": "Deferred compensation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationArrangementWithIndividualRecordedLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Compensation Arrangement with Individual, Recorded Liability",
        "terseLabel": "Deferred compensation plan recorded liability",
        "documentation": "The carrying amount of the liability as of the balance sheet date to an individual under a deferred compensation arrangement. This amount may be the result of periodic accruals made over the period of active employment, or reflect termination benefits resulting contractual terms or a death benefit."
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationArrangementWithIndividualSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeferredCompensationPlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Compensation Arrangement with Individual, Shares Issued",
        "terseLabel": "Stock issued during period, shares, deferred compensation",
        "verboseLabel": "Shares issued pursuant to deferred compensation plan",
        "documentation": "Number of shares issued pursuant to the terms of a deferred compensation arrangement."
       }
      }
     },
     "auth_ref": [
      "r112"
     ]
    },
    "fmbh_DeferredCompensationPlanAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredCompensationPlanAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred Compensation Plan [Abstract]",
        "label": "Deferred Compensation Plan [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeferredCompensationPlanEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredCompensationPlanEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Balance includes deferred compensation plan in which amounts earned by an employee are invested in the Company's common stock and placed in a Rabbi Trust. Included in this balance is an amount equal to the original amount of compensation deferred. Balance also includes the value of stock under share-based plans to executive officers which is the unearned portion accounted for under the fair value method.",
        "label": "Deferred Compensation Plan Equity",
        "terseLabel": "Deferred compensation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredCompensationShareBasedPaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationShareBasedPaymentsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Compensation, Share-Based Payments [Member]",
        "terseLabel": "Deferred Compensation",
        "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_DeferredFederalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "terseLabel": "Federal",
        "documentation": "Amount of deferred federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1282",
      "r1352",
      "r1355"
     ]
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Assets, Net",
        "terseLabel": "Deferred tax asset, 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": [
      "r721",
      "r722"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Deferred income taxes",
        "totalLabel": "Total deferred",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r224",
      "r294",
      "r742",
      "r743",
      "r1282"
     ]
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Gross",
        "totalLabel": "Total gross deferred tax liabilities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences."
       }
      }
     },
     "auth_ref": [
      "r176",
      "r177",
      "r242",
      "r729"
     ]
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred State and Local Income Tax Expense (Benefit)",
        "terseLabel": "State",
        "documentation": "Amount of deferred state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1282",
      "r1352",
      "r1355"
     ]
    },
    "fmbh_DeferredTaxAssetsAcquisitionExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxAssetsAcquisitionExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred Tax Assets Acquisition Expenses",
        "label": "Deferred Tax Assets Acquisition Expenses",
        "terseLabel": "Acquisition costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsDeferredIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Deferred Income",
        "terseLabel": "Deferred revenue",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from deferred income."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGoodwillAndIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Goodwill and Intangible Assets",
        "terseLabel": "Core deposit premium and other intangible assets",
        "verboseLabel": "Purchase accounting",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from intangible assets including goodwill."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Total gross deferred tax assets",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r730"
     ]
    },
    "fmbh_DeferredTaxAssetsLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxAssetsLeaseLiability",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease Liability",
        "label": "Deferred Tax Assets Lease Liability",
        "documentation": "Deferred tax assets aease liability."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Net",
        "totalLabel": "Deferred tax assets, net",
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r1350"
     ]
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net deferred tax asset",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1350"
     ]
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "Other",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsOtherComprehensiveLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOtherComprehensiveLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Other Comprehensive Loss",
        "terseLabel": "Available-for-sale investment securities",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from unrealized losses in other comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Employee Benefits",
        "terseLabel": "Supplemental retirement",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences from employee benefits, classified as other."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Postretirement Benefits",
        "terseLabel": "Deferred compensation",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from postretirement benefits."
       }
      }
     },
     "auth_ref": [
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Share-Based Compensation Cost",
        "terseLabel": "Stock compensation expense",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals",
        "terseLabel": "Deferred loan costs",
        "totalLabel": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Total",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Asset, Tax Deferred Expense, Reserve and Accrual, Accounts Receivable, Allowance for Credit Loss",
        "terseLabel": "Allowance for credit losses",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary difference from allowance for credit loss on accounts receivable."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsValuationAllowance",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less valuation allowance",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "terseLabel": "Valuation allowance related to deferred tax assets",
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r731"
     ]
    },
    "fmbh_DeferredTaxLiabilitiesAccumulatedAccretion": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxLiabilitiesAccumulatedAccretion",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated accretion",
        "label": "Deferred Tax Liabilities Accumulated Accretion",
        "documentation": "Deferred tax liabilities accumulated accretion."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeferredTaxLiabilitiesExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxLiabilitiesExpenses",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax liabilities expenses.",
        "label": "Deferred Tax Liabilities Expenses",
        "terseLabel": "Deferred expenses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeferredTaxLiabilitiesFederalHomeLoanBankStockDividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxLiabilitiesFederalHomeLoanBankStockDividend",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax liabilities Federal Home Loan Bank stock dividend.",
        "label": "Deferred Tax Liabilities Federal Home Loan Bank Stock Dividend",
        "terseLabel": "FHLB stock dividend"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsGoodwill",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Goodwill",
        "terseLabel": "Intangibles amortization",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from goodwill."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r123",
      "r124",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Deferred Tax Liabilities, Investments",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from investments (excludes investments in subsidiaries and equity method investments)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesMortgageServicingRights",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Mortgage Servicing Rights",
        "terseLabel": "Mortgage servicing rights",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from mortgage servicing rights."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesOther",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Other",
        "terseLabel": "Other",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesPrepaidExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesPrepaidExpenses",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Prepaid Expenses",
        "terseLabel": "Prepaid expenses",
        "documentation": "Amount of deferred tax consequences attributable to taxable temporary differences derived from prepaid expenses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Property, Plant and Equipment",
        "terseLabel": "Depreciation",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r1351"
     ]
    },
    "fmbh_DeferredTaxLiabilitiesRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeferredTaxLiabilitiesRightOfUseAsset",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesOnDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Right of use asset",
        "label": "Deferred Tax Liabilities Right of Use Asset",
        "documentation": "Deferred tax liabilities right of use asset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Disclosure [Line Items]",
        "terseLabel": "Defined Benefit Plan Disclosure [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_DefinedBenefitPlanOtherCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanOtherCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Other Cost (Credit)",
        "terseLabel": "Defined benefit plan, other cost (credit)",
        "documentation": "Amount of defined benefit plan cost (credit), classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanCostRecognized",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Contribution Plan, Cost",
        "terseLabel": "Defined contribution plan, cost",
        "documentation": "Amount of cost for defined contribution plan."
       }
      }
     },
     "auth_ref": [
      "r667"
     ]
    },
    "fmbh_DefinedContributionPlanEmployerMatchingContributionDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DefinedContributionPlanEmployerMatchingContributionDescription",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of percentage of employees' contribution percent for which the employer contributes a matching contribution to a defined contribution plan.",
        "label": "Defined Contribution Plan Employer Matching Contribution Description",
        "terseLabel": "Defined contribution plan, employer matching contribution, percent"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Contribution Plan, Maximum Annual Contributions Per Employee, Percent",
        "terseLabel": "Defined contribution plan, maximum annual contribution per employee, percent",
        "documentation": "Maximum percentage of employee gross pay the employee may contribute to a defined contribution plan."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeltaAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeltaAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta acquisition.",
        "label": "Delta Acquisition [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeltaBancshareCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeltaBancshareCompanyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta Bancshare Company.",
        "label": "Delta Bancshare Company [Member]",
        "terseLabel": "Delta Bancshare Company"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DeltaBancsharesCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DeltaBancsharesCompanyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Delta Bancshares company.",
        "label": "Delta Bancshares Company [Member]",
        "terseLabel": "Delta Bancshares Company"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DepositLiabilitiesDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositLiabilitiesDisclosuresTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDeposits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposit Liabilities Disclosures [Text Block]",
        "terseLabel": "Deposits",
        "documentation": "The entire disclosure for deposit liabilities including data and tables. It may include a description of the entity's deposit liabilities, the aggregate amount of time deposits (including certificates of deposit) in denominations of $100,000 or more at the balance sheet date; the aggregate amount of any demand deposits that have been reclassified as loan balances, such as overdrafts, at the balance sheet date; deposits that are received on terms other than those in the normal course of business, the amount of accrued interest on deposit liabilities; securities, mortgage loans or other financial instruments that serve as collateral for deposits; for time deposits having a remaining term of more than one year, the aggregate amount of maturities for each of the five years following the balance sheet date; and the weighted average interest rate for all deposit liabilities held by the entity."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r156",
      "r310",
      "r311"
     ]
    },
    "us-gaap_Deposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Deposits",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits",
        "terseLabel": "Deposits",
        "totalLabel": "Total 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": [
      "r156"
     ]
    },
    "us-gaap_DepositsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Abstract]",
        "terseLabel": "Deposits:"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DepositsAssumedInLoansAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DepositsAssumedInLoansAcquisition",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deposits assumed in loans acquisition.",
        "label": "Deposits Assumed In Loans Acquisition",
        "terseLabel": "Customer deposits assumed"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DepositsByTypeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsByTypeAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits, by Type [Abstract]",
        "terseLabel": "Demand deposits:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits, Fair Value Disclosure",
        "terseLabel": "Deposits",
        "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": []
    },
    "us-gaap_Depreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Depreciation",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation",
        "terseLabel": "Depreciation Expense",
        "totalLabel": "Depreciation, Total",
        "documentation": "The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives. Includes production and non-production related depreciation."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r99"
     ]
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepreciationAmortizationAndAccretionNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, Amortization and Accretion, Net",
        "terseLabel": "Depreciation, amortization and accretion, net",
        "totalLabel": "Depreciation, Amortization and Accretion, Net, Total",
        "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/2023",
     "localname": "DerivativeAssetNotionalAmount",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Notional Amount",
        "terseLabel": "Derivative Assets, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset."
       }
      }
     },
     "auth_ref": [
      "r1054",
      "r1057",
      "r1059",
      "r1061",
      "r1356",
      "r1357",
      "r1358"
     ]
    },
    "us-gaap_DerivativeAverageRemainingMaturity1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAverageRemainingMaturity1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Average Remaining Maturity",
        "terseLabel": "Derivative, Weighted Average Remaining Maturity (Years)",
        "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": []
    },
    "fmbh_DerivativeBasisSpreadOnInterestRateSwapRateReceived": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DerivativeBasisSpreadOnInterestRateSwapRateReceived",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative basis spread on interest rate swap rate received.",
        "label": "Derivative Basis Spread On Interest Rate Swap Rate Received",
        "terseLabel": "Derivative Basis Spread On Interest Rate Swap, Rate Received"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract",
        "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": [
      "r989",
      "r991",
      "r1005",
      "r1006",
      "r1007",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1031",
      "r1032",
      "r1033",
      "r1034",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1054",
      "r1056",
      "r1060",
      "r1062",
      "r1136",
      "r1138"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset",
        "terseLabel": "Derivative Assets, Estimated Value",
        "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": [
      "r36",
      "r133",
      "r185",
      "r346",
      "r1091"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Subject to Master Netting Arrangement, before Offset",
        "terseLabel": "Derivative Liability, Estimated Value",
        "negatedLabel": "Derivative Liability, Estimated Value",
        "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": [
      "r36",
      "r133",
      "r185",
      "r346",
      "r1091"
     ]
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossOnDerivativeNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain (Loss) on Derivative, Net",
        "terseLabel": "Gain (Loss) on Derivative",
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total",
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement."
       }
      }
     },
     "auth_ref": [
      "r1359"
     ]
    },
    "us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "terseLabel": "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": [
      "r1359"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Interest Rate Swap Agreements",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r131",
      "r134",
      "r136",
      "r137",
      "r989",
      "r991",
      "r1005",
      "r1006",
      "r1007",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1031",
      "r1032",
      "r1033",
      "r1034",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1054",
      "r1056",
      "r1060",
      "r1062",
      "r1091",
      "r1136",
      "r1138"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "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/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivatives"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivatives",
        "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": [
      "r231",
      "r768",
      "r781"
     ]
    },
    "fmbh_DerivativeInstrumentsDetailAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DerivativeInstrumentsDetailAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments Detail [Abstract]",
        "label": "Derivative Instruments Detail [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DerivativeInstrumentsGainLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DerivativeInstrumentsGainLossAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments, Gain (Loss) [Abstract]",
        "label": "Derivative Instruments Gain Loss [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship",
        "documentation": "Information by type of hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r131",
      "r136"
     ]
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLiabilityNotionalAmount",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Notional Amount",
        "terseLabel": "Derivative Liability, Notional Amount",
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability."
       }
      }
     },
     "auth_ref": [
      "r1055",
      "r1057",
      "r1058",
      "r1061",
      "r1356",
      "r1357",
      "r1358"
     ]
    },
    "us-gaap_DerivativeLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative [Line Items]",
        "terseLabel": "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": [
      "r781"
     ]
    },
    "us-gaap_DerivativeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative [Table]",
        "terseLabel": "Derivative [Table]",
        "documentation": "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r125",
      "r126",
      "r127",
      "r129",
      "r132",
      "r136",
      "r138",
      "r139",
      "r141",
      "r781"
     ]
    },
    "us-gaap_DerivativeVariableInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeVariableInterestRate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Variable Interest Rate",
        "terseLabel": "Derivative, Variable Interest Rate",
        "documentation": "Variable interest rate in effect as of the balance sheet date related to the interest rate derivative."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DescriptionOfRegulatoryRequirementsCapitalAdequacyPurposes": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DescriptionOfRegulatoryRequirementsCapitalAdequacyPurposes",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of Regulatory Requirements, Capital Adequacy Purposes",
        "terseLabel": "Description of regulatory requirements, capital adequacy purposes",
        "documentation": "Description of the regulatory requirements for capital adequacy purposes."
       }
      }
     },
     "auth_ref": [
      "r169",
      "r170"
     ]
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DesignatedAsHedgingInstrumentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Designated as Hedging Instrument [Member]",
        "terseLabel": "Designated As Hedging Instrument",
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP)."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_DilutiveSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DilutiveSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dilutive Securities, Effect on Basic Earnings Per Share [Abstract]",
        "terseLabel": "Dilutive potential common shares:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlan"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Text Block]",
        "terseLabel": "Stock Incentive Plan",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r672",
      "r675",
      "r706",
      "r707",
      "r709",
      "r1126"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_DiscountToReflectRealizableValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DiscountToReflectRealizableValue",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discount to reflect realizable value used when pricing the investments.",
        "label": "Discount To Reflect Realizable Value",
        "terseLabel": "Collateral dependent loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisposalGroupHeldforsaleNotDiscontinuedOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisposalGroupHeldforsaleNotDiscontinuedOperationsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal Group, Held-for-Sale, Not Discontinued Operations [Member]",
        "terseLabel": "Foreclosed Assets Held-for-sale",
        "verboseLabel": "Foreclosed Assets Held-for-sale",
        "documentation": "Disposal group that is classified as held-for-sale. Excludes disposals classified as discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r33",
      "r333"
     ]
    },
    "us-gaap_Dividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Dividends",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends",
        "terseLabel": "Dividends",
        "totalLabel": "Dividends, Total",
        "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",
      "r218"
     ]
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Dividends on common stock",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "fmbh_DividendsReinvestedInCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "DividendsReinvestedInCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Reinvested In Common Stock",
        "documentation": "Portion of common stock and preferred stock dividends that was reinvested in common stock in lieu of cash payment.",
        "terseLabel": "Dividends reinvested in common stock"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "terseLabel": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Financial Statement Error Correction Flag",
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169",
      "r1205"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "terseLabel": "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/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "terseLabel": "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/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "terseLabel": "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_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r1190"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Type",
        "label": "Document Type",
        "verboseLabel": "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": []
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Documents Incorporated by Reference [Text Block]",
        "terseLabel": "Documents Incorporated by Reference",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r1153"
     ]
    },
    "us-gaap_DoubtfulMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DoubtfulMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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": [
      "r86",
      "r1324"
     ]
    },
    "us-gaap_DueFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DueFromBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due from Banks",
        "terseLabel": "Non-interest bearing",
        "documentation": "A bank's noninterest bearing demand deposits in other banks (such as correspondents)."
       }
      }
     },
     "auth_ref": [
      "r154"
     ]
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Per share data:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic net income per common share",
        "verboseLabel": "Basic earnings per common share",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "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": [
      "r368",
      "r394",
      "r395",
      "r397",
      "r398",
      "r400",
      "r406",
      "r408",
      "r415",
      "r416",
      "r417",
      "r421",
      "r791",
      "r792",
      "r907",
      "r952",
      "r1094"
     ]
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasicAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted net income per common share",
        "verboseLabel": "Diluted earnings per common share",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "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": [
      "r368",
      "r394",
      "r395",
      "r397",
      "r398",
      "r400",
      "r408",
      "r415",
      "r416",
      "r417",
      "r421",
      "r791",
      "r792",
      "r907",
      "r952",
      "r1094"
     ]
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareDilutedAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted [Abstract]",
        "terseLabel": "Diluted net income per common share available to common stockholders:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareProFormaAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareProFormaAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Pro Forma [Abstract]",
        "terseLabel": "Earnings per share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Share",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r405",
      "r418",
      "r419",
      "r420"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
        "terseLabel": "Tax rate used to calculate tax-equivalent yields (in hundredths)",
        "verboseLabel": "Statutory U.S. Federal Tax Rate",
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss)."
       }
      }
     },
     "auth_ref": [
      "r379",
      "r724",
      "r744"
     ]
    },
    "fmbh_EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByJeffersonBank",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "EliminationOfDeferredFeesAndUnearnedDiscountsPreviouslyRecordedByProvidenceBank",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "EmployeeDiscountForEmployeeStockPurchasePlan",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee discount for employee stock purchase plan.",
        "label": "Employee Discount For Employee Stock Purchase Plan",
        "terseLabel": "Employee discount for employee stock purchase plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Unrecognized compensation expense, period of recognition",
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r708"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized share-based compensation cost",
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r1344"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Expense, Tax Benefit",
        "negatedLabel": "Income tax benefit",
        "documentation": "Amount of tax benefit for recognition of expense of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r705"
     ]
    },
    "us-gaap_EmployeeStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeStockMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee Stock Purchase Plan",
        "label": "Employee Stock [Member]",
        "documentation": "An Employee Stock Purchase Plan is a tax-efficient means by which employees of a corporation can purchase the corporation's stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "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/2023",
     "localname": "EmployeeStockOwnershipPlanESOPPolicy",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Ownership Plan (ESOP), Policy [Policy Text Block]",
        "terseLabel": "Employee Stock Purchase Plan",
        "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": [
      "r113"
     ]
    },
    "fmbh_EmployeeStockPurchasePlanNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "EmployeeStockPurchasePlanNumberOfSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock purchase plan, number of shares authorized.",
        "label": "Employee Stock Purchase Plan Number Of Shares Authorized",
        "terseLabel": "Employee stock purchase plan, number of shares authorized"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "terseLabel": "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/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "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/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "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": [
      "r1152"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "verboseLabel": "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/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "terseLabel": "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_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "terseLabel": "Entity",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r1152"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity File Number",
        "terseLabel": "Entity 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/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "terseLabel": "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": [
      "r1152"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "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/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "terseLabel": "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": [
      "r1230"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "terseLabel": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "terseLabel": "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": [
      "r1152"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "terseLabel": "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": [
      "r1152"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "verboseLabel": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r1152"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "terseLabel": "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": [
      "r1152"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "terseLabel": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Well-known Seasoned Issuer",
        "terseLabel": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r1231"
     ]
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component",
        "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": [
      "r28",
      "r329",
      "r361",
      "r362",
      "r363",
      "r385",
      "r386",
      "r387",
      "r391",
      "r401",
      "r403",
      "r423",
      "r502",
      "r508",
      "r595",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r775",
      "r776",
      "r777",
      "r778",
      "r780",
      "r790",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r856",
      "r963",
      "r964",
      "r965",
      "r987",
      "r1043"
     ]
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNi",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities, FV-NI, Current",
        "terseLabel": "Equity securities, at fair value",
        "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": [
      "r342",
      "r810",
      "r1090"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1198"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1161",
      "r1173",
      "r1183",
      "r1209"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1158",
      "r1170",
      "r1180",
      "r1206"
     ]
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Fair Value",
        "documentation": "Measured as an estimate of fair value."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r812",
      "r1110",
      "r1111"
     ]
    },
    "fmbh_EstimatedAmortizationExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "EstimatedAmortizationExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated Amortization Expense [Abstract]",
        "label": "Estimated Amortization Expense [Abstract]",
        "terseLabel": "Estimated amortization expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ExcessTaxBenefitFromShareBasedCompensationFinancingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ExcessTaxBenefitFromShareBasedCompensationFinancingActivity",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess tax benefit from share-based compensation, financing activity.",
        "label": "Excess Tax Benefit from Share-Based Compensation, Financing Activity",
        "terseLabel": "Net tax benefit related to option and deferred compensation plans"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r1204"
     ]
    },
    "us-gaap_ExtendedMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ExtendedMaturityMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "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": [
      "r448",
      "r1097"
     ]
    },
    "fmbh_FBTCSTIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FBTCSTIMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FBTCST I [Member]",
        "label": "F B T C S T I [Member]",
        "terseLabel": "FBTCST I"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FHLBAdvancesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FHLBAdvancesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FHLB Advances [Member]",
        "label": "F H L B Advances [Member]",
        "terseLabel": "FHLB Advances"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FairValueAdjustmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FairValueAdjustmentsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value Adjustments [Member]",
        "label": "Fair Value Adjustments [Member]",
        "terseLabel": "Fair Value Adjustments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetLiabilityRecurringBasisStillHeldUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Asset (Liability), Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Total gains or losses for the period included in net income attributable to the change in unrealized gains or losses related to assets and liabilities still held at the reporting date",
        "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": [
      "r802"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]",
        "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": [
      "r795",
      "r796",
      "r804"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "terseLabel": "Fair Value Measurement Inputs and Valuation Techniques [Line Items]",
        "verboseLabel": "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": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis 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": [
      "r30"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "terseLabel": "Significant Unobservable Inputs Used in Valuation of Level 3 Fair Value Measurements",
        "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": [
      "r30"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring and Nonrecurring Basis [Table Text Block]",
        "terseLabel": "Assets Measured at Fair Value on a Nonrecurring Basis",
        "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": [
      "r142",
      "r233"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class",
        "documentation": "Class of asset."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "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/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Fair Value of Assets Measured on a Recurring Basis Using Significant Unobservable Inputs",
        "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": [
      "r31",
      "r144"
     ]
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "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/2023",
     "localname": "FairValueByAssetClassAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class",
        "documentation": "Information by class of asset."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "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": [
      "r142",
      "r145",
      "r146"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Summary of Estimated Fair Values of Company Financial Instruments",
        "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": [
      "r142",
      "r145"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r796",
      "r866",
      "r867",
      "r868",
      "r1110",
      "r1111",
      "r1115",
      "r1116",
      "r1117"
     ]
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementBasisAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis",
        "documentation": "Information by measurement basis."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r142",
      "r583",
      "r1110",
      "r1111"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r795",
      "r796",
      "r797",
      "r798",
      "r805"
     ]
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosureItemAmountsDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement [Domain]",
        "terseLabel": "Fair Value Measurement",
        "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": [
      "r583",
      "r1110",
      "r1111"
     ]
    },
    "fmbh_FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialOperating",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails": {
       "parentTag": "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The face amount of Commercial Operating financial assets, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure Off Balance Sheet Risks Face Amount Asset Commercial Operating",
        "terseLabel": "Commercial operating"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialRe": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetCommercialRe",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails": {
       "parentTag": "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The face amount of Commercial Real Estate financial assets, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure Off Balance Sheet Risks Face Amount Asset Commercial Re",
        "terseLabel": "Commercial real estate"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetHomeEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetHomeEquity",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails": {
       "parentTag": "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The face amount of Home Equity financial assets, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure Off Balance Sheet Risks Face Amount Asset Home Equity",
        "terseLabel": "Home equity"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FairValueDisclosureOffBalanceSheetRisksFaceAmountAssetOther",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails": {
       "parentTag": "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The face amount of Other financial assets, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure Off Balance Sheet Risks Face Amount Asset Other",
        "terseLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosureOffbalanceSheetRisksFaceAmountAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosure, off-Balance-Sheet Risks, Face Amount, Asset",
        "totalLabel": "Fair Value Disclosure, Off-balance Sheet Risks, Face Amount, Asset",
        "documentation": "The face amount of financial assets, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Disclosures of Fair Values of Financial Instruments",
        "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": [
      "r794"
     ]
    },
    "us-gaap_FairValueHedgingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueHedgingMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hedging [Member]",
        "terseLabel": "Fair Value Hedging",
        "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": [
      "r128"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 1 [Member]",
        "verboseLabel": "Quoted Prices in Active Markets for Identical Assets (Level 1)",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r625",
      "r630",
      "r796",
      "r866",
      "r1115",
      "r1116",
      "r1117"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Fair Value, Inputs, Level 2 [Member]",
        "verboseLabel": "Significant Other Observable Inputs (Level 2)",
        "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": [
      "r583",
      "r625",
      "r630",
      "r796",
      "r867",
      "r1110",
      "r1111",
      "r1115",
      "r1116",
      "r1117"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3",
        "verboseLabel": "Significant Unobservable Inputs (Level 3)",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r796",
      "r868",
      "r1110",
      "r1111",
      "r1115",
      "r1116",
      "r1117"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value Measurements",
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in net income",
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r799"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "terseLabel": "Included in other comprehensive income (loss)",
        "documentation": "Amount of gain (loss) recognized in other comprehensive income (OCI) from asset measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Issuances",
        "terseLabel": "Issuances",
        "documentation": "Amount of issuances of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "terseLabel": "Purchases",
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases, (Sales), Issuances, (Settlements) [Abstract]",
        "terseLabel": "Purchases, issuances, sales and settlements"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "negatedLabel": "Sales",
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Settlements",
        "terseLabel": "Settlements",
        "documentation": "Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "terseLabel": "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": [
      "r801"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Transfers out of Level 3",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "terseLabel": "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": [
      "r801"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "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": [
      "r31"
     ]
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r583",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r866",
      "r867",
      "r868",
      "r1110",
      "r1111",
      "r1115",
      "r1116",
      "r1117"
     ]
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsNonrecurringMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Nonrecurring [Member]",
        "terseLabel": "Fair Value, Nonrecurring",
        "verboseLabel": "Fair Value, Measurements, 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": [
      "r795",
      "r796",
      "r797",
      "r798",
      "r803",
      "r805"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Fair Value, Recurring",
        "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": [
      "r794",
      "r805"
     ]
    },
    "us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueOffBalanceSheetRisksDisclosureInformationLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, off-Balance-Sheet Risks, Disclosure Information [Line Items]",
        "terseLabel": "Fair Value, Off-balance Sheet Risks, Disclosure Information [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_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement in which net income is reported that includes gain (loss) from asset measured at fair value using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r799"
     ]
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Deposit Insurance Corporation Premium Expense",
        "terseLabel": "FDIC insurance expense",
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance."
       }
      }
     },
     "auth_ref": [
      "r261"
     ]
    },
    "fmbh_FederalFundsSellingPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FederalFundsSellingPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal funds selling period.",
        "label": "Federal Funds Selling Period",
        "terseLabel": "Federal funds selling period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalFundsSold",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Funds Sold",
        "terseLabel": "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": [
      "r162"
     ]
    },
    "us-gaap_FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalFundsSoldAndSecuritiesBorrowedOrPurchasedUnderAgreementsToResellFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Funds Sold and Securities Borrowed or Purchased under Agreements to Resell, Fair Value Disclosure",
        "terseLabel": "Federal funds sold",
        "documentation": "Fair value portion of federal funds sold and securities borrowed or purchased under agreements to resell."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankInterestRate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Branch of FHLB Bank, Interest Rate",
        "terseLabel": "Federal Home Loan Bank, Advances, Interest Rate",
        "documentation": "Discloses the single interest rate [if] applicable to the advances from the Federal Home Loan Bank, by branch, as of the Balance Sheet date."
       }
      }
     },
     "auth_ref": [
      "r168",
      "r269"
     ]
    },
    "us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesBranchOfFHLBBankLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances, Branch of FHLB Bank [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/20231231",
     "localname": "FederalHomeLoanBankAdvancesMaturityDate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank, advances, maturity date.",
        "label": "Federal Home Loan Bank Advances Maturity Date",
        "terseLabel": "Federal Home Loan Bank, Advances, Maturity Date"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankAdvancesOriginalMaturityTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FederalHomeLoanBankAdvancesOriginalMaturityTerm",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank Advances, Original Term",
        "label": "Federal Home Loan Bank Advances Original Maturity Term",
        "terseLabel": "Federal Home Loan Bank Advances, Term (in years)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankAdvancesShortAndLongTerm": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FederalHomeLoanBankAdvancesShortAndLongTerm",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Short-term and long-term Federal Home Loan Bank borrowings.",
        "label": "Federal Home Loan Bank Advances Short And Long Term",
        "terseLabel": "Federal Home Loan Bank Advances"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankAdvancesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankAdvancesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank, Advances [Table Text Block]",
        "terseLabel": "Federal Home Loan Bank, Advances",
        "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/2023",
     "localname": "FederalHomeLoanBankBorrowingsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank Borrowings, Fair Value Disclosure",
        "terseLabel": "Federal Home Loan Bank borrowings",
        "documentation": "Fair value portion of borrowing from Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "fmbh_FederalHomeLoanBankFixedTermAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FederalHomeLoanBankFixedTermAdvances",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": "fmbh_ShortTermAndLongTermBorrowings",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal home loan bank fixed term advances.",
        "label": "Federal Home Loan Bank Fixed Term Advances",
        "terseLabel": "Federal Home Loan Bank (FHLB) fixed-term advances"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FederalHomeLoanBankStockPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FederalHomeLoanBankStockPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank Stock, Policy [Policy Text Block]",
        "label": "Federal Home Loan Bank Stock Policy Policy [Text Block]",
        "terseLabel": "Federal Home Loan Bank Stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinanceLoansAndLeasesReceivablePolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLoansAndLeasesReceivablePolicy",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan",
        "label": "Financing Receivable [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r87",
      "r91",
      "r205",
      "r445",
      "r453",
      "r454",
      "r455"
     ]
    },
    "us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetAcquiredWithCreditDeteriorationMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset Acquired with Credit Deterioration [Member]",
        "terseLabel": "Financial Asset Acquired with Credit Deterioration",
        "documentation": "Financial asset acquired with deteriorated credit quality."
       }
      }
     },
     "auth_ref": [
      "r1298"
     ]
    },
    "us-gaap_FinancialAssetNotPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetNotPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Not Past Due [Member]",
        "terseLabel": "Current",
        "documentation": "Financial asset not past due."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r1106"
     ]
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Past Due [Member]",
        "terseLabel": "Total Past Due",
        "documentation": "Financial asset past due."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r1106",
      "r1297"
     ]
    },
    "fmbh_FinancialEffectOfLoanModificationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancialEffectOfLoanModificationsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r511",
      "r513",
      "r519",
      "r520",
      "r528",
      "r532",
      "r537",
      "r538",
      "r591",
      "r594",
      "r781",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r880",
      "r881",
      "r882",
      "r883",
      "r884",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r950",
      "r1107",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1312",
      "r1313",
      "r1314",
      "r1315"
     ]
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialStandbyLetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialStandbyLetterOfCreditMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Standby Letter of Credit [Member]",
        "terseLabel": "Financial Standby Letter of Credit [Member]",
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation if defined events occur or fail to occur."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss, Purchased with Credit Deterioration, Increase",
        "terseLabel": "Initial allowance on loans purchased with credit deterioration",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss",
        "periodEndLabel": "Allowance for credit losses, Ending Balance",
        "periodStartLabel": "Allowance for credit losses, Beginning Balance",
        "terseLabel": "Allowance for credit losses",
        "verboseLabel": "Allowance for credit losses on loans",
        "negatedLabel": "Less allowance for credit losses",
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement."
       }
      }
     },
     "auth_ref": [
      "r22",
      "r305",
      "r307",
      "r309",
      "r345",
      "r509",
      "r514",
      "r518",
      "r1380"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "terseLabel": "Provision for credit loss expense",
        "totalLabel": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total",
        "documentation": "Amount of increase (decrease) in allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r80",
      "r1322"
     ]
    },
    "fmbh_FinancingReceivableAllowanceForCreditLossesPolicyForUncollectibleAmountsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableAllowanceForCreditLossesPolicyForUncollectibleAmountsPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Allowance for Credit Losses, Policy for Uncollectible Amounts [Policy Text Block]",
        "label": "Financing Receivable Allowance For Credit Losses Policy For Uncollectible Amounts Policy [Text Block]",
        "terseLabel": "Allowance for Credit Losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Allowance for Credit Loss, Recovery",
        "terseLabel": "Recoveries collected",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable from recovery."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r517",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financing Receivable, Allowance for Credit Loss, Writeoff, Total",
        "label": "Financing Receivable, Allowance for Credit Loss, Writeoff",
        "terseLabel": "Loans charged off",
        "documentation": "Amount of writeoff of financing receivable, charged against allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r516",
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableBeforeAllowanceForCreditLossAndFee",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, before Allowance for Credit Loss, Fee and Loan in Process",
        "totalLabel": "Gross loans",
        "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": [
      "r529",
      "r1292",
      "r1381"
     ]
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "terseLabel": "Credit Risk Profile of Loan Portfolio Based on Risk Rating Category and Payment Activity",
        "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": [
      "r86",
      "r1324"
     ]
    },
    "fmbh_FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFiveOrMoreYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsFourYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInCurrentFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsInFiscalYearBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsIncludingHeldForSaleNetOfDeferredIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsRevolving",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsThreeYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableCurrentPeriodGrossWriteoffsTwoYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "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/20231231",
     "localname": "FinancingReceivableGrossExcludingLoansHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allowance of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Includes deferred interest and fees, undisbursed portion of loan balance, unamortized costs and premiums and discounts from face amounts. Excludes Loans held-for-sale and loans and leases covered under loss sharing agreements.",
        "label": "Financing Receivable Gross Excluding Loans Held For Sale",
        "terseLabel": "Loans and leases receivable gross excluding loans held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable including held for sale net of deferred income.",
        "label": "Financing Receivable Including Held For Sale Net Of Deferred Income",
        "terseLabel": "Total Loans Receivable",
        "totalLabel": "Total Loans Receivable"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableIndividuallyEvaluatedCollateralDependentTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, individually evaluated, collateral dependent.",
        "label": "Financing Receivable Individually Evaluated Collateral Dependent Table [Text Block]",
        "terseLabel": "Amortized Cost Basis of Collateral-Dependent Loans by Class of Loans Individually Evaluated"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Individually Evaluated for Impairment",
        "terseLabel": "Financing Receivable, Individually Evaluated for Impairment",
        "documentation": "The balance of financing receivables that were individually evaluated for impairment."
       }
      }
     },
     "auth_ref": [
      "r444",
      "r1098"
     ]
    },
    "fmbh_FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableLoanModificationsWeightedAverageInterestRateReduction",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "FinancingReceivableLoanModificationsWeightedAverageTermExtension",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "FinancingReceivableModificationToTotalFinancingReceivablesPercent",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Class of Financing Receivable",
        "label": "Financing Receivable, Modified in Period, to Total Financing Receivables, Percentage",
        "documentation": "Percentage of financing receivable modified during period for debtor experiencing financial difficulty to total financing receivables."
       }
      }
     },
     "auth_ref": [
      "r448",
      "r1097"
     ]
    },
    "us-gaap_FinancingReceivableModificationsNumberOfContracts2": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationsNumberOfContracts2",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Modifications, Number of Contracts",
        "verboseLabel": "Troubled debt restructurings balance",
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings."
       }
      }
     },
     "auth_ref": [
      "r1293"
     ]
    },
    "fmbh_FinancingReceivableModificationsPerformanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableModificationsPerformanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Modifications Performance Recorded Investment",
        "documentation": "Financing receivable modifications performance recorded investment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FinancingReceivableModificationsPerformingRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableModificationsPerformingRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the outstanding recorded investment related to financing receivables that have been modified by troubled debt restructurings and are still accruing interest.",
        "label": "Financing Receivable Modifications Performing Recorded Investment",
        "terseLabel": "Financing Receivable Modifications Performing Recorded Investment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Modified, Accumulated",
        "terseLabel": "Troubled Debt Restructurings Balance",
        "verboseLabel": "Troubled debt restructurings balance",
        "documentation": "Accumulated amortized cost of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r1293",
      "r1295"
     ]
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual, No Allowance",
        "terseLabel": "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": [
      "r523"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Originated, More than Five Years before Current Fiscal Year",
        "terseLabel": "Prior",
        "documentation": "Amortized cost of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Five, Originated, Four Years before Current Fiscal Year",
        "terseLabel": "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": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year One, Originated, Current Fiscal Year",
        "terseLabel": "Current fiscal year",
        "documentation": "Amortized cost of financing receivable originated in current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Two, Originated, Fiscal Year before Current Fiscal Year",
        "terseLabel": "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": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Four, Originated, Three Years before Current Fiscal Year",
        "terseLabel": "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": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Year Three, Originated, Two Years before Current Fiscal Year",
        "terseLabel": "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": [
      "r530",
      "r1105"
     ]
    },
    "fmbh_FinancingReceivablePerformanceOfLoansModifiedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivablePerformanceOfLoansModifiedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "terseLabel": "Financing Receivable Portfolio Segment",
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r303",
      "r304",
      "r308",
      "r309",
      "r511",
      "r513",
      "r1099",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1255",
      "r1256",
      "r1257"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "terseLabel": "Financing Receivable Portfolio Segment",
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r303",
      "r304",
      "r308",
      "r309",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1255",
      "r1256",
      "r1257"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "PCD allowance for credit losses at acquisition",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Allowance for Credit Loss at Acquisition Date",
        "verboseLabel": "Allowance for credit losses for loans identified as PCD",
        "documentation": "Amount of allowance for credit loss at acquisition date of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r525"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unpaid principal balance",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Par Value",
        "terseLabel": "Fair value of purchased credit deteriorated loans at acquisition",
        "documentation": "Amount at par value of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r527"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair value of PCD loans",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Purchase Price",
        "verboseLabel": "Purchased credit deteriorated loans",
        "documentation": "Amount at purchase price of financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r524"
     ]
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-credit discount on acquired loans",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Discount (Premium)",
        "terseLabel": "Non-credit discount/(premium) at acquisition",
        "documentation": "Amount of discount (premium) attributable to other factors on financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r526"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, 90 Days or More Past Due, Still Accruing",
        "terseLabel": "Total Loans> 90 Days and Accruing",
        "documentation": "Amortized cost of financing receivable 90 days or more past due and still accruing. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r292",
      "r522",
      "r1106"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable",
        "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": [
      "r88",
      "r90",
      "r303",
      "r304",
      "r308",
      "r309",
      "r446",
      "r448",
      "r449",
      "r450",
      "r451",
      "r519",
      "r520",
      "r528",
      "r1097",
      "r1100",
      "r1101",
      "r1105",
      "r1106",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1255",
      "r1256",
      "r1257"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable",
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r303",
      "r304",
      "r308",
      "r309",
      "r448",
      "r449",
      "r450",
      "r451",
      "r1097",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1255",
      "r1256",
      "r1257"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual",
        "terseLabel": "Financing Receivable, Nonaccrual",
        "verboseLabel": "Recorded balance of nonaccrual loans",
        "documentation": "Amortized cost of financing receivable on nonaccrual status. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r306",
      "r307",
      "r521"
     ]
    },
    "fmbh_FinancingReceivableRecordedInvestmentsAgingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivableRecordedInvestmentsAgingAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, Recorded Investments, Aging.",
        "label": "Financing Receivable Recorded Investments Aging [Abstract]",
        "terseLabel": "Loans Receivable Aging Analysis [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableRevolving": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRevolving",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails": {
       "parentTag": "fmbh_FinancingReceivableIncludingHeldForSaleNetOfDeferredIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Revolving",
        "terseLabel": "Revolving Loans",
        "documentation": "Amortized cost of financing receivable that can be withdrawn, repaid, and redrawn."
       }
      }
     },
     "auth_ref": [
      "r530",
      "r1105"
     ]
    },
    "us-gaap_FinancingReceivableSignificantPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableSignificantPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Purchase",
        "terseLabel": "Loans acquired amount",
        "documentation": "Amount of increase in financing receivable from purchase. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r81",
      "r512"
     ]
    },
    "us-gaap_FinancingReceivableThresholdPeriodPastDueWriteoff": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableThresholdPeriodPastDueWriteoff",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Threshold Period Past Due, Writeoff",
        "terseLabel": "Period when loans charged-down",
        "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": [
      "r1323"
     ]
    },
    "us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Unamortized Loan Cost (Fee) and Purchase Premium (Discount)",
        "negatedLabel": "Net deferred loan fees, premiums and discounts",
        "totalLabel": "Financing Receivable, Unamortized Loan Cost (Fee) and Purchase Premium (Discount), Total",
        "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": [
      "r447",
      "r452",
      "r1232"
     ]
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "30-59 Days Past Due",
        "label": "Financial Asset, 30 to 59 Days Past Due [Member]",
        "terseLabel": "Financial Asset, 30 to 59 Days Past Due",
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due."
       }
      }
     },
     "auth_ref": [
      "r1106"
     ]
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "60-89 Days Past Due",
        "label": "Financial Asset, 60 to 89 Days Past Due [Member]",
        "terseLabel": "Financial Asset, 60 to 89 Days Past Due",
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r1106"
     ]
    },
    "fmbh_FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivablesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "90 Days or More Past Due",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "terseLabel": "Financial Asset, Equal to or Greater than 90 Days Past Due",
        "documentation": "Financial asset equal to or greater than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r1106"
     ]
    },
    "fmbh_FinancingReceivablesModificationsDuringPeriodBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivablesModificationsDuringPeriodBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails"
     ],
     "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": []
    },
    "fmbh_FinancingReceivablesModificationsDuringPeriodNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivablesModificationsDuringPeriodNumber",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivables, Modifications during Period, Number",
        "label": "Financing Receivables Modifications During Period Number",
        "terseLabel": "Financing Receivables, Modifications during Period, Number"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Aging [Axis]",
        "terseLabel": "Financial Asset, Aging",
        "documentation": "Information by period in which financial asset is past due or not past due."
       }
      }
     },
     "auth_ref": [
      "r293",
      "r519",
      "r1106"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Aging [Domain]",
        "terseLabel": "Financial Asset, Aging",
        "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": [
      "r293",
      "r519",
      "r1106"
     ]
    },
    "fmbh_FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FinancingReceivablestroubledDebtRestructuringsDuringPeriodTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables,troubled debt restructurings during period.",
        "label": "Financing Receivablestroubled Debt Restructurings During Period Table [Text Block]",
        "terseLabel": "Loans Modified as Troubled Debt Restructurings"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetUsefulLife",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Asset, Useful Life",
        "terseLabel": "Intangible asset estimated useful life",
        "verboseLabel": "Intangible assets amortization period",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "terseLabel": "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": [
      "r339",
      "r554"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextRollingTwelveMonths",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For year ended 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/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFive",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For year ended 12/31/28",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Five",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearFour",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For year ended 12/31/27",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Four",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearThree",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For year ended 12/31/26",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Three",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRollingYearTwo",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfExpectedAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "For year ended 12/31/25",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Rolling Year Two",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets Amortization Expense [Table Text Block]",
        "terseLabel": "Schedule of Intangible Assets Amortization Expense",
        "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/2023",
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class",
        "documentation": "Information by major type or class of finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r552",
      "r553",
      "r554",
      "r555",
      "r898",
      "r902"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseCurrentAndFiveSucceedingFiscalYearsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "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/2023",
     "localname": "FiniteLivedIntangibleAssetsGross",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Gross",
        "terseLabel": "Intangible Assets, Gross Carrying Value",
        "totalLabel": "Finite-Lived Intangible Assets, Gross, Total",
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r902"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets [Line Items]",
        "terseLabel": "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": [
      "r898"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name",
        "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": [
      "r95",
      "r97"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Net",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Finite-lived intangible assets, net",
        "totalLabel": "Finite-Lived Intangible Assets, Net, Total",
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r898"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Remaining Amortization Period",
        "terseLabel": "Amortization period",
        "documentation": "Remaining amortization period of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r898"
     ]
    },
    "fmbh_FirstMidBankMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FirstMidBankMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "First Mid Bank [Member]",
        "label": "First Mid Bank [Member]",
        "terseLabel": "First Mid Bank"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FixedAssetsTransferredToOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FixedAssetsTransferredToOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed assets transferred to other real estate",
        "label": "Fixed Assets Transferred To Other Real Estate",
        "documentation": "Fixed assets transferred to other real estate."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_FmisTrustIiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "FmisTrustIiMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FMIS Trust II [Member]",
        "label": "Fmis Trust Ii [Member]",
        "terseLabel": "FMIS Trust II"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ForeclosedAssetsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ForeclosedAssetsHeldForSaleMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreclosed assets held for sale.",
        "label": "Foreclosed Assets Held For Sale [Member]",
        "terseLabel": "Foreclosed Assets Held-for-sale"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1165",
      "r1177",
      "r1187",
      "r1213"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1165",
      "r1177",
      "r1187",
      "r1213"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1165",
      "r1177",
      "r1187",
      "r1213"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1165",
      "r1177",
      "r1187",
      "r1213"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1165",
      "r1177",
      "r1187",
      "r1213"
     ]
    },
    "us-gaap_FurnitureAndFixturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FurnitureAndFixturesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Furniture and Equipment",
        "label": "Furniture and Fixtures [Member]",
        "documentation": "Equipment commonly used in offices and stores that have no permanent connection to the structure of a building or utilities. Examples include, but are not limited to, desks, chairs, tables, and bookcases."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GainLossOnCashSurrenderValueOfBankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GainLossOnCashSurrenderValueOfBankOwnedLifeInsurance",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gain on cash surrender value of bank owned life insurance",
        "terseLabel": "Gain on cash surrender value of bank owned life insurance",
        "label": "Gain (Loss) on Cash Surrender Value of Bank Owned Life Insurance",
        "documentation": "Gain (loss) on cash surrender value of bank owned life insurance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnDispositionOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnDispositionOfAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) on Disposition of Property Plant Equipment, Excluding Oil and Gas Property and Timber Property",
        "negatedLabel": "Gains on sale of loans held for sale, net",
        "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": [
      "r1278",
      "r1330",
      "r1331"
     ]
    },
    "us-gaap_GainLossOnSaleOfOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSaleOfOtherAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Loss (gain) on sale of other assets",
        "label": "Gain (Loss) on Disposition of Other Assets",
        "documentation": "Amount of gain (loss) on sale or disposal of other assets."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSalesOfAssetsAndAssetImpairmentCharges",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Loss on write down of premises and equipment",
        "label": "Gain (Loss) on Sale of Assets and Asset Impairment Charges",
        "documentation": "Amount of gain (loss) from the difference between the sale price or salvage price and the book value of an asset that was sold or retired, and gain (loss) from the write down of assets from their carrying value to fair value."
       }
      }
     },
     "auth_ref": [
      "r1278"
     ]
    },
    "fmbh_GainsLossOnEquitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GainsLossOnEquitySecurities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gains (loss) on equity securities.",
        "label": "Gains Loss On Equity Securities",
        "negatedLabel": "Gains on equity securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (Losses) on Sales of Other Real Estate",
        "negatedLabel": "Losses on sales of other real property 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": [
      "r260"
     ]
    },
    "fmbh_GainsOrLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GainsOrLossesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gains or losses.",
        "label": "Gains Or Losses [Abstract]",
        "terseLabel": "Total gains or losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GeneralLitigationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GeneralLitigationPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "General litigation.",
        "label": "General Litigation Policy [Text Block]",
        "terseLabel": "General Litigation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Goodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 10.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill",
        "terseLabel": "Goodwill, net",
        "verboseLabel": "Resulting goodwill from acquisition",
        "totalLabel": "Goodwill, Total",
        "periodStartLabel": "Goodwill, Beginning Balance",
        "periodEndLabel": "Goodwill, Ending Balance",
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r338",
      "r540",
      "r903",
      "r1108",
      "r1133",
      "r1327",
      "r1329"
     ]
    },
    "fmbh_GoodwillAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill accumulated amortization.",
        "label": "Goodwill Accumulated Amortization",
        "terseLabel": "Goodwill, Accumulated Amortization"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAcquiredDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill, Acquired During Period",
        "terseLabel": "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": [
      "r543",
      "r1108"
     ]
    },
    "fmbh_GoodwillAdjustmentsOfCoreDepositIntangible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfCoreDepositIntangible",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core deposit intangible",
        "documentation": "Goodwill adjustments of core deposit intangible.",
        "label": "Goodwill Adjustments Of Core Deposit Intangible"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfFHLBAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfFHLBAdvances",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of FHLB advances.",
        "label": "Goodwill Adjustments Of Fair Value Of F H L B Advances",
        "terseLabel": "Fair value of FHLB advances"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfLoansNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfLoansNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of loans, net.",
        "label": "Goodwill Adjustments Of Fair Value Of Loans Net",
        "terseLabel": "Fair value of loans, net"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfOtherRealEstateOwned",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of other real estate owned.",
        "label": "Goodwill Adjustments Of Fair Value Of Other Real Estate Owned",
        "terseLabel": "Fair value of other real estate owned"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfPremisesAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of premises and equipment.",
        "label": "Goodwill Adjustments Of Fair Value Of Premises And Equipment",
        "terseLabel": "Fair value of premises and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfSecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of Fair value of securities.",
        "label": "Goodwill Adjustments Of Fair Value Of Securities",
        "terseLabel": "Fair value of securities"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfSubordinatedDebentures",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of subordinated and jr subordinated debentures",
        "documentation": "Goodwill adjustments of fair value of subordinated debentures.",
        "label": "Goodwill Adjustments Of Fair Value Of Subordinated Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfFairValueOfTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfFairValueOfTimeDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of fair value of time deposits.",
        "label": "Goodwill Adjustments Of Fair Value Of Time Deposits",
        "terseLabel": "Fair value of time deposits"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfIncreaseDecreaseInCoreDepositIntangible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfIncreaseDecreaseInCoreDepositIntangible",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "GoodwillAdjustmentsOfIncreaseInMortgageServicingRights",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "GoodwillAdjustmentsOfInsuranceCompanyIntangible",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance Company intangible",
        "label": "Goodwill Adjustments Of Insurance Company Intangible",
        "documentation": "Goodwill adjustments of insurance company intangible."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of other assets.",
        "label": "Goodwill Adjustments Of Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAdjustmentsOfOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAdjustmentsOfOtherLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": "us-gaap_GoodwillPurchaseAccountingAdjustments",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill adjustments of other liabilities.",
        "label": "Goodwill Adjustments Of Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GoodwillAndIntangibleAssetsAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAndIntangibleAssetsAccumulatedAmortization",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill and intangible assets accumulated amortization.",
        "label": "Goodwill And Intangible Assets Accumulated Amortization",
        "terseLabel": "Goodwill and Intangible Assets, Accumulated Amortization"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "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/2023",
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Text Block]",
        "terseLabel": "Goodwill and Intangible Assets",
        "documentation": "The entire disclosure for goodwill and intangible assets."
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "fmbh_GoodwillAndIntangibleAssetsGrossCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillAndIntangibleAssetsGrossCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount, as of the balance sheet date, of the cumulative amount paid and (if applicable) the fair value of any noncontrolling interest in the acquiree, adjusted for any amortization recognized prior to the adoption of any changes in generally accepted accounting principles (as applicable), in excess of the fair value of net assets acquired in one or more business combination transactions. This amount includes the gross amount of intangibles from acquisitions and other major intangibles.",
        "label": "Goodwill And Intangible Assets Gross Carrying Value",
        "terseLabel": "Goodwill and Intangible Assets, Gross Carrying Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets, Policy [Policy Text Block]",
        "terseLabel": "Goodwill and Intangible Assets",
        "documentation": "Disclosure of accounting policy for goodwill and intangible assets. This accounting policy also may address how an entity assesses and measures impairment of goodwill and intangible assets."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r92"
     ]
    },
    "us-gaap_GoodwillGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillGross",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill, Gross",
        "terseLabel": "Goodwill, Gross Carrying Value",
        "documentation": "Amount before accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r542",
      "r549",
      "r1108"
     ]
    },
    "us-gaap_GoodwillLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill [Line Items]",
        "terseLabel": "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": [
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r1108"
     ]
    },
    "us-gaap_GoodwillPurchaseAccountingAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillPurchaseAccountingAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill, Purchase Accounting Adjustments",
        "totalLabel": "Goodwill, purchase accounting adjustments",
        "documentation": "Amount of increase (decrease) from adjustments after acquisition date under purchase accounting of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r1328"
     ]
    },
    "fmbh_GoodwillPurchaseAccountingAdjustmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GoodwillPurchaseAccountingAdjustmentsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Goodwill purchase accounting adjustments.",
        "label": "Goodwill Purchase Accounting Adjustments [Abstract]",
        "terseLabel": "Less purchase accounting adjustments:"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GrantOfRestrictedUnitsPursuantToStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GrantOfRestrictedUnitsPursuantToStockIncentivePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Grant of restricted units pursuant to stock incentive plan.",
        "label": "Grant Of Restricted Units Pursuant To Stock Incentive Plan",
        "terseLabel": "Grant of restricted stock units pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_GrossLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "GrossLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross lease cost.",
        "label": "Gross Lease Cost",
        "totalLabel": "Total lease cost"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgedAssetFairValueHedge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgedAssetFairValueHedge",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Asset, Fair Value Hedge",
        "terseLabel": "Carrying Amount of the Hedged Asset",
        "documentation": "Amount of asset hedged in fair value hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r764",
      "r1131"
     ]
    },
    "us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgedAssetFairValueHedgeCumulativeIncreaseDecrease",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfHedgedInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedged Asset, Fair Value Hedge, Cumulative Increase (Decrease)",
        "terseLabel": "Cumulative Amount of Fair Value Hedging Adjustment Included in the Carrying Amount of the Hedged Asset",
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk."
       }
      }
     },
     "auth_ref": [
      "r765",
      "r1131"
     ]
    },
    "us-gaap_HedgedAssetStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgedAssetStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://www.firstmid.com/20231231/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": [
      "r766",
      "r1131"
     ]
    },
    "fmbh_HedgedInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HedgedInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hedged Instruments [Abstract]",
        "label": "Hedged Instruments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgingDesignationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgingDesignationAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation",
        "documentation": "Information by designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r763"
     ]
    },
    "us-gaap_HedgingDesignationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgingDesignationDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation",
        "documentation": "Designation of purpose of derivative instrument."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_HedgingRelationshipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgingRelationshipDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship",
        "documentation": "Nature or intent of a hedge."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_HeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, at amortized cost (estimated fair value of $2,286 and $2,954 at December 31, 2023 and 2022, respectively)",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss",
        "totalLabel": "Held-to-maturity",
        "documentation": "Amount, before allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r293",
      "r476",
      "r519",
      "r1321"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Fair Value to Amortized Cost, after Allowance for Credit Loss [Abstract]",
        "terseLabel": "Held-to-maturity: [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Accumulated Unrecognized Gain",
        "terseLabel": "Gross Unrealized Gains",
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r272",
      "r486"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Accumulated Unrecognized Loss",
        "negatedTerseLabel": "Unrealized (Losses)",
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r273",
      "r487"
     ]
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositions12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositions12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsAccumulatedLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions 12 months or longer accumulated loss.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Positions 12 Months Or Longer Accumulated Loss",
        "terseLabel": "Held-to-maturity, 12 months or longer, Unrealized losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions accumulated loss.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Positions Accumulated Loss",
        "terseLabel": "Held-to-maturity ,Unrealized Losses",
        "totalLabel": "Held-to-maturity ,Unrealized Losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions fair value.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Positions Fair Value",
        "negatedTotalLabel": "Held-to-maturity ,Total fair value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsAccumulatedLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions less than 12 months accumulated loss.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Positions Less Than 12 Months Accumulated Loss",
        "terseLabel": "Held-to-maturity, Less than 12 months, Unrealized Losses"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsLessThanTwelveMonthsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsLessThanTwelveMonthsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsFairValue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions less than twelve months fair value.",
        "label": "Held to maturity Less than 12 months, unrealized losses",
        "terseLabel": "Held-to-maturity, Less than 12 months, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsTwelveMonthsOrLongerFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsTwelveMonthsOrLongerFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails": {
       "parentTag": "fmbh_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionsFairValue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held to maturity securities continuous unrealized loss positions twelve months or longer fair value.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Positions Twelve Months Or Longer Fair Value",
        "terseLabel": "Held-to-maturity, 12 months or longer, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 5 through 10",
        "terseLabel": "Held-to-maturity, After 5 through 10 years",
        "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": [
      "r483",
      "r913"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year One through Five",
        "terseLabel": "Held-to-maturity, After1 through 5 years",
        "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": [
      "r482",
      "r912"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, after Ten Years, Fair Value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r274",
      "r281",
      "r492",
      "r919"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesAfterTenYearsNetCarryingAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 10",
        "terseLabel": "Held-to-maturity, After ten years",
        "verboseLabel": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, after Ten Years, Amortized Cost",
        "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": [
      "r484",
      "r914"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesNetCarryingAmountAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity [Abstract]",
        "terseLabel": "Held-to-maturity, Maturity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasisAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date [Abstract]",
        "terseLabel": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Amortized Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesSingleMaturityDateFairValueAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Maturity, Allocated and Single Maturity Date, Fair Value [Abstract]",
        "terseLabel": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Fair Value [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Year One",
        "terseLabel": "Held-to-maturity, One Year or less",
        "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": [
      "r481",
      "r911"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails": {
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesMaturitiesOfInvestmentSecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Held-to-maturity, at fair value",
        "totalLabel": "Debt Securities, Held-to-maturity, Fair Value",
        "verboseLabel": "Held-to-maturity securities",
        "label": "Fair Value",
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity)."
       }
      }
     },
     "auth_ref": [
      "r271",
      "r485",
      "r904",
      "r934"
     ]
    },
    "us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Held-to-Maturity, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions",
        "terseLabel": "Held-to-maturity, securities in unrealized loss positions, qualitative disclosure, number of positions",
        "documentation": "Disclosure regarding factors used to determine that the impairment of securities categorized as held-to-maturity where cost exceeds fair value is not an other than temporary impairment (OTTI). This item contains disclosure of the number of investment positions in the held-to-maturity investments determined to be temporarily impaired."
       }
      }
     },
     "auth_ref": [
      "r278"
     ]
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities",
        "label": "Held To Maturity Tax Equivalent Yield Maturities",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , Total"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 10 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After10 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After ten years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 1 Through 5 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After1 Through5 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 1 through 5 years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities After 5 Through 10 Years",
        "label": "Held To Maturity Tax Equivalent Yield Maturities After5 Through10 Years",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , After 5 through 10 years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityTaxEquivalentYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityTaxEquivalentYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Tax Equivalent Yield Maturities Year One",
        "label": "Held To Maturity Tax Equivalent Yield Maturities Year One",
        "terseLabel": "Held To Maturity, Full tax-equivalent yield , One year or less"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityWeightedAverageYieldMaturities",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities",
        "label": "Held To Maturity Weighted Average Yield Maturities",
        "terseLabel": "Held To Maturity Weighted average yield ,Total"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 10 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After10 Years",
        "terseLabel": "Held To Maturity Weighted average yield After ten years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter1Through5Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 1 Through 5 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After1 Through5 Years",
        "terseLabel": "Held To Maturity Weighted average yield, After 1 through 5 years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesAfter5Through10Years",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities After 5 Through 10 Years",
        "label": "Held To Maturity Weighted Average Yield Maturities After5 Through10 Years",
        "terseLabel": "Held To Maturity Weighted average yield After 5 through 10 years"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_HeldToMaturityWeightedAverageYieldMaturitiesYearOne": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "HeldToMaturityWeightedAverageYieldMaturitiesYearOne",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Held To Maturity Weighted Average Yield Maturities Year One",
        "label": "Held To Maturity Weighted Average Yield Maturities Year One",
        "terseLabel": "Held To Maturity Weighted average yield, One year or less"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag",
        "terseLabel": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156",
      "r1169"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableRelatedAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableRelatedAllowance",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, Related Allowance",
        "terseLabel": "Allowance for Credit Losses",
        "documentation": "Amount of allowance for credit losses related to recorded investment."
       }
      }
     },
     "auth_ref": [
      "r83"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, with Related Allowance, Recorded Investment",
        "verboseLabel": "Fair value of loans with a specific allowance",
        "documentation": "Amount of investment in impaired financing receivables for which there is a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r82"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivable, with Related Allowance, Unpaid Principal Balance",
        "verboseLabel": "Carrying amount of loans with a specific allowance",
        "documentation": "Unpaid principal balance of impaired financing receivables for which there is a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r84"
     ]
    },
    "fmbh_IncomeLossFromContinuingOperationsBeforeEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncomeLossFromContinuingOperationsBeforeEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of operating profit and nonoperating income or expense before Income or Loss from equity method investments, income taxes, extraordinary items, and noncontrolling interest.",
        "label": "Income Loss From Continuing Operations Before Equity Method Investments",
        "totalLabel": "Income before equity in undistributed earnings of subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income before income taxes",
        "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": [
      "r0",
      "r188",
      "r250",
      "r424",
      "r431",
      "r435",
      "r437",
      "r909",
      "r946",
      "r1096"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "fmbh_IncomeLossFromContinuingOperationsBeforeEquityMethodInvestments",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income before income taxes and equity in undistributed earnings of subsidiaries",
        "documentation": "Amount of income (loss) from continuing operations before deduction of income tax expense (benefit) and income (loss) attributable to noncontrolling interest, and addition of income (loss) from equity method investments."
       }
      }
     },
     "auth_ref": [
      "r424",
      "r431",
      "r435",
      "r437",
      "r955",
      "r1096"
     ]
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Equity Method Investments",
        "terseLabel": "Equity in undistributed earnings of subsidiaries",
        "negatedLabel": "Equity in undistributed earnings of subsidiaries",
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss)."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r189",
      "r248",
      "r428",
      "r495",
      "r945"
     ]
    },
    "us-gaap_IncomeLossFromSubsidiariesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromSubsidiariesBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Subsidiaries, before Tax",
        "terseLabel": "Dividends from subsidiaries",
        "documentation": "Amount before tax of income (loss) of subsidiary attributable to the parent entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementLocationAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location",
        "documentation": "Information by location in the income statement."
       }
      }
     },
     "auth_ref": [
      "r556",
      "r558",
      "r1027"
     ]
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementLocationDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location",
        "documentation": "Location in the income statement."
       }
      }
     },
     "auth_ref": [
      "r558",
      "r1027"
     ]
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes",
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information."
       }
      }
     },
     "auth_ref": [
      "r379",
      "r718",
      "r725",
      "r726",
      "r733",
      "r740",
      "r745",
      "r746",
      "r747",
      "r982"
     ]
    },
    "us-gaap_IncomeTaxExaminationPenaltiesAndInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExaminationPenaltiesAndInterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Examination, Penalties and Interest Expense",
        "terseLabel": "Interest or penalties expense",
        "totalLabel": "Income Tax Examination, Penalties and Interest Expense, Total",
        "documentation": "The sum of the amounts of estimated penalties and interest recognized in the period arising from income tax examinations."
       }
      }
     },
     "auth_ref": [
      "r1349"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "fmbh_IncomeLossFromContinuingOperationsBeforeEquityMethodInvestments",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfFederalAndStateIncomeTaxExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income tax expense",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Income taxes",
        "totalLabel": "Total",
        "negatedTerseLabel": "Income tax benefit",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r283",
      "r298",
      "r402",
      "r403",
      "r429",
      "r723",
      "r741",
      "r956"
     ]
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes",
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements."
       }
      }
     },
     "auth_ref": [
      "r360",
      "r719",
      "r720",
      "r726",
      "r727",
      "r732",
      "r734",
      "r978"
     ]
    },
    "us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount",
        "terseLabel": "Expected income taxes",
        "documentation": "The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationNondeductibleExpenseOther",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Other, Amount",
        "terseLabel": "Nondeductible interest expense",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other nondeductible expenses."
       }
      }
     },
     "auth_ref": [
      "r1348"
     ]
    },
    "us-gaap_IncomeTaxReconciliationOtherAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationOtherAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Other Adjustments, Amount",
        "terseLabel": "Other items",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments."
       }
      }
     },
     "auth_ref": [
      "r1348"
     ]
    },
    "fmbh_IncomeTaxReconciliationOtherTaxExemptIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncomeTaxReconciliationOtherTaxExemptIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax reconciliation other tax exempt income.",
        "label": "Income Tax Reconciliation Other Tax Exempt Income",
        "negatedLabel": "Other tax exempt income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationStateAndLocalIncomeTaxes",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount",
        "terseLabel": "State taxes, net of federal taxes",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit)."
       }
      }
     },
     "auth_ref": [
      "r1348"
     ]
    },
    "fmbh_IncomeTaxReconciliationTaxExemptLifeInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncomeTaxReconciliationTaxExemptLifeInsuranceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax reconciliation tax exempt life insurance income.",
        "label": "Income Tax Reconciliation Tax Exempt Life Insurance Income",
        "negatedLabel": "Tax-exempt income from bank owned life insurance"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_IncomeTaxReconciliationTaxMarginalTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncomeTaxReconciliationTaxMarginalTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesEffectiveIncomeTaxReconciliationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income Tax Reconciliation Tax Marginal Tax Rate",
        "label": "Income Tax Reconciliation Tax Marginal Tax Rate",
        "terseLabel": "Effect of marginal tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income taxes",
        "label": "Income Taxes Paid",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r67"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInAccountsAndNotesReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Accounts and Notes Receivable",
        "terseLabel": "Increase (decrease) 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/2023",
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Accrued Interest Receivable, Net",
        "negatedLabel": "Decrease (increase) in accrued interest receivable",
        "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/2023",
     "localname": "IncreaseDecreaseInDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Deposits",
        "terseLabel": "Net increase (decrease) in deposits",
        "totalLabel": "Increase (Decrease) in Deposits, Total",
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances."
       }
      }
     },
     "auth_ref": [
      "r66",
      "r165"
     ]
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Interest Payable, Net",
        "terseLabel": "Increase (decrease) in accrued interest payable",
        "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/2023",
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Increase in other assets",
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedLabel": "Increase in other assets",
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total",
        "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/2023",
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in other liabilities",
        "verboseLabel": "Increase (decrease) in other liabilities",
        "label": "Increase (Decrease) in Other Operating Liabilities",
        "totalLabel": "Increase (Decrease) in Other Operating Liabilities, Total",
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "fmbh_IncreaseDecreaseInRepurchaseAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncreaseDecreaseInRepurchaseAgreements",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in repurchase agreements",
        "label": "Increase Decrease in Repurchase Agreements",
        "documentation": "Increased decrease in repurchase agreements."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangementsRestrictedStockAwards",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of restricted stock awarded share based payment arrangements using the treasury stock method.",
        "label": "Incremental Common Shares Attributable To Share Based Payment Arrangements Restricted Stock Awards",
        "terseLabel": "Restricted stock awarded"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IndefiniteLivedContractualRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IndefiniteLivedContractualRights",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indefinite-Lived Contractual Rights",
        "terseLabel": "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": [
      "r212"
     ]
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1168",
      "r1177",
      "r1187",
      "r1204",
      "r1213",
      "r1217",
      "r1225"
     ]
    },
    "fmbh_InitialRecognitionOfOperatingLeaseLiaibility": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InitialRecognitionOfOperatingLeaseLiaibility",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Initial Recognition Of Operating Lease Liaibility",
        "documentation": "Initial Recognition Of Operating Lease Liaibility",
        "terseLabel": "Initial recognition of lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r1223"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r1157",
      "r1229"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1157",
      "r1229"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1157",
      "r1229"
     ]
    },
    "us-gaap_InsuranceCommissionsAndFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InsuranceCommissionsAndFees",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insurance Commissions and Fees",
        "terseLabel": "Insurance commissions",
        "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": [
      "r257"
     ]
    },
    "us-gaap_InsuranceContractAcquisitionCostPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InsuranceContractAcquisitionCostPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insurance Contract, Acquisition Cost [Policy Text Block]",
        "terseLabel": "Bank Owned Life Insurance",
        "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": [
      "r282",
      "r931",
      "r957",
      "r958",
      "r959"
     ]
    },
    "fmbh_IntangibleAssetsMortgageServicingRightsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IntangibleAssetsMortgageServicingRightsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "[Table Text Block] for Intangible Assets, Mortgage Servicing Rights [Table]",
        "label": "Intangible Assets Mortgage Servicing Rights Table [Text Block]",
        "terseLabel": "Intangible Assets Mortgage Servicing Rights"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "terseLabel": "Intangible assets, net",
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total",
        "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": [
      "r93",
      "r96"
     ]
    },
    "us-gaap_IntangibleAssetsNetIncludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsNetIncludingGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets, Net (Including Goodwill)",
        "terseLabel": "Core deposit intangible asset",
        "totalLabel": "Intangible Assets, Net (Including Goodwill), Total",
        "documentation": "Carrying amount of finite-lived intangible assets, indefinite-lived intangible assets and goodwill. Goodwill is an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Intangible assets are assets, not including financial assets, lacking physical substance."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_IntangiblesFromBranchAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "IntangiblesFromBranchAcquisitionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Intangibles From Branch Acquisition [Member]",
        "terseLabel": "Intangibles from Branch Acquisition"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Total interest income",
        "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": [
      "r253",
      "r1399"
     ]
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating [Abstract]",
        "terseLabel": "Interest income:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Fee Income, Loans and Leases",
        "terseLabel": "Interest and fees on loans",
        "totalLabel": "Interest and Fee Income, Loans and Leases, Total",
        "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": [
      "r252"
     ]
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Deposit Liabilities",
        "terseLabel": "Interest bearing",
        "totalLabel": "Interest-Bearing Deposit Liabilities, Total",
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositsInBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Deposits in Banks and Other Financial Institutions",
        "terseLabel": "Interest bearing",
        "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": [
      "r153",
      "r161"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositDemand": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositDemand",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Domestic Deposit, Demand",
        "terseLabel": "Interest-bearing",
        "documentation": "Amount of money in interest-bearing domestic accounts that entitle the depositor to withdraw funds at any time without prior notice, also known as demand deposits."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositMoneyMarket": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositMoneyMarket",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Domestic Deposit, Money Market",
        "terseLabel": "Money market",
        "documentation": "Amount of interest-bearing domestic money market demand account deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "us-gaap_InterestBearingDomesticDepositSavings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDomesticDepositSavings",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-Bearing Domestic Deposit, Savings",
        "terseLabel": "Savings",
        "documentation": "Amount of interest-bearing domestic savings deposit liabilities. Saving deposits bear interest and have no stated maturity."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "us-gaap_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Total interest expense",
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense."
       }
      }
     },
     "auth_ref": [
      "r149",
      "r267",
      "r364",
      "r427",
      "r828",
      "r1028",
      "r1147",
      "r1393"
     ]
    },
    "us-gaap_InterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense [Abstract]",
        "terseLabel": "Interest expense:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseDemandDepositAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseDemandDepositAccounts",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails": {
       "parentTag": "us-gaap_InterestExpenseDeposits",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Demand Deposit Accounts",
        "terseLabel": "Interest-bearing demand",
        "documentation": "Interest expense incurred on demand deposit accounts that represent borrowings rather than outstanding drafts."
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "us-gaap_InterestExpenseDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Deposits",
        "terseLabel": "Interest on deposits",
        "totalLabel": "Total",
        "documentation": "Aggregate amount of interest expense on all deposits."
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "fmbh_InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestExpenseFederalHomeLoanBankAdvancesShortAndLongTerm",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on short-term and long-term borrowings associated with Federal Home Loan Bank advances.",
        "label": "Interest Expense Federal Home Loan Bank Advances Short And Long Term",
        "terseLabel": "Interest on FHLB borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseJuniorSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseJuniorSubordinatedDebentures",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Junior Subordinated Debentures",
        "terseLabel": "Interest on 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": [
      "r266"
     ]
    },
    "us-gaap_InterestExpenseMoneyMarketDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseMoneyMarketDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails": {
       "parentTag": "us-gaap_InterestExpenseDeposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Money Market Deposits",
        "terseLabel": "Money market",
        "documentation": "Interest expense incurred on all money market deposits."
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "fmbh_InterestExpenseOtherShortTermBorrowingsNetOfIntercompanyAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestExpenseOtherShortTermBorrowingsNetOfIntercompanyAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "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_InterestExpenseSavingsDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseSavingsDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails": {
       "parentTag": "us-gaap_InterestExpenseDeposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Savings Deposits",
        "terseLabel": "Savings",
        "documentation": "Interest expense incurred on all savings account deposits."
       }
      }
     },
     "auth_ref": [
      "r264",
      "r300",
      "r301"
     ]
    },
    "us-gaap_InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Securities Sold under Agreements to Repurchase",
        "terseLabel": "Interest on 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": [
      "r265",
      "r300",
      "r301"
     ]
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Subordinated Notes and Debentures",
        "terseLabel": "Interest on subordinated debt",
        "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": [
      "r266"
     ]
    },
    "us-gaap_InterestExpenseTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseTimeDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails": {
       "parentTag": "us-gaap_InterestExpenseDeposits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Time Deposits",
        "terseLabel": "Time deposits",
        "totalLabel": "Interest Expense, Time Deposits, Total",
        "documentation": "The aggregate interest expense incurred on time deposits, including certificates of deposits, in domestic offices."
       }
      }
     },
     "auth_ref": [
      "r264",
      "r300",
      "r301"
     ]
    },
    "fmbh_InterestFourPointThreeFourMaturingOnJuneThreeZeroTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestFourPointThreeFourMaturingOnJuneThreeZeroTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest four point three four maturing on june three zero two thousand twenty three member.",
        "label": "Interest Four Point Three Four Maturing On June Three Zero Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 4.34% - Maturity Date June 30, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestFourPointTwoTwoMaturingOnMarchThreeOneTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestFourPointTwoTwoMaturingOnMarchThreeOneTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest four point two two maturing on march three one two thousand twenty three member.",
        "label": "Interest Four Point Two Two Maturing On March Three One Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 4.22% - Maturity Date March 31, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeAndFeesBankersAcceptancesCertificatesOfDepositAndCommercialPaper",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income and Fees, Bankers Acceptances, Certificates of Deposit and Commercial Paper",
        "terseLabel": "Interest on certificates of deposit investments",
        "documentation": "Interest and fee income derived from banker's acceptances, certificates of deposit and commercial paper."
       }
      }
     },
     "auth_ref": [
      "r263"
     ]
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income, Deposits with Financial Institutions",
        "terseLabel": "Interest on deposits with other financial institutions",
        "totalLabel": "Interest Income, Deposits with Financial Institutions, Total",
        "documentation": "Interest income derived from funds deposited with both domestic and foreign financial institutions including funds in money market and other accounts."
       }
      }
     },
     "auth_ref": [
      "r263",
      "r300",
      "r301"
     ]
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "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": [
      "r256"
     ]
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income (Expense), Net",
        "totalLabel": "Net interest income",
        "documentation": "The net amount of operating interest income (expense)."
       }
      }
     },
     "auth_ref": [
      "r254"
     ]
    },
    "us-gaap_InterestIncomeFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeFederalFundsSold",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income, Federal Funds Sold",
        "terseLabel": "Interest on 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": [
      "r263",
      "r300",
      "r301"
     ]
    },
    "us-gaap_InterestIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income [Member]",
        "terseLabel": "Interest Income On Loans",
        "documentation": "Primary financial statement caption in which reported facts about interest income have been included."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income, Securities, Operating, Tax Exempt",
        "terseLabel": "Exempt from federal income tax",
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities exempt from state, federal and other income tax."
       }
      }
     },
     "auth_ref": [
      "r262",
      "r300",
      "r301"
     ]
    },
    "us-gaap_InterestIncomeSecuritiesTaxable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeSecuritiesTaxable",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income, Securities, Operating, Taxable",
        "terseLabel": "Taxable",
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities subject to state, federal and other income tax."
       }
      }
     },
     "auth_ref": [
      "r262",
      "r300",
      "r301"
     ]
    },
    "fmbh_InterestOnInvestmentSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestOnInvestmentSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest on investment securities.",
        "label": "Interest On Investment Securities [Abstract]",
        "terseLabel": "Interest on investment securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest",
        "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": [
      "r372",
      "r375",
      "r376"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Payable",
        "terseLabel": "Interest payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r158",
      "r1387"
     ]
    },
    "fmbh_InterestPayableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestPayableFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This element represents the fair value of interest payable.",
        "label": "Interest Payable Fair Value Disclosure",
        "terseLabel": "Interest payable"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateDerivativeAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestRateDerivativeAssetsAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Derivative Assets, at Fair Value",
        "terseLabel": "Derivative assets: interest rate swaps",
        "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/2023",
     "localname": "InterestRateDerivativeLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Derivative Liabilities, at Fair Value",
        "terseLabel": "Derivative liabilities: interest swaps",
        "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/20231231",
     "localname": "InterestRateFourPointEightOneMaturingOnNovemberTenTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point eight one maturing on november ten two thousand twenty three member",
        "label": "Interest Rate Four Point Eight One Maturing On November Ten Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 4.81% - Maturity Date November 10, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateFourPointFiveNineMaturingOnNovemberEightTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point five nine maturing on november eight two thousand twenty four member.",
        "label": "Interest Rate Four Point Five Nine Maturing On November Eight Two Thousand Twenty Four Member",
        "terseLabel": "Interest Rate 4.59% - Maturity Date November 8, 2024"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointFourZeroMaturingOnJuneFifteenTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateFourPointFourZeroMaturingOnJuneFifteenTwoThousandTwentySixMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 4.40% - Maturity Date June 15, 2026",
        "label": "Interest Rate Four Point Four Zero Maturing On June Fifteen Two Thousand Twenty Six [Member]",
        "documentation": "Interest rate four point four zero maturing on june fifteen two thousand twenty six."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateFourPointSixNineMaturingOnMayTenTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point six nine maturing on may ten two thousand twenty four member.",
        "label": "Interest Rate Four Point Six Nine Maturing On May Ten Two Thousand Twenty Four Member",
        "terseLabel": "Interest Rate 4.69% - Maturity Date May 10, 2024"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateFourPointThirtyOneMaturingOnJanuaryOneTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateFourPointThirtyOneMaturingOnJanuaryOneTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate four point thirty one maturing on january one two thousand twenty three member.",
        "label": "Interest Rate Four Point Thirty One Maturing On January One Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 4.31% - Maturity Date January 1, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointFiveOneMaturingOnJulyThirtyOneTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateOnePointFiveOneMaturingOnJulyThirtyOneTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point five one maturing on July thirty one two thousand twenty three.",
        "label": "Interest Rate One Point Five One Maturing On July Thirty One Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 1.51% - Maturity Date July 31, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateOnePointFourFiveMaturingOnDecemberThirtyOneTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point four five maturing on December thirty one two thousand twenty four.",
        "label": "Interest Rate One Point Four Five Maturing On December Thirty One Two Thousand Twenty Four [Member]",
        "terseLabel": "Interest Rate 1.45% - Maturity Date December 31, 2024"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateOnePointOneFiveMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point one five maturing on October three two thousand twenty nine.",
        "label": "Interest Rate One Point One Five Maturing On October Three Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.15% - Maturity Date October 3, 2029"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateOnePointOneTwoMaturingOnOctoberThreeTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point one two maturing on October three two thousand twenty nine.",
        "label": "Interest Rate One Point One Two Maturing On October Three Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.12% - Maturity Date October 3, 2029"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateOnePointThreeNineMaturingOnDecemberThirtyOneTwoThousandTwentyNineMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate one point three nine maturing on December thirty one two thousand twenty nine.",
        "label": "Interest Rate One Point Three Nine Maturing On December Thirty One Two Thousand Twenty Nine [Member]",
        "terseLabel": "Interest Rate 1.39% - Maturity Date December 31, 2029"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestRateSwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestRateSwapMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfDerivativeInstrumentsGainLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest Rate Swap Agreements",
        "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": [
      "r1089",
      "r1144",
      "r1145"
     ]
    },
    "fmbh_InterestRateThreePointEightTwoMaturingOnJuneTwentyNineTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateThreePointEightTwoMaturingOnJuneTwentyNineTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.82% - Maturity Date June 29, 2028",
        "label": "Interest Rate Three Point Eight Two Maturing On June Twenty Nine Two Thousand Twenty Eight [Member]",
        "documentation": "Interest rate three point eight two maturing on june twenty nine two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateThreePointFourNineMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate three point four nine maturing on december eight two thousand twenty seven member.",
        "label": "Interest Rate Three Point Four Nine Maturing On December Eight Two Thousand Twenty Seven Member",
        "terseLabel": "Interest Rate 3.49% - Maturity Date December 8, 2027"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateThreePointFourSevenMaturingOnMarchThirteenTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20231231/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/20231231",
     "localname": "InterestRateThreePointNineFiveMaturingOnJuneTwentyNineTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.95% - Maturity Date June 29, 2028",
        "label": "Interest Rate Three Point Nine Five Maturing On June Twenty Nine Two Thousand Twenty Eight [Member]",
        "documentation": "Interest rate three point eight two maturing on june twenty nine two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointSixSevenMaturingOnJuneFifteenTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateThreePointSixSevenMaturingOnJuneFifteenTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate 3.67% - Maturity Date June 15, 2028",
        "label": "Interest Rate Three Point Six Seven Maturing On June Fifteen Two Thousand Twenty Eight [Member]",
        "documentation": "Interest rate three point six seven maturing on june fifteen two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateThreePointTwoEightMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate three point two eight maturing on december eight two thousand twenty seven member.",
        "label": "Interest Rate Three Point Two Eight Maturing On December Eight Two Thousand Twenty Seven Member",
        "terseLabel": "Interest Rate 3.28% - Maturity Date December 8, 2027"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointFourFourMaturingOnMayThirtyTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateTwoPointFourFourMaturingOnMayThirtyTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point four four maturing on may thirty two thousand twenty three.",
        "label": "Interest Rate Two Point Four Four Maturing On May Thirty Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 2.44% - Maturity Date May 30, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointFourZeroMaturingOnJanuaryNineTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateTwoPointFourZeroMaturingOnJanuaryNineTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point four zero maturing on January nine twenty one two thousand twenty three.",
        "label": "Interest Rate Two Point Four Zero Maturing On January Nine Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 2.40% - Maturity Date January 9, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointNinetyEightMaturingOnDecemberEightTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateTwoPointNinetyEightMaturingOnDecemberEightTwoThousandTwentySevenMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate two point ninety eight maturing on december eight two thousand twenty seven member.",
        "label": "Interest Rate Two Point Ninety Eight Maturing On December Eight Two Thousand Twenty Seven Member",
        "terseLabel": "Interest Rate 2.98% - Maturity Date December 8, 2027"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointSeventySevenMaturingOnDecemberThirteenTwoThousandThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateTwoPointSeventySevenMaturingOnDecemberThirteenTwoThousandThirtyTwoMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest rate two point seventy seven maturing on december thirteen two thousand thirty two member.",
        "label": "Interest Rate Two Point Seventy Seven Maturing On December Thirteen Two Thousand Thirty Two Member",
        "terseLabel": "Interest Rate 2.77% - Maturity Date December 13, 2032"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateTwoPointSixFourMaturingOnDecemberTwentyThreeTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate two point six four maturing on December twenty three two thousand twenty five.",
        "label": "Interest Rate Two Point Six Four Maturing On December Twenty Three Two Thousand Twenty Five [Member]",
        "terseLabel": "Interest Rate 2.64% - Maturity Date December 23, 2025"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateZeroPointNineOneMaturingOnMarchTenTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate zero point nine one maturing on March ten two thousand twenty five.",
        "label": "Interest Rate Zero Point Nine One Maturing On March Ten Two Thousand Twenty Five [Member]",
        "terseLabel": "Interest Rate 0.91% - Maturity Date March 10, 2025"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestRateZeroPointSevenSevenMaturingOnSeptemberElevenTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestRateZeroPointSevenSevenMaturingOnSeptemberElevenTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate zero point seven seven maturing on September eleven two thousand twenty three.",
        "label": "Interest Rate Zero Point Seven Seven Maturing On September Eleven Two Thousand Twenty Three [Member]",
        "terseLabel": "Interest Rate 0.77% - Maturity Date September 11, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Receivable",
        "terseLabel": "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": [
      "r1267",
      "r1398"
     ]
    },
    "fmbh_InterestReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents the interest receivable from third parties.",
        "label": "Interest Receivable Fair Value Disclosure",
        "terseLabel": "Interest receivable"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InterestTwoPointZeroZeroMaturingOnMayThreeOneTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InterestTwoPointZeroZeroMaturingOnMayThreeOneTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "interest two point zero zero maturing on may three one two thousand twenty three member.",
        "label": "Interest Two Point Zero Zero Maturing On May Three One Two Thousand Twenty Three Member",
        "terseLabel": "Interest Rate 2.00% - Maturity Date May 31, 2023"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Axis]",
        "terseLabel": "Internal Credit Assessment",
        "documentation": "Information by entity-defined rating."
       }
      }
     },
     "auth_ref": [
      "r86",
      "r767",
      "r1104",
      "r1105",
      "r1324"
     ]
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Domain]",
        "terseLabel": "Internal Credit Assessment",
        "documentation": "Entity defined credit risk rating."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentInFederalHomeLoanBankStockFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentInFederalHomeLoanBankStockFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment in Federal Home Loan Bank Stock, Fair Value Disclosure",
        "terseLabel": "Federal Home Loan Bank stock",
        "documentation": "Fair value portion of investments in Federal Home Loan Bank (FHLBank) stock."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InvestmentInFederalReserveBankStockFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InvestmentInFederalReserveBankStockFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents the amount shown on an entity's books for investments in Federal Reserve Bank stock.",
        "label": "Investment In Federal Reserve Bank Stock Fair Value Disclosure",
        "terseLabel": "Federal Reserve Bank stock"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_InvestmentInStatutoryTrust": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "InvestmentInStatutoryTrust",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in common equity of Statutory Trust",
        "label": "Investment In Statutory Trust",
        "terseLabel": "Investment in statutory trust"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Policy [Policy Text Block]",
        "terseLabel": "Investment Securities",
        "documentation": "Disclosure of accounting policy for investment in financial asset."
       }
      }
     },
     "auth_ref": [
      "r953",
      "r974",
      "r975",
      "r976",
      "r977",
      "r1049",
      "r1050"
     ]
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Classified by Contractual Maturity Date [Table Text Block]",
        "terseLabel": "Investments Classified by Contractual Maturity Date",
        "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/2023",
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures",
        "terseLabel": "Investment in subsidiaries",
        "totalLabel": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures, Total",
        "documentation": "Amount of investment in equity method investee and investment in and advance to affiliate."
       }
      }
     },
     "auth_ref": [
      "r1266"
     ]
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "terseLabel": "Investment Securities",
        "documentation": "The entire disclosure for investments in certain debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r237",
      "r268",
      "r270",
      "r302",
      "r458",
      "r462",
      "r806",
      "r807"
     ]
    },
    "fmbh_JeffersonBankMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "JeffersonBankMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Jefferson bank.",
        "label": "Jefferson Bank [Member]",
        "terseLabel": "Jefferson Bank"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust",
        "terseLabel": "Junior subordinated debentures, net",
        "totalLabel": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust, Total",
        "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": [
      "r160",
      "r1389"
     ]
    },
    "us-gaap_JuniorSubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedDebtMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior Subordinated Debt [Member]",
        "terseLabel": "Junior Subordinated Debentures",
        "documentation": "Borrowing that has a lower priority than senior instruments in event of liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JuniorSubordinatedNotes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedNotes",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": "fmbh_ShortTermAndLongTermBorrowings",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior Subordinated Notes",
        "terseLabel": "Junior subordinated debentures",
        "totalLabel": "Junior Subordinated Notes, Total",
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of long-term debt (with maturities initially due after one year or beyond the operating cycle if longer) identified as Junior Subordinated Notes, which have a lower priority than senior instruments."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r244",
      "r1389"
     ]
    },
    "fmbh_LINCOBancsharesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LINCOBancsharesIncMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "LINCO Bancshares, Inc.",
        "label": "L I N C O Bancshares Inc [Member]",
        "terseLabel": "LINCO Bancshares, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LaborAndRelatedExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LaborAndRelatedExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Labor and Related Expense",
        "terseLabel": "Salaries and employee benefits",
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit."
       }
      }
     },
     "auth_ref": [
      "r1273"
     ]
    },
    "us-gaap_LandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LandMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land [Member]",
        "terseLabel": "Land",
        "documentation": "Part of earth's surface not covered by water."
       }
      }
     },
     "auth_ref": [
      "r1342"
     ]
    },
    "us-gaap_LeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost",
        "totalLabel": "Net lease cost",
        "documentation": "Amount of lease cost recognized by lessee for lease contract."
       }
      }
     },
     "auth_ref": [
      "r842",
      "r1132"
     ]
    },
    "us-gaap_LeaseCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCostAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost [Abstract]",
        "terseLabel": "Lease, Cost [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeaseholdImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseholdImprovementsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leasehold Improvements [Member]",
        "terseLabel": "Leasehold Improvements",
        "documentation": "Additions or improvements to assets held under a lease arrangement."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "us-gaap_LeaseholdsAndLeaseholdImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseholdsAndLeaseholdImprovementsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leaseholds and Leasehold Improvements [Member]",
        "terseLabel": "Leasehold Improvements",
        "documentation": "Asset held by lessee under finance lease and addition or improvement to asset held under lease arrangement."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "us-gaap_LeasesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeasesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeasesOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeasesOperatingAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases, Operating [Abstract]",
        "terseLabel": "Leases, Operating [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeLeaseDescriptionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeLeaseDescriptionLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Lease, Description [Line Items]",
        "terseLabel": "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": [
      "r841"
     ]
    },
    "us-gaap_LesseeLeaseDescriptionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeLeaseDescriptionTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Lease, Description [Table]",
        "terseLabel": "Lessee Lease Description [Table]",
        "documentation": "Disclosure of information about lessee's leases."
       }
      }
     },
     "auth_ref": [
      "r841"
     ]
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeLeasesPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Leases [Policy Text Block]",
        "terseLabel": "Leases",
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee."
       }
      }
     },
     "auth_ref": [
      "r840"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Maturity [Table Text Block]",
        "terseLabel": "Summary of Future Minimum Lease Payments",
        "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": [
      "r1368"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total minimum lease payments",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "Thereafter",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "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": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "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": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "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": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "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": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails2": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less imputed interest",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Renewal Term",
        "terseLabel": "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": [
      "r1367"
     ]
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeasesTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Leases [Text Block]",
        "terseLabel": "Leases",
        "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": [
      "r836"
     ]
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities",
        "totalLabel": "Total liabilities",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r378",
      "r496",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r758",
      "r761",
      "r762",
      "r813",
      "r999",
      "r1095",
      "r1149",
      "r1335",
      "r1370",
      "r1371"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and stockholders\u2019 equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r245",
      "r941",
      "r1133",
      "r1281",
      "r1316",
      "r1366"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Liabilities and stockholders\u2019 equity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LifeInsuranceCorporateOrBankOwnedChangeInValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LifeInsuranceCorporateOrBankOwnedChangeInValue",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Life Insurance, Corporate or Bank Owned, Change in Value",
        "negatedLabel": "Change in cash surrender value of bank owned life insurance",
        "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": [
      "r1317"
     ]
    },
    "fmbh_LineOfCreditFacilityInterestRateSpread": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LineOfCreditFacilityInterestRateSpread",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest rate spread over federal funds rate.",
        "label": "Line Of Credit Facility Interest Rate Spread",
        "terseLabel": "Line of credit facility, interest rate spread"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Line of credit facility, maximum borrowing capacity",
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanRestructuringModificationAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan Restructuring Modification",
        "label": "Loan Restructuring Modification [Axis]",
        "documentation": "Information by concessions made to the terms of loan contracts."
       }
      }
     },
     "auth_ref": [
      "r448",
      "r449",
      "r451",
      "r1097"
     ]
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanRestructuringModificationDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan Restructuring Modification",
        "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": [
      "r448",
      "r449",
      "r451",
      "r1097"
     ]
    },
    "fmbh_LoanToValueRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LoanToValueRatio",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the mortgage loan as a percentage of the total appraised value of the real property. Loan-to-value is one of the key risk factors that lenders assess when qualifying borrowers for a mortgage.",
        "label": "Loan To Value Ratio",
        "terseLabel": "Maximum loan-to-value ratio (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_LoansAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LoansAcquired",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans acquired.",
        "label": "Loans Acquired",
        "terseLabel": "Loans acquired"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableImpairedInterestLostOnNonaccrualLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Impaired, Interest Lost on Nonaccrual Loans",
        "terseLabel": "Interest lost on nonaccrual loans",
        "documentation": "Reflects the amount of additional interest income that would have been recorded if impaired or nonperforming loans were instead current, in compliance with their original terms, and outstanding throughout the reporting period or since origination (if held for part of the period)."
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "fmbh_LoansAndLeasesReceivableInterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LoansAndLeasesReceivableInterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and leases receivable, interest receivable.",
        "label": "Loans And Leases Receivable Interest Receivable",
        "terseLabel": "Accrued interest on loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableNetReportedAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Net Amount",
        "totalLabel": "Net loans",
        "terseLabel": "Loan purchased amount",
        "documentation": "Amount after allowance and deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements and loans held for sale."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r204"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Related Parties",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "verboseLabel": "Loans to related parties",
        "documentation": "For an unclassified balance sheet, reflects the carrying amount of unpaid loan amounts due from related parties at the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r152",
      "r163"
     ]
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails": {
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan, Held-for-Sale, Fair Value Disclosure",
        "terseLabel": "Loans held for sale",
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "terseLabel": "Loans and Allowance for Credit Losses",
        "documentation": "The entire disclosure for claims held for amounts due a entity, excluding financing receivables. Examples include, but are not limited to, trade accounts receivables, notes receivables, loans receivables. Includes disclosure for allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r1291"
     ]
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Receivable, Fair Value Disclosure",
        "terseLabel": "Loans net of allowance for credit losses",
        "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": [
      "r78"
     ]
    },
    "us-gaap_LoansReceivableHeldForSaleAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableHeldForSaleAmount",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails": {
       "parentTag": "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Held-for-Sale",
        "terseLabel": "Loans held for sale",
        "documentation": "Amount, before valuation allowance, of financing receivable classified as held-for-sale."
       }
      }
     },
     "auth_ref": [
      "r441",
      "r1071"
     ]
    },
    "fmbh_LoansReceivableModificationsAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LoansReceivableModificationsAllowance",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The allowance for loan losses related to financing receivables that have been modified by troubled debt restructurings.",
        "label": "Loans Receivable Modifications Allowance",
        "verboseLabel": "Loans receivable, modifications, allowance"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_LoansReceivableTimePeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LoansReceivableTimePeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Specifies the time period covered by the loan receivable.",
        "label": "Loans Receivable Time Period",
        "terseLabel": "Loans receivable, time period"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt",
        "totalLabel": "Long-term Debt",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r244",
      "r582",
      "r592",
      "r1110",
      "r1111",
      "r1389"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, after Year Five",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal after Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r383",
      "r1341"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year One",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal in Next Twelve Months",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and 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": [
      "r17",
      "r383",
      "r586"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Five",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal in Year Five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r383",
      "r586"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Four",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal in Year Four",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r383",
      "r586"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Three",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal in Year Three",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r383",
      "r586"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Two",
        "terseLabel": "Long-term Debt, Maturities, Repayments of Principal in Year Two",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r383",
      "r586"
     ]
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type",
        "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": [
      "r46",
      "r101"
     ]
    },
    "fmbh_LossOnCashUninsured": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "LossOnCashUninsured",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureCashAndDueFromBanksAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss on cash uninsured.",
        "label": "Loss On Cash Uninsured",
        "terseLabel": "Loss on cash uninsured"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MSRInterestOnlyStripIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MSRInterestOnlyStripIncreaseDecrease",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSR interest only strip increase decrease.",
        "label": "M S R Interest Only Strip Increase Decrease",
        "negatedLabel": "I/O strip"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketApproachValuationTechniqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketApproachValuationTechniqueMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation, Market Approach [Member]",
        "terseLabel": "Third Party Valuations",
        "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": [
      "r30"
     ]
    },
    "us-gaap_MarketableSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketableSecuritiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable Securities [Abstract]",
        "terseLabel": "Investment securities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketingAndAdvertisingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketingAndAdvertisingExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketing and Advertising Expense",
        "terseLabel": "Marketing and donations",
        "totalLabel": "Marketing and Advertising Expense, Total",
        "documentation": "The total expense recognized in the period for promotion, public relations, and brand or product advertising."
       }
      }
     },
     "auth_ref": [
      "r194"
     ]
    },
    "us-gaap_MaturitiesOfLongTermDebtAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MaturitiesOfLongTermDebtAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturities of Long-Term Debt [Abstract]",
        "terseLabel": "Maturities of Long-term Debt [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MaturitiesOfTimeDepositsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MaturitiesOfTimeDepositsAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturities of Time Deposits [Abstract]",
        "terseLabel": "Maturities of Time Deposits [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MaturitiesOfTimeDepositsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MaturitiesOfTimeDepositsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Maturities of Time Deposits [Table Text Block]",
        "label": "Maturities Of Time Deposits Table [Text Block]",
        "terseLabel": "Summary of Maturities for All Time Deposits"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r562",
      "r563",
      "r564",
      "r670",
      "r896",
      "r960",
      "r990",
      "r991",
      "r1048",
      "r1051",
      "r1052",
      "r1053",
      "r1063",
      "r1086",
      "r1087",
      "r1097",
      "r1114",
      "r1125",
      "r1135",
      "r1339",
      "r1372",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377"
     ]
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r1196"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1196"
     ]
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r562",
      "r563",
      "r564",
      "r670",
      "r896",
      "r960",
      "r990",
      "r991",
      "r1048",
      "r1051",
      "r1052",
      "r1053",
      "r1063",
      "r1086",
      "r1087",
      "r1097",
      "r1114",
      "r1125",
      "r1135",
      "r1339",
      "r1372",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377"
     ]
    },
    "fmbh_MinimumValueOfLoansIndividuallyMeasuredForImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MinimumValueOfLoansIndividuallyMeasuredForImpairment",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum value of loans individually measured for impairment.",
        "label": "Minimum Value Of Loans Individually Measured For Impairment",
        "terseLabel": "Minimum value of loans individually measured for impairment"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MiscellaneousDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MiscellaneousDebtMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Miscellaneous Debt.",
        "label": "Miscellaneous Debt [Member]",
        "terseLabel": "Miscellaneous"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1216"
     ]
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Loans in Process of Foreclosure, Amount",
        "terseLabel": "Mortgage loans secured by real estate In foreclosure",
        "documentation": "Recorded investment of consumer mortgage loan receivables secured by residential real estate properties for which formal foreclosure proceedings are in process."
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate, Type of Property [Axis]",
        "terseLabel": "Real Estate, Type of Property",
        "documentation": "Information by type of real estate property."
       }
      }
     },
     "auth_ref": [
      "r313",
      "r323",
      "r1072",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084"
     ]
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Domain]",
        "terseLabel": "Real Estate",
        "documentation": "Land and any structures permanently fixed to it."
       }
      }
     },
     "auth_ref": [
      "r313",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084"
     ]
    },
    "fmbh_MortgageServicingRightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MortgageServicingRightsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage Servicing Rights [Abstract]",
        "label": "Mortgage Servicing Rights [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MortgageServicingRightsMSRImpairmentRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageServicingRightsMSRImpairmentRecovery",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Servicing Rights (MSR) Impairment (Recovery)",
        "terseLabel": "Mortgage servicing rights (MSR) impairment (recovery)",
        "negatedLabel": "Valuation recovery",
        "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": [
      "r1243",
      "r1278"
     ]
    },
    "fmbh_MortgageServicingRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MortgageServicingRightsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsMeasuredAtFairValueOnNonrecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage Servicing Rights [Member]",
        "label": "Mortgage Servicing Rights [Member]",
        "terseLabel": "Mortgage Servicing Rights",
        "verboseLabel": "Mortgage Servicing Rights"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_MsrmortgageServicingRightsAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MsrmortgageServicingRightsAcquired",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mortgage servicing rights acquired during period",
        "label": "MsrMortgage Servicing Rights Acquired",
        "documentation": "MsrMortgage servicing rights acquired."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1224"
     ]
    },
    "srt_MultifamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MultifamilyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multifamily [Member]",
        "terseLabel": "Multifamily",
        "documentation": "Residential building containing multiple separate housing units."
       }
      }
     },
     "auth_ref": [
      "r1259",
      "r1260",
      "r1400",
      "r1401"
     ]
    },
    "fmbh_MultifamilyResidentialPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "MultifamilyResidentialPropertiesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Multifamily Residential Properties",
        "documentation": "Property that is used to house multifamilies, such as an apartment complex.",
        "label": "Multifamily Residential Properties [Member]",
        "terseLabel": "Multifamily Residential Properties"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1197"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by (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": [
      "r374"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by (used in) investing activities",
        "label": "Net Cash Provided by (Used in) 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": [
      "r374"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "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": [
      "r198",
      "r199",
      "r200"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash flows from operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_NetCashUsedInProvidedByAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NetCashUsedInProvidedByAcquisition",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net cash provided by 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/2023",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome",
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss",
      "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 available to common stockholders",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r190",
      "r200",
      "r251",
      "r334",
      "r355",
      "r358",
      "r363",
      "r378",
      "r390",
      "r394",
      "r395",
      "r397",
      "r398",
      "r402",
      "r403",
      "r413",
      "r424",
      "r431",
      "r435",
      "r437",
      "r496",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r792",
      "r813",
      "r948",
      "r1021",
      "r1041",
      "r1042",
      "r1096",
      "r1147",
      "r1335"
     ]
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "terseLabel": "Net income available to common stockholders",
        "totalLabel": "Net Income (Loss) Available to Common Stockholders, Diluted, Total",
        "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": [
      "r369",
      "r407",
      "r409",
      "r410",
      "r411",
      "r412",
      "r414",
      "r417"
     ]
    },
    "fmbh_NetOtherRealEstateOwnedIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NetOtherRealEstateOwnedIncomeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Other Real Estate Owned (Income) Expense including cost of acquiring and holding real estate for sale, net gain (loss) resulting from sales and other disposals of real estate, and write-downs of other real estate owned after acquisition or physical possession.",
        "label": "Net Other Real Estate Owned Income Expense",
        "terseLabel": "Net other real estate owned expense"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_NetTaxBenefitRelatedToOptionAndDeferredCompensationPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NetTaxBenefitRelatedToOptionAndDeferredCompensationPlans",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net tax benefit related to option and deferred compensation plans.",
        "label": "Net Tax Benefit Related To Option And Deferred Compensation Plans",
        "terseLabel": "Net tax benefit related to option and deferred compensation plans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Adoption of New Accounting Guidance",
        "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": []
    },
    "fmbh_NewLoanReceivableRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NewLoanReceivableRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "New Loan Receivable during period to Related Parties",
        "label": "New Loan Receivable Related Parties",
        "terseLabel": "New loans"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1196"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r1165",
      "r1177",
      "r1187",
      "r1204",
      "r1213"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1194"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1193"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1204"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1224"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1224"
     ]
    },
    "fmbh_NoncashOrPartNoncashAcquisitionCashPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NoncashOrPartNoncashAcquisitionCashPaid",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash portion of noncash Or part noncash acquisition transaction",
        "label": "Noncash Or Part Noncash Acquisition Cash Paid",
        "terseLabel": "Cash paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfAssetsAcquired1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncashOrPartNoncashAcquisitionValueOfAssetsAcquired1",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash or Part Noncash Acquisition, Value of Assets Acquired",
        "terseLabel": "Fair value of assets acquired",
        "totalLabel": "Noncash or Part Noncash Acquisition, Value of Assets Acquired, Total",
        "documentation": "The value of an asset or business acquired in a noncash (or part noncash) acquisition. Noncash is defined as information about all investing and financing activities of an enterprise during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69",
      "r70"
     ]
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncashOrPartNoncashAcquisitionValueOfLiabilitiesAssumed1",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash or Part Noncash Acquisition, Value of Liabilities Assumed",
        "totalLabel": "Fair value of liabilities assumed",
        "terseLabel": "Fair value of liabilities assumed",
        "documentation": "The total amount of [all] liabilities that an Entity assumes in acquiring a business or in consideration for an asset received in a noncash (or part noncash) acquisition. Noncash is defined as transactions during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69",
      "r70"
     ]
    },
    "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NoncashorPartNoncashAcquisitionTotalConsideration",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash or Part Noncash Acquisition, Total Consideration",
        "label": "Noncashor Part Noncash Acquisition Total Consideration",
        "totalLabel": "Total consideration paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NondesignatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NondesignatedMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not Designated as Hedging Instrument [Member]",
        "terseLabel": "Not Designated as Hedging Instrument",
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP)."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest-Bearing Deposit Liabilities",
        "terseLabel": "Non-interest bearing",
        "totalLabel": "Noninterest-Bearing Deposit Liabilities, Total",
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity."
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "us-gaap_NoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expense",
        "terseLabel": "Other expense",
        "totalLabel": "Total other expense",
        "documentation": "Total aggregate amount of all noninterest expense."
       }
      }
     },
     "auth_ref": [
      "r261"
     ]
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpenseAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expense [Abstract]",
        "terseLabel": "Other expense:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income",
        "terseLabel": "Other income",
        "totalLabel": "Total other 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": [
      "r258"
     ]
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income [Abstract]",
        "terseLabel": "Other income:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income, Other Operating Income",
        "terseLabel": "Other income",
        "documentation": "Amount of revenue earned, classified as other, excluding interest income."
       }
      }
     },
     "auth_ref": [
      "r187",
      "r249"
     ]
    },
    "us-gaap_NonrecurringAdjustmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonrecurringAdjustmentAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonrecurring Adjustment [Axis]",
        "terseLabel": "Nonrecurring Adjustment",
        "documentation": "Information about material and nonrecurring adjustment directly attributable to the business combination(s) included in the reported pro forma revenue and earnings (supplemental pro forma information)."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_NonrecurringAdjustmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonrecurringAdjustmentDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonrecurring Adjustment [Domain]",
        "terseLabel": "Nonrecurring Adjustment",
        "documentation": "Material, nonrecurring adjustment(s) allocated (included) to (in) reported pro forma revenue and earnings (supplemental pro forma information)."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "fmbh_Nonrule10B51Arrmodifiedflag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "Nonrule10B51Arrmodifiedflag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NonRule10b51ArrModifiedFlag",
        "documentation": "Non rule 10b51 arr modified flag."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotesReceivableGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesReceivableGross",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, before Allowance for Credit Loss",
        "terseLabel": "Loans",
        "verboseLabel": "Total Past Due",
        "totalLabel": "Financing Receivable, before Allowance for Credit Loss, Total",
        "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": [
      "r293",
      "r305",
      "r306",
      "r343",
      "r519",
      "r529",
      "r1105",
      "r1106",
      "r1254",
      "r1321"
     ]
    },
    "us-gaap_NotesReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesReceivableNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, after Allowance for Credit Loss",
        "terseLabel": "Loans",
        "totalLabel": "Net loans",
        "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": [
      "r441",
      "r529",
      "r1008"
     ]
    },
    "fmbh_NumberOfAlternativesForMeasuringImpairedLoansReceivable": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NumberOfAlternativesForMeasuringImpairedLoansReceivable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of alternatives for measuring impaired loans receivable.",
        "label": "Number Of Alternatives For Measuring Impaired Loans Receivable",
        "terseLabel": "Number of alternatives for measuring impaired loans receivable"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_NumberOfConsecutiveQuartersThatInterestPaymentsOnSubordinatedDebenturesMayBeDeferred": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NumberOfConsecutiveQuartersThatInterestPaymentsOnSubordinatedDebenturesMayBeDeferred",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of consecutive quarters that interest payments on subordinated debentures may be deferred",
        "label": "Number Of Consecutive Quarters That Interest Payments On Subordinated Debentures May Be Deferred",
        "documentation": "Number of consecutive quarters that interest payments on subordinated debentures may be deferred."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_NumberOfExpectedDaysToFundCommitments": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "NumberOfExpectedDaysToFundCommitments",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of expected days until commitments to originate credit are funded.",
        "label": "Number Of Expected Days To Fund Commitments",
        "terseLabel": "Number of expected days to fund commitments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OccupancyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OccupancyNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Occupancy, Net",
        "terseLabel": "Net occupancy and equipment expense",
        "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": [
      "r195",
      "r259",
      "r280"
     ]
    },
    "us-gaap_OffBalanceSheetCreditLossLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OffBalanceSheetCreditLossLiability",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Off-Balance-Sheet, Credit Loss, Liability",
        "terseLabel": "Allowance for credit losses on off-balance sheet exposures",
        "verboseLabel": "Off-balance sheet, credit loss, liability",
        "periodStartLabel": "Off-Balance-Sheet, Credit Loss, Liability, Beginning Balance",
        "periodEndLabel": "Off-Balance-Sheet, Credit Loss, Liability, Ending Balance",
        "documentation": "Amount of expected credit loss for credit exposure on off-balance-sheet commitment, including but not limited to, loan commitment, standby letter of credit, financial guarantee not accounted for as insurance. Excludes off-balance sheet credit exposure accounted for as insurance and instrument accounted for under derivatives and hedging."
       }
      }
     },
     "auth_ref": [
      "r510",
      "r565"
     ]
    },
    "fmbh_OneToFourFamilyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OneToFourFamilyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "1-4 Family",
        "documentation": "One to four family.",
        "label": "One To Four Family [Member]",
        "terseLabel": "1-4 Family"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses",
        "terseLabel": "Operating expenses",
        "totalLabel": "Operating Expenses, Total",
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_OperatingLeaseCashFlowTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OperatingLeaseCashFlowTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease cash flow table text block.",
        "label": "Operating Lease Cash Flow Table [Text Block]",
        "terseLabel": "Summary of Operating Lease Cash Flows"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Cost",
        "terseLabel": "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": [
      "r843",
      "r1132"
     ]
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Lessee, Operating Lease, Liability, Payment, Due [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails2": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease liability",
        "verboseLabel": "Operating lease liabilities",
        "totalLabel": "Operating Lease, Liability, Total",
        "label": "Total lease liability",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r838"
     ]
    },
    "us-gaap_OperatingLeasePayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeasePayments",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfOperatingLeaseCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Payments",
        "terseLabel": "Operating cash flows from operating leases",
        "negatedLabel": "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": [
      "r839",
      "r847"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Right of use asset",
        "verboseLabel": "Operating lease right-of-use assets",
        "label": "Right of use lease assets",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r837"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfSupplementalBalanceSheetInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "terseLabel": "Weighted-average discount rate",
        "documentation": "Weighted average discount rate for operating lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r850",
      "r1132"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://www.firstmid.com/20231231/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": [
      "r849",
      "r1132"
     ]
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure and Significant Accounting Policies [Text Block]",
        "terseLabel": "Basis of Accounting and Consolidation",
        "documentation": "The entire disclosure for the organization, consolidation and basis of presentation of financial statements disclosure, and significant accounting policies of the reporting entity. May be provided in more than one note to the financial statements, as long as users are provided with an understanding of (1) the significant judgments and assumptions made by an enterprise in determining whether it must consolidate a VIE and/or disclose information about its involvement with a VIE, (2) the nature of restrictions on a consolidated VIE's assets reported by an enterprise in its statement of financial position, including the carrying amounts of such assets, (3) the nature of, and changes in, the risks associated with an enterprise's involvement with the VIE, and (4) how an enterprise's involvement with the VIE affects the enterprise's financial position, financial performance, and cash flows. Describes procedure if disclosures are provided in more than one note to the financial statements."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r201",
      "r203",
      "r229"
     ]
    },
    "us-gaap_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets",
        "terseLabel": "Other assets",
        "totalLabel": "Other Assets, Total",
        "documentation": "Amount of assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r239",
      "r340",
      "r935",
      "r1149"
     ]
    },
    "us-gaap_OtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets",
        "documentation": "Primary financial statement caption encompassing other assets."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r140"
     ]
    },
    "fmbh_OtherCollateralAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OtherCollateralAssetsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Collateral Assets.",
        "label": "Other Collateral Assets [Member]",
        "terseLabel": "Other Property"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax",
        "terseLabel": "Net unrealized gains on securities available-for-sale",
        "negatedLabel": "Net unrealized losses on securities available-for-sale",
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax, Total",
        "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": [
      "r350",
      "r351",
      "r352"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax",
        "terseLabel": "Tax benefit",
        "negatedLabel": "Tax expense",
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax, Total",
        "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": [
      "r350",
      "r351",
      "r353"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Other comprehensive income (loss), net of taxes",
        "totalLabel": "Other Comprehensive Income (Loss), Net of Tax, Total",
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r38",
      "r356",
      "r359",
      "r366",
      "r819",
      "r820",
      "r825",
      "r905",
      "r949",
      "r1268",
      "r1269"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income (loss), net of 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",
      "r26",
      "r230",
      "r356",
      "r359"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss",
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]",
        "terseLabel": "Other comprehensive income (loss)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Less: reclassification adjustment for realized gains included in net income net of taxes of $981, $10, and $36 for the years ended December 31, 2023, 2022 and 2021, respectively",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "totalLabel": "Total reclassifications out of accumulated other comprehensive income",
        "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",
      "r186",
      "r354",
      "r494"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "terseLabel": "Reclassification adjustment for realized gains included in net income, taxes",
        "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"
     ]
    },
    "fmbh_OtherComprehensiveIncomeLossTransfersFromAvailableForSaleToHeldToMaturityTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OtherComprehensiveIncomeLossTransfersFromAvailableForSaleToHeldToMaturityTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) before reclassification adjustments of unrealized holding gain (loss) related to transfers of securities into the held-to-maturity and out of the available-for-sale category.",
        "label": "Other Comprehensive Income Loss Transfers From Available For Sale To Held To Maturity Tax",
        "terseLabel": "Unamortized holding losses on held-to-maturity securities transferred from available-for-sale, taxes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized gains (losses) on available-for-sale securities, net of taxes of ($7,140), $61,534, and $7,285 for the years ended December 31, 2023, 2022 and 2021, 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": [
      "r350",
      "r352",
      "r494"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical"
     ],
     "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, taxes",
        "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",
      "r351"
     ]
    },
    "us-gaap_OtherDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherDebtSecuritiesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Debt Obligations [Member]",
        "terseLabel": "Other Securities",
        "verboseLabel": "Other",
        "documentation": "Investments in debt securities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1326",
      "r1343",
      "r1364"
     ]
    },
    "us-gaap_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income",
        "terseLabel": "Other income",
        "documentation": "Amount of revenue and income classified as other."
       }
      }
     },
     "auth_ref": [
      "r954",
      "r1022",
      "r1067",
      "r1068",
      "r1069"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Other Liabilities, Total",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r159",
      "r932",
      "r995",
      "r996",
      "r1149",
      "r1392"
     ]
    },
    "us-gaap_OtherLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesSummaryOfNonHedgeInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities [Member]",
        "terseLabel": "Other Liabilities",
        "documentation": "Primary financial statement caption encompassing other liabilities."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r140"
     ]
    },
    "us-gaap_OtherNoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noninterest Expense",
        "terseLabel": "Other expense",
        "documentation": "Amount of noninterest expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r261"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1196"
     ]
    },
    "fmbh_OtherRealEstateOwnedPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OtherRealEstateOwnedPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Real Estate Owned, Policy [Policy Text Block]",
        "label": "Other Real Estate Owned Policy Policy [Text Block]",
        "terseLabel": "Other Real Estate Owned"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_OtherSecuredLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "OtherSecuredLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other secured loans.",
        "label": "Other Secured Loans [Member]",
        "terseLabel": "Other Secured Loans"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherSignificantNoncashTransactionValueOfConsiderationGiven1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherSignificantNoncashTransactionValueOfConsiderationGiven1",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "fmbh_NoncashorPartNoncashAcquisitionTotalConsideration",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Significant Noncash Transaction, Value of Consideration Given",
        "terseLabel": "Common stock issued",
        "documentation": "The value of the noncash (or part noncash) consideration given (for example, liability, equity) in a transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of a transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69",
      "r70"
     ]
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1163",
      "r1175",
      "r1185",
      "r1211"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1166",
      "r1178",
      "r1188",
      "r1214"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1166",
      "r1178",
      "r1188",
      "r1214"
     ]
    },
    "fmbh_PaidLoansReceivableRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PaidLoansReceivableRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans Receivable paid off during period by Related Parties",
        "label": "Paid Loans Receivable Related Parties",
        "negatedLabel": "Loan repayments"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ParentCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ParentCompanyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Parent Company [Member]",
        "terseLabel": "Parent Company [Member]",
        "documentation": "Registrant with controlling financial interest in one or more subsidiaries. Controlling interest in subsidiary includes, but is not limited to, primary beneficiary of variable interest entity (VIE). Controlling interest in subsidiary excludes broker-dealer with controlling financial interest in subsidiary but control is likely to be temporary."
       }
      }
     },
     "auth_ref": [
      "r383"
     ]
    },
    "fmbh_ParentCompanyOnlyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ParentCompanyOnlyAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Parent Company Only [Abstract]",
        "label": "Parent Company Only [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PassMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pass [Member]",
        "terseLabel": "Pass",
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables."
       }
      }
     },
     "auth_ref": [
      "r86",
      "r1324"
     ]
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Past Due [Table Text Block]",
        "terseLabel": "Loan Portfolio Aging Analysis",
        "documentation": "Tabular disclosure of aging analysis for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r90",
      "r1106",
      "r1323"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r1192"
     ]
    },
    "us-gaap_PaymentDeferralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentDeferralMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payment Delay Investment",
        "label": "Payment Deferral [Member]",
        "documentation": "Loan modification for a temporary postponement of loan payments."
       }
      }
     },
     "auth_ref": [
      "r448",
      "r449",
      "r451"
     ]
    },
    "us-gaap_PaymentsForOriginationOfMortgageLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForOriginationOfMortgageLoansHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment for Origination, Loan, Mortgage, Held-for-Sale",
        "negatedLabel": "Origination of loans held for sale",
        "documentation": "The amount of cash paid for the origination of mortgages that are held for sale."
       }
      }
     },
     "auth_ref": [
      "r1092",
      "r1277"
     ]
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for (Proceeds from) Loans and Leases",
        "negatedLabel": "Net increase in loans",
        "totalLabel": "Payments for (Proceeds from) Loans and Leases, Total",
        "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": [
      "r908"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Purchase of treasury stock",
        "negatedTerseLabel": "Payment to repurchase common stock",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_PaymentsOfDebtIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDebtIssuanceCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Debt Issuance Costs",
        "terseLabel": "Debt issuance costs",
        "documentation": "The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt."
       }
      }
     },
     "auth_ref": [
      "r63"
     ]
    },
    "us-gaap_PaymentsOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDividends",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Dividends",
        "terseLabel": "Dividends paid",
        "totalLabel": "Payments of Dividends, Total",
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedLabel": "Dividends paid on common stock",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfStockIssuanceCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Stock Issuance Costs",
        "negatedLabel": "Direct expenses related to capital transactions",
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security."
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "us-gaap_PaymentsToAcquireAdditionalInterestInSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireAdditionalInterestInSubsidiaries",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Additional Interest in Subsidiaries",
        "negatedLabel": "Investment in subsidiary",
        "documentation": "The cash outflow associated with the purchase of noncontrolling interest during the period."
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Debt Securities, Available-for-Sale",
        "negatedLabel": "Purchases of 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": [
      "r57",
      "r370",
      "r460"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireBusinessesGross",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash consideration",
        "terseLabel": "Consideration payable in cash",
        "verboseLabel": "Consideration paid 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": [
      "r58",
      "r755"
     ]
    },
    "us-gaap_PaymentsToAcquireLifeInsurancePolicies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireLifeInsurancePolicies",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Investment in bank owned life insurance",
        "label": "Payment to Acquire Life Insurance Policy, Investing Activities",
        "documentation": "Amount of cash outflow for payment of premium on corporate-owned life insurance policy, classified as investing activities. Includes, but is not limited to, bank-owned life insurance policy."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r196"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Purchases of premises and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total",
        "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": [
      "r197"
     ]
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1195"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1195"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlans"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Text Block]",
        "terseLabel": "Retirement Plans",
        "documentation": "The entire disclosure for retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r598",
      "r622",
      "r624",
      "r630",
      "r647",
      "r649",
      "r650",
      "r651",
      "r652",
      "r653",
      "r665",
      "r666",
      "r667",
      "r1117"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan",
        "terseLabel": "Liability, defined benefit plan",
        "totalLabel": "Liability, Defined Benefit Plan, Total",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r600",
      "r621",
      "r1387"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1194"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r1204"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r1197"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1193"
     ]
    },
    "fmbh_PercentageInvestmentBookValueExceedsStockholdersEquity": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PercentageInvestmentBookValueExceedsStockholdersEquity",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage investment book value exceeds stockholders' equity.",
        "label": "Percentage Investment Book Value Exceeds Stockholders Equity",
        "terseLabel": "Percentage investment book value exceeds stockholders' equity (in hundredths)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_PeriodWhenLettersOfCreditExpire": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PeriodWhenLettersOfCreditExpire",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period after which standby letters of credit generally expire",
        "label": "Period When Letters Of Credit Expire",
        "terseLabel": "Period when letters of credit expire"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PledgedStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Axis]",
        "documentation": "Information by pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r757",
      "r993",
      "r1128"
     ]
    },
    "us-gaap_PledgedStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Domain]",
        "documentation": "Pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r757",
      "r993",
      "r1128"
     ]
    },
    "us-gaap_PledgingPurposeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Axis]",
        "documentation": "Information by pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r878",
      "r1128",
      "r1134",
      "r1235"
     ]
    },
    "us-gaap_PledgingPurposeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Domain]",
        "documentation": "Pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r878",
      "r1128",
      "r1134",
      "r1235"
     ]
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "label": "Portion at Fair Value Measurement [Member]",
        "documentation": "Measured at fair value for financial reporting purposes."
       }
      }
     },
     "auth_ref": [
      "r811"
     ]
    },
    "fmbh_PreferredAndCommonOwnershipSharesIssued": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PreferredAndCommonOwnershipSharesIssued",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred and Common Ownership Shares Issued",
        "label": "Preferred and Common Ownership Shares Issued",
        "documentation": "Preferred and common ownership shares issued."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_PrincipalBalanceOfMortgageLoansServicedForOthers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PrincipalBalanceOfMortgageLoansServicedForOthers",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Principal Balance Of Mortgage Loans Serviced For Others which have mortgage servicing rights",
        "label": "Principal Balance Of Mortgage Loans Serviced For Others",
        "terseLabel": "Principal balance of mortgage loans serviced for others"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PrincipalForgivenessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PrincipalForgivenessMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails"
     ],
     "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": [
      "r448",
      "r449",
      "r451",
      "r1097"
     ]
    },
    "us-gaap_ProFormaWeightedAverageSharesOutstandingDiluted": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProFormaWeightedAverageSharesOutstandingDiluted",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pro Forma Weighted Average Shares Outstanding, Diluted",
        "terseLabel": "Diluted weighted average shares outstanding",
        "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/2023",
     "localname": "ProceedsFromFederalHomeLoanBankAdvances",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from FHLBank Advance, Investing Activities",
        "terseLabel": "Proceeds from FHLB advances",
        "documentation": "Amount of cash inflow from collection of advance by Federal Home Loan Bank (FHLBank), classified as investing activity."
       }
      }
     },
     "auth_ref": [
      "r1274"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Proceeds from issuance of common stock",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfLongTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Long-Term Debt",
        "terseLabel": "Proceeds from long-term debit",
        "totalLabel": "Proceeds from Issuance of Long-Term Debt, Total",
        "documentation": "The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r979"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfSubordinatedLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromIssuanceOfSubordinatedLongTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Subordinated Long-Term Debt",
        "terseLabel": "Issuance of subordinated debt",
        "documentation": "The cash inflow from a borrowing where a lender is placed in a lien position behind debt having a higher priority of repayment (senior) in liquidation of the entity's assets or underlying collateral."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "us-gaap_ProceedsFromLifeInsurancePolicies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromLifeInsurancePolicies",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "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",
      "r54"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-Sale",
        "terseLabel": "Proceeds from maturities of 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": [
      "r370",
      "r371",
      "r1301"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Maturities, Prepayments and Calls of Held-to-Maturity Securities",
        "terseLabel": "Proceeds from maturities of securities held-to-maturity",
        "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": [
      "r55",
      "r1301"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfOtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfOtherInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Maturities, Prepayments and Calls of Other Investments",
        "terseLabel": "Proceeds from maturities of certificates of deposit investments",
        "documentation": "The cash inflow associated with the maturity (principal being due), prepayment and call (request of early payment) of other investments not otherwise defined in the taxonomy."
       }
      }
     },
     "auth_ref": [
      "r1234"
     ]
    },
    "us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromPaymentsForInInterestBearingDepositsInBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase 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": [
      "r1279",
      "r1382"
     ]
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Debt Securities, Available-for-Sale",
        "terseLabel": "Proceeds from sales of securities available-for-sale",
        "verboseLabel": "Proceeds from sales",
        "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": [
      "r55",
      "r370",
      "r460",
      "r493"
     ]
    },
    "us-gaap_ProceedsFromSaleOfLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfLoansHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale, Loan, Held-for-Sale",
        "terseLabel": "Proceeds from sale of loans held for sale",
        "totalLabel": "Proceeds from Sale of Loans Held-for-sale, Total",
        "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": [
      "r1275",
      "r1276"
     ]
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Other Real Estate",
        "terseLabel": "Proceeds from sales of other real property owned",
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy."
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "us-gaap_ProceedsFromShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromShortTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Short-Term Debt",
        "terseLabel": "Proceeds from short-term debt",
        "totalLabel": "Proceeds from Short-Term Debt, Total",
        "documentation": "The cash inflow from a borrowing having initial term of repayment within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "us-gaap_ProfessionalFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfessionalFees",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Professional Fees",
        "terseLabel": "Legal and professional",
        "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": [
      "r1147",
      "r1394",
      "r1395"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net income",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r355",
      "r358",
      "r373",
      "r378",
      "r390",
      "r402",
      "r403",
      "r424",
      "r431",
      "r435",
      "r437",
      "r496",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r756",
      "r759",
      "r760",
      "r792",
      "r813",
      "r909",
      "r947",
      "r986",
      "r1021",
      "r1041",
      "r1042",
      "r1096",
      "r1129",
      "r1130",
      "r1148",
      "r1270",
      "r1335"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Axis]",
        "terseLabel": "Long-Lived Tangible Asset",
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Premises and Equipment, Net",
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r213",
      "r287",
      "r290",
      "r291"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentGross",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Gross",
        "terseLabel": "Property, Plant and Equipment, Gross",
        "totalLabel": "Property, Plant and Equipment, Gross, Total",
        "periodStartLabel": "Property, Plant and Equipment, Gross, Beginning Balance",
        "periodEndLabel": "Property, Plant and Equipment, Gross, Ending Balance",
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business 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": [
      "r214",
      "r336",
      "r944"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Line Items]",
        "terseLabel": "Property Plant And Equipment [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_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 9.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Premises and equipment, net",
        "totalLabel": "Total",
        "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",
      "r920",
      "r944",
      "r1133"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Premises and Equipment",
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r287",
      "r290",
      "r942"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Premises and Equipment",
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Domain]",
        "terseLabel": "Long-Lived Tangible Asset",
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Property, plant and equipment, useful life",
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProvisionForLoanAndLeaseLosses",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for credit losses",
        "label": "Provision for Loan and Lease Losses",
        "documentation": "Amount of expense related to estimated loss from loan and lease transactions."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r23",
      "r255"
     ]
    },
    "fmbh_PublicSecuritiesAssociationStandardPrepaymentModelRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PublicSecuritiesAssociationStandardPrepaymentModelRate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public securities association standard prepayment model rate.",
        "label": "Public Securities Association Standard Prepayment Model Rate",
        "terseLabel": "Mortgage servicing rights"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_PurdumGrayIngledueBeckIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "PurdumGrayIngledueBeckIncMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purdum, Gray, Ingledue, Beck, Inc.",
        "label": "Purdum, Gray, Ingledue, Beck, Inc. [Member]",
        "documentation": "Purdum, gray, ingledue, beck, inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1192"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1192"
     ]
    },
    "us-gaap_QuarterlyFinancialDataAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "QuarterlyFinancialDataAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Data [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_QuarterlyFinancialInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "QuarterlyFinancialInformationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureQuarterlyFinancialDataUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information [Text Block]",
        "terseLabel": "Quarterly Financial Data - Unaudited",
        "documentation": "The entire disclosure for quarterly financial data. Includes, but is not limited to, tabular presentation of financial information for fiscal quarters, effect of year-end adjustments, and an explanation of matters or transactions that affect comparability of the information."
       }
      }
     },
     "auth_ref": [
      "r202",
      "r422"
     ]
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement",
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r562",
      "r563",
      "r564",
      "r622",
      "r670",
      "r701",
      "r702",
      "r703",
      "r869",
      "r896",
      "r960",
      "r990",
      "r991",
      "r1048",
      "r1051",
      "r1052",
      "r1053",
      "r1063",
      "r1086",
      "r1087",
      "r1097",
      "r1114",
      "r1125",
      "r1135",
      "r1138",
      "r1332",
      "r1339",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesScheduleOfDerivativeInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r562",
      "r563",
      "r564",
      "r622",
      "r670",
      "r701",
      "r702",
      "r703",
      "r869",
      "r896",
      "r960",
      "r990",
      "r991",
      "r1048",
      "r1051",
      "r1052",
      "r1053",
      "r1063",
      "r1086",
      "r1087",
      "r1097",
      "r1114",
      "r1125",
      "r1135",
      "r1138",
      "r1332",
      "r1339",
      "r1373",
      "r1374",
      "r1375",
      "r1376",
      "r1377"
     ]
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstateAcquiredThroughForeclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other real estate owned",
        "terseLabel": "Other real estate owned, net",
        "verboseLabel": "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": [
      "r442",
      "r443"
     ]
    },
    "us-gaap_RealEstateLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstateLoanMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Loan [Member]",
        "terseLabel": "Real Estate Loan",
        "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/2023",
     "localname": "RealEstateMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Member]",
        "terseLabel": "Real Estate",
        "verboseLabel": "Loans Secured by Real Estate",
        "documentation": "Property consisting of land, land improvement and buildings."
       }
      }
     },
     "auth_ref": [
      "r1342"
     ]
    },
    "us-gaap_RealizedGainLossOnInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealizedGainLossOnInvestmentsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Proceeds From Sales of Available for Sale Investment Securities, Realized Gains and Losses and Income Tax Expense",
        "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/2023",
     "localname": "RealizedInvestmentGainsLossesAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfProceedsFromSalesOfAvailableForSaleInvestmentSecuritiesRealizedGainsAndLossesAndIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Investment Gains (Losses) [Abstract]",
        "terseLabel": "Realized Investment Gains (Losses) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r1158",
      "r1170",
      "r1180",
      "r1206"
     ]
    },
    "fmbh_RedeeemedSubordinatedDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RedeeemedSubordinatedDebentures",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Redeeemed Subordinated Debentures",
        "label": "Redeeemed Subordinated Debentures",
        "documentation": "Redeeemed Subordinated Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RegulatoryCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RegulatoryCapitalAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory capital.",
        "label": "Regulatory Capital [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapital"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Capital Requirements under Banking Regulations [Text Block]",
        "terseLabel": "Regulatory Capital",
        "documentation": "The entire disclosure for regulatory capital requirement for depository and lending institutions. Institutions include, but not are not limited to, finance company, insured depository institution, bank holding company, savings and loan association holding company, bank and savings institution not federally insured, mortgage company, foreign financial institution and credit union."
       }
      }
     },
     "auth_ref": [
      "r921",
      "r922",
      "r923",
      "r925",
      "r926",
      "r927",
      "r929",
      "r930"
     ]
    },
    "us-gaap_RelatedPartyDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyDepositLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Deposit Liabilities",
        "terseLabel": "Related Party Deposit Liabilities",
        "documentation": "Amount of deposits held by the entity for a related party (entity, shareholder, employee)."
       }
      }
     },
     "auth_ref": [
      "r1283"
     ]
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Party Transactions",
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r857",
      "r858",
      "r859",
      "r860",
      "r861",
      "r983",
      "r984",
      "r985",
      "r1025",
      "r1026",
      "r1027",
      "r1046",
      "r1047"
     ]
    },
    "fmbh_ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ReleaseOfRestrictedStockUnitsPursuantToStockIncentivePlan",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Release of restricted stock units pursuant to stock incentive plan.",
        "label": "Release Of Restricted Stock Units Pursuant To Stock Incentive Plan",
        "negatedLabel": "Release of restricted stock units pursuant to the 2017 stock incentive plan"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepaymentOfFederalHomeLoanBankAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepaymentOfFederalHomeLoanBankAdvances",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment of federal home loan bank advances.",
        "label": "Repayment Of Federal Home Loan Bank Advances",
        "negatedLabel": "Repayment of FHLB advances"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepaymentsOfJuniorSubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepaymentsOfJuniorSubordinatedDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayments of junior subordinated debt.",
        "label": "Repayments Of Junior Subordinated Debt",
        "negatedLabel": "Repayment of junior subordinated debentures"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfLongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of Long-Term Debt",
        "negatedLabel": "Repayment of long-term debt",
        "totalLabel": "Repayments of Long-Term Debt, Total",
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r62",
      "r980"
     ]
    },
    "us-gaap_RepaymentsOfShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfShortTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of Short-Term Debt",
        "negatedLabel": "Repayment of short-term debt",
        "totalLabel": "Repayments of Short-Term Debt, Total",
        "documentation": "The cash outflow for a borrowing having initial term of repayment within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements And Other Borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase agreements and other borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Line Items]",
        "terseLabel": "Repurchase Agreements And Other Borrowings [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase agreements and other borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Table]",
        "terseLabel": "Repurchase Agreements And Other Borrowings [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RepurchaseAgreementsAndOtherBorrowingsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RepurchaseAgreementsAndOtherBorrowingsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of change in repurchase agreements, FHLB Advances and other borrowings.",
        "label": "Repurchase Agreements And Other Borrowings [Text Block]",
        "terseLabel": "Repurchase Agreements and Other Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResidentialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResidentialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential Mortgage-Backed Securities [Member]",
        "terseLabel": "Mortgage-backed Securities: GSE Residential",
        "verboseLabel": "Mortgage-backed Securities",
        "documentation": "Securities collateralized by residential real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r1302",
      "r1304",
      "r1309",
      "r1310",
      "r1311",
      "r1343"
     ]
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResidentialPortfolioSegmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential Portfolio Segment [Member]",
        "terseLabel": "Residential Properties",
        "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/20231231",
     "localname": "ResidentialPropertiesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property that is used as a home for one to four families.",
        "label": "Residential Properties [Member]",
        "terseLabel": "1-4 Family Residential Properties"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RestatementAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAdjustmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period, Adjustment [Member]",
        "terseLabel": "Revision of Prior Period, Adjustment",
        "documentation": "Cumulative increase (decrease) for adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r400",
      "r401",
      "r421",
      "r790",
      "r791",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1242",
      "r1244",
      "r1245"
     ]
    },
    "srt_RestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]",
        "terseLabel": "Revision of Prior Period",
        "documentation": "Information by adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r330",
      "r385",
      "r386",
      "r387",
      "r390",
      "r391",
      "r394",
      "r395",
      "r396",
      "r397",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r421",
      "r503",
      "r504",
      "r739",
      "r786",
      "r790",
      "r791",
      "r792",
      "r835",
      "r855",
      "r856",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973"
     ]
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1159",
      "r1171",
      "r1181",
      "r1207"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r1160",
      "r1172",
      "r1182",
      "r1208"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1167",
      "r1179",
      "r1189",
      "r1215"
     ]
    },
    "srt_RestatementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]",
        "terseLabel": "Revision of Prior Period",
        "documentation": "Adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r330",
      "r385",
      "r386",
      "r387",
      "r390",
      "r391",
      "r394",
      "r395",
      "r396",
      "r397",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r421",
      "r503",
      "r504",
      "r739",
      "r786",
      "r790",
      "r791",
      "r792",
      "r835",
      "r855",
      "r856",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedCashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureCashAndDueFromBanksAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Cash and Cash Equivalents, Current",
        "terseLabel": "Cash and due from bank balances",
        "totalLabel": "Restricted Cash and Cash Equivalents, Current, Total",
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage, classified as current. 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": [
      "r65",
      "r335",
      "r377"
     ]
    },
    "us-gaap_RestrictionsOnDividendsLoansAndAdvancesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictionsOnDividendsLoansAndAdvancesTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restrictions on Dividends, Loans and Advances [Text Block]",
        "terseLabel": "Dividend Restrictions",
        "documentation": "The entire disclosure for a banking or savings institution's compliance during the year with (a) federal and state laws and regulations relative to dividend restrictions and (b) federal laws and regulations relative to insider loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained earnings",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r181",
      "r218",
      "r940",
      "r967",
      "r972",
      "r981",
      "r1001",
      "r1133"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained Earnings",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r385",
      "r386",
      "r387",
      "r391",
      "r401",
      "r403",
      "r502",
      "r508",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r776",
      "r777",
      "r780",
      "r790",
      "r963",
      "r965",
      "r987",
      "r1396"
     ]
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Axis]",
        "terseLabel": "Retirement Plan Type",
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r599",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r648",
      "r651",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r667",
      "r668",
      "r669",
      "r671",
      "r1117",
      "r1118",
      "r1119",
      "r1120",
      "r1121",
      "r1122",
      "r1123",
      "r1124"
     ]
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Domain]",
        "terseLabel": "Retirement Plan Type",
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r599",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r648",
      "r651",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r667",
      "r668",
      "r669",
      "r671",
      "r1117",
      "r1118",
      "r1119",
      "r1120",
      "r1121",
      "r1122",
      "r1123",
      "r1124"
     ]
    },
    "fmbh_RevenueFromContractWithCustomerATMDebitCard": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RevenueFromContractWithCustomerATMDebitCard",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, ATM &amp; Debit Card",
        "label": "Revenue From Contract With Customer A T M Debit Card",
        "terseLabel": "ATM / debit card revenue"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerDepositServiceCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RevenueFromContractWithCustomerDepositServiceCharges",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Deposit Service Charges",
        "label": "Revenue From Contract With Customer Deposit Service Charges",
        "terseLabel": "Service charges"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerMortgageBanking": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RevenueFromContractWithCustomerMortgageBanking",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Mortgage Banking",
        "label": "Revenue From Contract With Customer Mortgage Banking",
        "terseLabel": "Mortgage banking revenue, net"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_RevenueFromContractWithCustomerWealthManagement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "RevenueFromContractWithCustomerWealthManagement",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue From Contract With Customer, Wealth Management",
        "label": "Revenue From Contract With Customer Wealth Management",
        "terseLabel": "Wealth management revenues"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueRecognitionPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue [Policy Text Block]",
        "terseLabel": "Revenue Recognition",
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources."
       }
      }
     },
     "auth_ref": [
      "r1023",
      "r1088",
      "r1093"
     ]
    },
    "us-gaap_Revenues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Revenues",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues",
        "totalLabel": "Total income",
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss)."
       }
      }
     },
     "auth_ref": [
      "r365",
      "r378",
      "r425",
      "r426",
      "r430",
      "r433",
      "r434",
      "r438",
      "r439",
      "r440",
      "r496",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r813",
      "r909",
      "r1335"
     ]
    },
    "us-gaap_RevolvingCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevolvingCreditFacilityMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revolving Credit Facility [Member]",
        "terseLabel": "Revolving Credit Facility",
        "documentation": "Arrangement in which loan proceeds can continuously be obtained following repayments, but the total amount borrowed cannot exceed a specified maximum amount."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "terseLabel": "Initial recognition of right-of-use assets",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r848",
      "r1132"
     ]
    },
    "us-gaap_RiskBasedRatiosAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RiskBasedRatiosAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Risk-Based Information [Abstract]",
        "terseLabel": "Phantom section (for regulatory ratios):"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_Rule10B51ArrModifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "Rule10B51ArrModifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b51 Arr Modified Flag",
        "documentation": "Rule 10b51 arr modified flag."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1224"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1224"
     ]
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SaleOfStockNameOfTransactionDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sale of Stock [Domain]",
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfLoansExperiencingDifficultyAndModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesFinancialEffectOfLoanModificationsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesPerformanceOfLoansModifiedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]",
        "terseLabel": "Schedule Of Accounts Notes Loans And Financing Receivable [Table]",
        "documentation": "Schedule itemizing specific types of trade accounts and notes receivable, and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables."
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "terseLabel": "Summary of Loans",
        "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": [
      "r49"
     ]
    },
    "fmbh_ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of amounts reclassified from accumulated other comprehensive income table text block.",
        "label": "Schedule Of Amounts Reclassified From Accumulated Other Comprehensive Income Table [Text Block]",
        "terseLabel": "Schedule of Amounts Reclassified from Accumulated Other Comprehensive Loss"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Amounts Recognized in Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Components of Accumulated Other Comprehensive Loss",
        "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": [
      "r220"
     ]
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Assets Sold under Agreements to Repurchase [Table]",
        "terseLabel": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]",
        "documentation": "Schedule, as of the most recent balance sheet date, of securities or other assets sold under repurchase agreements when this amount exceeds 10 percent of total assets. Disclosure may include the following: the type of securities or assets sold under agreements to repurchase, the carrying amount, market value (including accrued interest plus any cash or other assets on deposit. The information is segregated into securities maturing (1) overnight; (2) term up to 30 days; (3) term of 30 to 90 days; (4) term over 90 days; (5) demand."
       }
      }
     },
     "auth_ref": [
      "r382"
     ]
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale [Line Items]",
        "terseLabel": "Schedule Of Available For Sale Securities [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": [
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474"
     ]
    },
    "fmbh_ScheduleOfBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfBorrowingsLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of short-term and long-term borrowings.",
        "label": "Schedule Of Borrowings [Line Items]",
        "terseLabel": "Schedule of Borrowings [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ScheduleOfBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfBorrowingsTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of short-term and long-term borrowings.",
        "label": "Schedule Of Borrowings [Table]",
        "terseLabel": "Schedule Of Borrowings [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfConsiderationTransferredParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Business Acquisitions by Acquisition, Contingent Consideration [Table]",
        "documentation": "Schedule of information about a contingent payment arrangement including the terms that will result in payment and the accounting treatment that will be followed if such contingency occurs, including the potential impact on earnings per share if the contingency is to be settled in shares of 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": [
      "r228"
     ]
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/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/2023",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasedCreditDeterioratedPcdLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]",
        "terseLabel": "Schedule Of Business Acquisitions By Acquisition [Table]",
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities."
       }
      }
     },
     "auth_ref": [
      "r117",
      "r119",
      "r750"
     ]
    },
    "us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Cost by Plan [Table Text Block]",
        "terseLabel": "Summary of Compensation Cost, Net of Forfeitures, Related to Stock-based Compensation",
        "documentation": "Tabular disclosure of cost recognized for award under share-based payment arrangement by plan. Includes, but is not limited to, related tax benefit."
       }
      }
     },
     "auth_ref": [
      "r111"
     ]
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table]",
        "terseLabel": "Schedule Of Compliance With Regulatory Capital Requirements Under Banking Regulations [Table]",
        "documentation": "A table disclosing the capital amounts and ratios as of the balance sheet date indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity."
       }
      }
     },
     "auth_ref": [
      "r1385",
      "r1386"
     ]
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table Text Block]",
        "terseLabel": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations",
        "documentation": "Tabular disclosure of the capital amounts and ratios as of the balance sheet date, indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Components of Federal and State Income Tax Expense",
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years."
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "srt_ScheduleOfCondensedBalanceSheetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedBalanceSheetTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Balance Sheet [Table Text Block]",
        "terseLabel": "Condensed Balance Sheets",
        "documentation": "Tabular disclosure of condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r1258",
      "r1284"
     ]
    },
    "srt_ScheduleOfCondensedCashFlowStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedCashFlowStatementTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Cash Flow Statement [Table Text Block]",
        "terseLabel": "Condensed Statements of Cash Flows",
        "documentation": "Tabular disclosure of condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r1258",
      "r1284"
     ]
    },
    "srt_ScheduleOfCondensedFinancialStatementsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedFinancialStatementsTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfIncomeAndComprehensiveIncomeLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedStatementsOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Statements [Table]",
        "terseLabel": "Schedule Of Condensed Financial Statements [Table]",
        "documentation": "Disclosure of information about condensed financial statements, including, but not limited to, the balance sheet, income statement, and statement of cash flows."
       }
      }
     },
     "auth_ref": [
      "r312",
      "r324",
      "r325",
      "r326",
      "r383",
      "r1233"
     ]
    },
    "srt_ScheduleOfCondensedIncomeStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedIncomeStatementTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Income Statement [Table Text Block]",
        "terseLabel": "Condensed Statements of Income",
        "documentation": "Tabular disclosure of condensed income statement, including, but not limited to, income statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r1258",
      "r1284"
     ]
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table Text Block]",
        "terseLabel": "Schedule of Borrowings",
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r102",
      "r103",
      "r147",
      "r148",
      "r151",
      "r167",
      "r216",
      "r217",
      "r1110",
      "r1112",
      "r1284"
     ]
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Tax Effects of Temporary Differences on Deferred Tax Assets and Deferred Tax Liabilities",
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Defined Benefit Plans Disclosures [Table]",
        "terseLabel": "Schedule Of Defined Benefit Plans Disclosures [Table]",
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans. Also includes schedule for fair value of plan assets by major categories of plan assets 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 or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r107",
      "r108",
      "r109",
      "r110"
     ]
    },
    "fmbh_ScheduleOfDepositsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfDepositsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "[Table Text Block] for Schedule of Deposits [Table]",
        "label": "Schedule Of Deposits Table [Text Block]",
        "terseLabel": "Summary of Deposits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "terseLabel": "Summary of Derivative Instruments, Gain (Loss)",
        "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": [
      "r131",
      "r136",
      "r763"
     ]
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Summary of Fair Value Derivative Instruments",
        "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": [
      "r132"
     ]
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Components of Basic and Diluted Net Income per Common Share",
        "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": [
      "r1289"
     ]
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Effective Income Tax Reconciliation",
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r221"
     ]
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsTables"
     ],
     "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": [
      "r795",
      "r796"
     ]
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Fair Value, off-Balance-Sheet Risks [Table]",
        "terseLabel": "Schedule Of Fair Value Off Balance Sheet Risks [Table]",
        "documentation": "Schedule detailing the information required and determined to be disclosed regarding the fair value of financial assets and financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r235"
     ]
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Fair Value, off-Balance-Sheet Risks [Table Text Block]",
        "terseLabel": "Schedule of Off-balance Sheet Financial Instruments Whose Contract Amounts Represent Credit Risk",
        "documentation": "Tabular disclosure of the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined) which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r235"
     ]
    },
    "us-gaap_ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFederalHomeLoanBankAdvancesByBranchOfFHLBBankTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsFederalHomeLoanBankAdvancesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Federal Home Loan Bank Advances, by Branch of FHLB Bank [Table]",
        "terseLabel": "Schedule Of Federal Home Loan Bank Advances By Branch Of F H L B Bank [Table]",
        "documentation": "Represents the total amount of advances due to the Federal Home Loan Bank, by Branch, as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r247",
      "r269"
     ]
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual [Table Text Block]",
        "terseLabel": "Recorded Balance of Loans on Nonaccrual Loans",
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r520"
     ]
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsIntangibleAssetsMortgageServicingRightsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAmortizationExpenseDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfIntangibleAssetsAndGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Finite-Lived Intangible Assets [Table]",
        "terseLabel": "Schedule Of Finite Lived Intangible Assets [Table]",
        "documentation": "Schedule of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r97",
      "r898"
     ]
    },
    "us-gaap_ScheduleOfGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfGoodwillTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Goodwill [Table]",
        "terseLabel": "Schedule Of Goodwill [Table]",
        "documentation": "Schedule of goodwill and the changes during the year due to acquisition, sale, impairment or for other reasons."
       }
      }
     },
     "auth_ref": [
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r1108"
     ]
    },
    "us-gaap_ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Intangible Assets and Goodwill [Table Text Block]",
        "terseLabel": "Schedule of Intangible Assets and Goodwill",
        "documentation": "Tabular disclosure of goodwill and intangible assets, which may be broken down by segment or major class."
       }
      }
     },
     "auth_ref": [
      "r92"
     ]
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "terseLabel": "Aggregate Annual Maturities of Long-Term Borrowings",
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Table Text Block]",
        "terseLabel": "Schedule of Impact of ASU 2016-13 Adoption",
        "documentation": "Tabular disclosure of changes in accounting principles, including adoption of new accounting pronouncements, that describes the new methods, amount and effects on financial statement line items."
       }
      }
     },
     "auth_ref": [
      "r71",
      "r72",
      "r73",
      "r74"
     ]
    },
    "us-gaap_ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Other Operating Cost and Expense, by Component [Table Text Block]",
        "terseLabel": "Summary of Components of Lease Expense",
        "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": [
      "r193"
     ]
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationSummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosurePremisesAndEquipmentNetSummaryOfPremisesAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table]",
        "terseLabel": "Schedule Of Property Plant And Equipment [Table]",
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_ScheduleOfQuarterlyFinancialInformationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfQuarterlyFinancialInformationTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureQuarterlyFinancialDataUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information [Table Text Block]",
        "terseLabel": "Summary of Quarterly Data",
        "documentation": "Tabular disclosure of quarterly financial data. Includes, but is not limited to, financial information for fiscal quarters, cumulative effect of a change in accounting principle and earnings per share data."
       }
      }
     },
     "auth_ref": [
      "r284"
     ]
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]",
        "terseLabel": "Estimated Fair Values of Assets Acquired and Liabilities Assumed",
        "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": [
      "r226"
     ]
    },
    "fmbh_ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfReconciliationOfPurchasePricePaidForAcquisitionAndGoodwillRecordedTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of reconciliation of purchase price paid for acquisition and goodwill recorded.",
        "label": "Schedule Of Reconciliation Of Purchase Price Paid For Acquisition And Goodwill Recorded Table [Text Block]",
        "terseLabel": "Schedule of Reconciliation of Purchase Price Paid for Acquisition and Goodwill Recorded"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRelatedPartyTransactionsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Related Party Transactions [Table Text Block]",
        "terseLabel": "Schedule of Related Party Transactions",
        "documentation": "Tabular disclosure of related party transactions. Examples of related party transactions include, but are not limited to, transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners and (d) affiliates."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Securities Financing Transactions [Table Text Block]",
        "terseLabel": "Schedule of Securities Financing Transactions",
        "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": [
      "r236",
      "r348"
     ]
    },
    "fmbh_ScheduleOfSecuritiesSoldUnderAgreementsToRepurchaseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfSecuritiesSoldUnderAgreementsToRepurchaseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of securities sold under agreements to repurchase.",
        "label": "Schedule Of Securities Sold Under Agreements To Repurchase Table [Text Block]",
        "terseLabel": "Securities Underlying the Repurchase Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "terseLabel": "Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table]",
        "documentation": "Disclosure of information about share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r674",
      "r676",
      "r677",
      "r678",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704"
     ]
    },
    "us-gaap_ScheduleOfShortTermDebtTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShortTermDebtTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Short-Term Debt [Table]",
        "terseLabel": "Schedule Of Short Term Debt [Table]",
        "documentation": "A table or schedule providing information pertaining to borrowings under which repayment was required in less than twelve months (or normal operating cycle, if longer) after its issuance. It may include: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date and measures of the maximum and average amount outstanding during the period; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation."
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "fmbh_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of supplemental balance sheet information related to leases.",
        "label": "Schedule Of Supplemental Balance Sheet Information Related To Leases Table [Text Block]",
        "terseLabel": "Summary of Supplemental Balance Sheet Information"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Unrealized Loss on Investments [Table Text Block]",
        "terseLabel": "Fair Value of Investments with Sustained Gross Unrealized Losses",
        "documentation": "For all investments in an unrealized loss position, including those for which other-than-temporary impairments have not been recognized in earnings (including investments for which a portion of an other-than-temporary impairment has been recognized in other comprehensive income), a tabular disclosure of the aggregate related fair value of investments with unrealized losses and the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value)."
       }
      }
     },
     "auth_ref": [
      "r275"
     ]
    },
    "fmbh_ScheduleOfUnvestedRestrictedStockAndRestrictedStockUnitsRollForwardTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ScheduleOfUnvestedRestrictedStockAndRestrictedStockUnitsRollForwardTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the change in restricted stock and restricted stock units (RSUs).",
        "label": "Schedule Of Unvested Restricted Stock And Restricted Stock Units Roll Forward Table [Text Block]",
        "terseLabel": "Summary of Unvested Stock and Stock Units"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
        "terseLabel": "Schedule of Expected Amortization Expense",
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]",
        "terseLabel": "SOFR",
        "documentation": "Fixed rate on U.S. dollar, constant-notional interest rate swap that has its variable-rate leg referenced to Secured Overnight Financing Rate (SOFR) with no additional spread over SOFR on variable-rate leg."
       }
      }
     },
     "auth_ref": [
      "r1360"
     ]
    },
    "us-gaap_SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesLoanedOrSoldUnderAgreementsToRepurchaseFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Loaned or Sold under Agreements to Repurchase, Fair Value Disclosure",
        "terseLabel": "Securities sold under agreements to repurchase",
        "documentation": "Fair value portion of securities that an entity sells and agrees to repurchase at a specified date for a specified price."
       }
      }
     },
     "auth_ref": [
      "r235"
     ]
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Sold under Agreements to Repurchase",
        "terseLabel": "Repurchase agreements with customers",
        "totalLabel": "Securities Sold under Agreements to Repurchase, Total",
        "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": [
      "r157",
      "r347",
      "r349",
      "r380",
      "r381",
      "r1048",
      "r1051",
      "r1053",
      "r1063"
     ]
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseIncreaseDecrease",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in the carrying value as of the balance sheet date of securities that an institution sells and agrees to repurchase (the identical or substantially the same securities) as a seller-borrower at a specified date for a specified price, also known as a repurchase agreement, or repo. Most repos involve obligations of the federal government or its agencies, but other financial instruments, such as commercial paper, banker's acceptances, and negotiable certificates of deposit, are sometimes used in repos.",
        "label": "Securities Sold Under Agreements To Repurchase Increase Decrease",
        "terseLabel": "Securities sold under agreements to repurchase increase (decrease)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Sold under Agreements to Repurchase [Member]",
        "terseLabel": "Securities Sold under Agreements to Repurchase",
        "documentation": "The securities that an institution sells and agrees to repurchase (the identical or substantially the same securities) as a seller-borrower at a specified date for a specified price, also known as a repurchase agreement, or repo. Most repos involve obligations of the federal government or its agencies, but other financial instruments, such as commercial paper, banker's acceptances, and negotiable certificates of deposit, are sometimes used in repos."
       }
      }
     },
     "auth_ref": [
      "r235"
     ]
    },
    "fmbh_SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageRate",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities Sold Under Agreements to Repurchase Weighted Average Rate",
        "label": "Securities Sold Under Agreements To Repurchase Weighted Average Rate",
        "terseLabel": "Securities sold under agreements to repurchase weighted average rate"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r1151"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r1154"
     ]
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock-based compensation expense",
        "totalLabel": "Share-Based Payment Arrangement, Noncash Expense, Total",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Forfeited",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r693"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "negatedLabel": "Forfeited",
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event."
       }
      }
     },
     "auth_ref": [
      "r693"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "RSA/RSU, grants in period, gross",
        "verboseLabel": "Granted",
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r691"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Granted",
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r691"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Nonvested, end of year",
        "periodStartLabel": "Nonvested, beginning of year",
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r688",
      "r689"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [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_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Nonvested, end of year",
        "periodStartLabel": "Nonvested, beginning of year",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r688",
      "r689"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "terseLabel": "Fair value of shares vested",
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash."
       }
      }
     },
     "auth_ref": [
      "r695"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfUnvestedStockAndStockUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Vested",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Vested",
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement."
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "terseLabel": "Share Based Compensation Arrangement By Share Based Payment Award [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": [
      "r673",
      "r674",
      "r676",
      "r677",
      "r678",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "terseLabel": "Maximum number of shares to be issued in stock incentive plan (in shares)",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1127"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross",
        "terseLabel": "Common stock awarded in SI plan (in shares)",
        "documentation": "Gross number of share options (or share units) granted during the period."
       }
      }
     },
     "auth_ref": [
      "r684"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails",
      "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": [
      "r676",
      "r677",
      "r678",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "terseLabel": "Stock Incentive Awards",
        "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": [
      "r672",
      "r679",
      "r698",
      "r699",
      "r700",
      "r701",
      "r704",
      "r713",
      "r714",
      "r715",
      "r716"
     ]
    },
    "fmbh_ShortTermAndLongTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ShortTermAndLongTermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total balance of Short Term and Long Term Borrowings and end of period",
        "label": "Short Term And Long Term Borrowings",
        "totalLabel": "Short Term and Long Term Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShortTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": "fmbh_ShortTermAndLongTermBorrowings",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt",
        "verboseLabel": "Short-term debt",
        "totalLabel": "Short-Term Debt, Total",
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r241",
      "r1133",
      "r1388"
     ]
    },
    "us-gaap_ShortTermDebtLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt [Line Items]",
        "terseLabel": "Short Term Debt [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_ShortTermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTypeAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Type [Axis]",
        "terseLabel": "Short-term Debt, Type",
        "documentation": "Information by type of short-term debt arrangement."
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "us-gaap_ShortTermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTypeDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Type [Domain]",
        "terseLabel": "Short-term Debt, Type",
        "documentation": "Type of short-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing."
       }
      }
     },
     "auth_ref": [
      "r41"
     ]
    },
    "us-gaap_ShortTermLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Lease, Cost",
        "terseLabel": "Short-term lease cost",
        "documentation": "Amount of short-term lease cost, excluding expense for lease with term of one month or less."
       }
      }
     },
     "auth_ref": [
      "r844",
      "r1132"
     ]
    },
    "us-gaap_ShorttermDebtAverageOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtAverageOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Average Outstanding Amount",
        "terseLabel": "Average amount outstanding for the year",
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, average borrowings during the period."
       }
      }
     },
     "auth_ref": [
      "r300",
      "r301",
      "r1028"
     ]
    },
    "us-gaap_ShorttermDebtMaximumMonthendOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtMaximumMonthendOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesUnderlyingRepurchaseAgreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt, Maximum Month-end Outstanding Amount",
        "terseLabel": "Maximum outstanding at any month-end",
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, maximum month-end borrowings during the period."
       }
      }
     },
     "auth_ref": [
      "r174"
     ]
    },
    "us-gaap_SpecialMentionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SpecialMentionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Special Mention [Member]",
        "terseLabel": "Special Mention",
        "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": [
      "r86",
      "r1324"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfAmountsReclassifiedFromAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r48",
      "r329",
      "r361",
      "r362",
      "r363",
      "r385",
      "r386",
      "r387",
      "r391",
      "r401",
      "r403",
      "r423",
      "r502",
      "r508",
      "r595",
      "r710",
      "r711",
      "r712",
      "r738",
      "r739",
      "r773",
      "r775",
      "r776",
      "r777",
      "r778",
      "r780",
      "r790",
      "r819",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r856",
      "r963",
      "r964",
      "r965",
      "r987",
      "r1043"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "terseLabel": "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": [
      "r385",
      "r386",
      "r387",
      "r423",
      "r897",
      "r974",
      "r988",
      "r992",
      "r994",
      "r995",
      "r996",
      "r997",
      "r998",
      "r1000",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1020",
      "r1023",
      "r1024",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033",
      "r1034",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1043",
      "r1140"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "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/2023",
     "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/2023",
     "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/2023",
     "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/2023",
     "localname": "StatementTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]",
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed."
       }
      }
     },
     "auth_ref": [
      "r385",
      "r386",
      "r387",
      "r423",
      "r897",
      "r974",
      "r988",
      "r992",
      "r994",
      "r995",
      "r996",
      "r997",
      "r998",
      "r1000",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1020",
      "r1023",
      "r1024",
      "r1029",
      "r1030",
      "r1031",
      "r1032",
      "r1033",
      "r1034",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1043",
      "r1140"
     ]
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory Accounting Practices, Statutory Amount Available for Dividend Payments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDividendRestrictionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory Accounting Practices, Statutory Amount Available for Dividend Payments without Regulatory Approval",
        "terseLabel": "Amount Available for Dividend Distribution without Prior Approval from Regulatory Agency",
        "documentation": "Amount of dividends that can be declared or paid without approval of regulatory agency."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1162",
      "r1174",
      "r1184",
      "r1210"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "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": []
    },
    "us-gaap_StockCompensationPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockCompensationPlanMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanSummaryOfCompensationCostNetOfForfeituresRelatedToStockBasedCompensationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Member]",
        "terseLabel": "Stock Unit Awards and Stock Awards [Member]",
        "documentation": "Share-based payment arrangement in which award of equity shares are granted. Arrangement includes, but is not limited to, grantor incurring liability for product and service based on price of its shares."
       }
      }
     },
     "auth_ref": [
      "r1290"
     ]
    },
    "fmbh_StockIncentivePlanTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "StockIncentivePlanTerm",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureStockIncentivePlanAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock incentive plan, term.",
        "label": "Stock Incentive Plan Term",
        "terseLabel": "Stock plans, term"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Acquisitions",
        "terseLabel": "Stock Issued During Period, Shares, Acquisitions",
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r179",
      "r218"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesDividendReinvestmentPlan",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Dividend Reinvestment Plan",
        "terseLabel": "Issuance of common shares pursuant to the Dividend Reinvestment Plan (in shares)",
        "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": [
      "r28",
      "r1043",
      "r1070"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Employee Stock Purchase Plans",
        "terseLabel": "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": [
      "r28",
      "r178",
      "r179",
      "r218"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "terseLabel": "Restricted stock issued during period, shares, pursuant to the 2017 stock incentive plan",
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r218"
     ]
    },
    "fmbh_StockIssuedDuringPeriodSharesStockIncentivePlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "StockIssuedDuringPeriodSharesStockIncentivePlan",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued during period shares stock incentive plan.",
        "label": "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/2023",
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Acquisitions",
        "terseLabel": "Issuance of shares pursuant to the acquisition",
        "documentation": "Value of stock issued pursuant to acquisitions during the period."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r48",
      "r218"
     ]
    },
    "fmbh_StockIssuedDuringPeriodValueDeferredCompensationPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "StockIssuedDuringPeriodValueDeferredCompensationPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of shares issued during the period to a deferred compensation plan.",
        "label": "Stock Issued During Period Value Deferred Compensation Plan",
        "terseLabel": "Issuance of common shares pursuant to the deferred compensation plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueDividendReinvestmentPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Dividend Reinvestment Plan",
        "terseLabel": "Issuance of common shares pursuant to the 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": [
      "r28",
      "r987",
      "r1043",
      "r1070",
      "r1139",
      "r1148"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueEmployeeStockPurchasePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Employee Stock Purchase Plan",
        "terseLabel": "Issuance of common shares pursuant to the 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": [
      "r28",
      "r178",
      "r179",
      "r218"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Gross",
        "terseLabel": "Issuance of restricted shares pursuant to the 2017 Stock Incentive Plan",
        "documentation": "Aggregate value of stock related to Restricted Stock Awards issued during the period."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r178",
      "r179",
      "r218"
     ]
    },
    "fmbh_StockIssuedDuringPeriodValueStockIncentivePlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "StockIssuedDuringPeriodValueStockIncentivePlan",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common shares pursuant to the 2017 stock incentive plan",
        "documentation": "Stock issued during period value stock incentive plan.",
        "label": "Stock Issued During Period Value Stock Incentive Plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Issuance of common shares pursuant to the exercise of stock options",
        "documentation": "Value of stock issued as a result of the exercise of stock options."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r48",
      "r218"
     ]
    },
    "fmbh_StockUnassignedDuringPeriodToBeIssuedSharesEmployeeStockPurchasePlans": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "StockUnassignedDuringPeriodToBeIssuedSharesEmployeeStockPurchasePlans",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares unassigned but available to be issued under the ESPP",
        "label": "Stock Unassigned During Period To Be Issued, Shares, Employee Stock Purchase Plans",
        "documentation": "Stock unassigned during period to be issued, shares, employee stock purchase plans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureBasisOfAccountingAndConsolidationScheduleOfComponentsOfAccumulatedOtherComprehensiveLossDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureParentCompanyOnlyFinancialStatementsCondensedBalanceSheetsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "terseLabel": "Stockholders\u2019 equity",
        "totalLabel": "Total stockholders\u2019 equity",
        "verboseLabel": "Cumulative change in accounting principal",
        "label": "Balance",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r182",
      "r183",
      "r206",
      "r1002",
      "r1019",
      "r1044",
      "r1045",
      "r1133",
      "r1149",
      "r1281",
      "r1316",
      "r1366",
      "r1396"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders\u2019 equity:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubleaseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubleaseIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sublease Income",
        "negatedLabel": "Income from subleases",
        "documentation": "Amount of sublease income excluding finance and operating lease expense."
       }
      }
     },
     "auth_ref": [
      "r846",
      "r1132"
     ]
    },
    "us-gaap_SubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubordinatedDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails": {
       "parentTag": "fmbh_ShortTermAndLongTermBorrowings",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfBorrowingsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Subordinated Debentures",
        "label": "Subordinated Debt",
        "terseLabel": "Subordinated debt, net",
        "totalLabel": "Subordinated Debt, Total",
        "periodStartLabel": "Subordinated Debt, Beginning Balance",
        "periodEndLabel": "Subordinated Debt, Ending Balance",
        "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": [
      "r40",
      "r174",
      "r244",
      "r1389"
     ]
    },
    "us-gaap_SubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubordinatedDebtMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSummaryOfEstimatedFairValuesOfCompanyFinancialInstrumentsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfAggregateAnnualMaturitiesOfLongTermBorrowingsDetails"
     ],
     "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_SubsidiarySaleOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsidiarySaleOfStockAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sale of Stock [Axis]",
        "documentation": "Information by type of sale of the entity's stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubstandardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubstandardMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesCreditRiskProfileOfLoanPortfolioBasedOnRiskRatingCategoryAndPaymentActivityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Substandard [Member]",
        "terseLabel": "Substandard",
        "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": [
      "r86",
      "r1324"
     ]
    },
    "fmbh_SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfCumulativeBasisAdjustmentOfFairValueHedgesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDerivativesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of cumulative basis adjustment of fair value hedges.",
        "label": "Summary Of Cumulative Basis Adjustment Of Fair Value Hedges Table [Text Block]",
        "terseLabel": "Summary of Cumulative Basis Adjustment of Fair Value Hedges"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfEstimatedUsefulLivesForMajorDepreciableClassificationOfPremisesAndEquipmentTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Estimated Useful Lives for Major Depreciable Classification of Premises and Equipment",
        "label": "Summary Of Estimated Useful Lives For Major Depreciable Classification of Premises And Equipment Table Text Block",
        "documentation": "Summary of estimated useful lives for major depreciable classification of premises and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated loans.",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Line Items]",
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedLoansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfPurchasedCreditDeterioratedLoansTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfPurchasedCreditDeterioratedPCDLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated loans.",
        "label": "Summary Of Purchased Credit Deteriorated Loans [Table]",
        "terseLabel": "Summary Of Purchased Credit Deteriorated Loans [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfPurchasedCreditDeterioratedPCDLoansTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsTables",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of purchased credit deteriorated (PCD) loans.",
        "label": "Summary Of Purchased Credit Deteriorated P C D Loans Table [Text Block]",
        "terseLabel": "Summary of Purchased Credit Deteriorated (PCD) Loans"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfSignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Line Items]",
        "terseLabel": "Summary Of Significant Accounting Policies [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SummaryOfSignificantAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SummaryOfSignificantAccountingPoliciesTable",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Table]",
        "terseLabel": "Summary Of Significant Accounting Policies [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental disclosures of cash flow information"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_SupplementalDisclosuresOfPurchasesOfCapitalStockAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "SupplementalDisclosuresOfPurchasesOfCapitalStockAbstract",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Supplemental disclosures of purchases of capital stock.",
        "label": "Supplemental Disclosures Of Purchases Of Capital Stock [Abstract]",
        "terseLabel": "Supplemental disclosures of purchases of capital stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalEmployeeRetirementPlanDefinedBenefitMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Employee Retirement Plan [Member]",
        "terseLabel": "Supplemental Employee Retirement Plans, Defined Benefit",
        "documentation": "Plan designed to provide limited group of employees with supplemental retirement benefits, in addition to other pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SuppliesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SuppliesExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplies Expense",
        "terseLabel": "Stationery and supplies",
        "documentation": "Amount of expense associated with supplies that were used during the current accounting period."
       }
      }
     },
     "auth_ref": [
      "r261"
     ]
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1203"
     ]
    },
    "fmbh_ThreePointEightSevenFivePercentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ThreePointEightSevenFivePercentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3.875%",
        "label": "Three Point Eight Seven Five Percent [Member]",
        "documentation": "Three Point Eight Seven Five Percent [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ThreePointFiveZeroPercentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ThreePointFiveZeroPercentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3.50%",
        "label": "Three Point Five Zero Percent [Member]",
        "documentation": "Three point five zero percent"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_ThreePointNineFivePercentSubordinatedNotesDueTwoThousandThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ThreePointNineFivePercentSubordinatedNotesDueTwoThousandThirtyMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Three point nine five percent subordinated notes due two thousand thirty.",
        "label": "Three Point Nine Five Percent Subordinated Notes Due Two Thousand Thirty [Member]",
        "terseLabel": "3.95% Subordinated Notes due 2030"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TierOneLeverageCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapital",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital, Actual",
        "terseLabel": "Tier One Leverage Capital to Average Assets",
        "documentation": "Amount of Tier 1 leverage capital as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacy",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital, Capital Adequacy, Minimum",
        "terseLabel": "Tier One Leverage Capital Required for Capital Adequacy ($)",
        "documentation": "Amount of minimum Tier 1 leverage capital required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital Ratio, Capital Adequacy, Minimum",
        "terseLabel": "Tier One Leverage Capital Required for Capital Adequacy to Average Assets (%)",
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalized",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital, Well Capitalized, Minimum",
        "terseLabel": "Tier One Leverage Capital Required to be Well Capitalized ($)",
        "documentation": "Amount of minimum Tier 1 leverage capital categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital Ratio, Well Capitalized, Minimum",
        "terseLabel": "Tier One Leverage Capital Required to be Well Capitalized to Average Assets (%)",
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneLeverageCapitalToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalToAverageAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Leverage Capital Ratio, Actual",
        "terseLabel": "Tier One Leverage Capital to Average Assets (%)",
        "documentation": "Ratio of Tier 1 capital to average assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneRiskBasedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapital",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital, Actual",
        "terseLabel": "Tier One Risk Based Capital ($)",
        "documentation": "Amount of Tier 1 risk-based capital as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacy",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital, Capital Adequacy, Minimum",
        "terseLabel": "Tier One Risk Based Capital Required for Capital Adequacy ($)",
        "documentation": "Amount of minimum Tier 1 risk-based capital required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "terseLabel": "Tier One Risk Based Capital Required for Capital Adequacy to RWA (%)",
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r928"
     ]
    },
    "fmbh_TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBuffer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBuffer",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tier one risk based capital required for capital adequacy with buffer.",
        "label": "Tier One Risk Based Capital Required For Capital Adequacy With Buffer",
        "terseLabel": "Tier One Risk Based Capital Required for Capital Adequacy with Capital Buffer ($)"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBufferToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyWithBufferToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tier one risk based capital required for capital adequacy with buffer to risk weighted assets.",
        "label": "Tier One Risk Based Capital Required For Capital Adequacy With Buffer To Risk Weighted Assets",
        "terseLabel": "Tier One Risk Based Capital Required for Capital Adequacy with Capital Buffer to RWA (%)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalized",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital, Well Capitalized, Minimum",
        "terseLabel": "Tier One Risk Based Capital Required to be Well Capitalized ($)",
        "documentation": "Amount of minimum Tier 1 risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "terseLabel": "Tier One Risk Based Capital Required to be Well Capitalized to RWA (%)",
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalToRiskWeightedAssets",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRegulatoryCapitalScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Regulation, Tier 1 Risk-Based Capital Ratio, Actual",
        "terseLabel": "Tier One Risk Based Capital to RWA (%)",
        "documentation": "Ratio of Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r924"
     ]
    },
    "us-gaap_TimeDepositMaturitiesAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, after Year Five",
        "terseLabel": "Over 5 years",
        "documentation": "Amount of time deposit maturing after fifth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearFive",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Year Five",
        "terseLabel": "4 years to 5 years",
        "documentation": "Amount of time deposit maturing in fifth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearFour",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Year Four",
        "terseLabel": "3 years to 4 years",
        "documentation": "Amount of time deposit maturing in fourth fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearOne": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearOne",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Year One",
        "terseLabel": "Less than 1 year",
        "documentation": "Amount of time deposit maturing in next fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearThree",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Year Three",
        "terseLabel": "2 years to 3 years",
        "documentation": "Amount of time deposit maturing in third fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities, Year Two",
        "terseLabel": "1 year to 2 years",
        "documentation": "Amount of time deposit maturing in second fiscal year following current fiscal year. Time deposit includes, but is not limited to, certificate of deposit. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_TimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDeposits",
     "crdr": "credit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfDepositsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfMaturitiesForAllTimeDepositsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposits",
        "terseLabel": "Time deposits",
        "totalLabel": "Total",
        "documentation": "Amount of time deposit liabilities, including certificates of deposit."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r156"
     ]
    },
    "us-gaap_TimeDeposits100000OrMore": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDeposits100000OrMore",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsSummaryOfAggregateAmountOfTimeDepositsMoreThan100000Details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposits, $100,000 or More",
        "terseLabel": "Time deposit balances in denominations of more than $250,000",
        "totalLabel": "Time Deposits, $100,000 or More, Total",
        "documentation": "Amount of time deposit liabilities, including certificates of deposit, in denominations of $100,000 or more."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "fmbh_TotalOfPublicEntitiyBalances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "TotalOfPublicEntitiyBalances",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDepositsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total balance of Public entities with large balances",
        "label": "Total Of Public Entitiy Balances",
        "terseLabel": "Total of Public entitiy balances"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1195"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1202"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r1223"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1225"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "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/2023",
     "localname": "TransferToOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "terseLabel": "Loans transferred to other real estate owned",
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69",
      "r70"
     ]
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesScheduleOfOffBalanceSheetFinancialInstrumentsWhoseContractAmountsRepresentCreditRiskDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfLoansOnNonaccrualLoansDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments",
        "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": [
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r591",
      "r594",
      "r781",
      "r863",
      "r864",
      "r865",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r880",
      "r881",
      "r882",
      "r883",
      "r884",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r950",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1312",
      "r1313",
      "r1314",
      "r1315"
     ]
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r1226"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r1227"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1225"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r1225"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1228"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r1226"
     ]
    },
    "us-gaap_TreasuryStockCommonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockCommonMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Common [Member]",
        "terseLabel": "Treasury Stock",
        "documentation": "Previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "us-gaap_TreasuryStockCommonShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockCommonShares",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treasury stock (in shares)",
        "label": "Treasury Stock, Common, Shares",
        "documentation": "Number of previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "us-gaap_TreasuryStockCommonValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockCommonValue",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Less treasury stock at cost, 652,571 and 639,090 shares in 2023 and 2022, respectively",
        "label": "Treasury Stock, Common, Value",
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r104",
      "r105"
     ]
    },
    "fmbh_TreasuryStockPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "TreasuryStockPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Treasury Stock, Policy [Policy Text Block]",
        "label": "Treasury Stock Policy Policy [Text Block]",
        "terseLabel": "Treasury Stock"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockSharesAcquired",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Shares, Acquired",
        "terseLabel": "Purchase of treasury shares (in shares)",
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r179",
      "r218"
     ]
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "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": [
      "r28",
      "r104",
      "r218"
     ]
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Modified [Table Text Block]",
        "terseLabel": "Recorded Balance of Troubled Debt Restructurings",
        "documentation": "Tabular disclosure of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r1097",
      "r1293",
      "r1294",
      "r1295",
      "r1296"
     ]
    },
    "fmbh_TrustPreferredSecuritiesIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "TrustPreferredSecuritiesIssued",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trust preferred securities issued and sold through a statutory trust as part of a pooled offering",
        "label": "Trust Preferred Securities Issued",
        "terseLabel": "Trust preferred securities issued"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TypeOfAdoptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TypeOfAdoptionMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAllowanceForCreditLossesBasedOnPortfolioSegmentDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Domain]",
        "terseLabel": "Accounting Standards Update",
        "documentation": "Amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r390",
      "r391",
      "r392",
      "r393",
      "r404",
      "r456",
      "r457",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r557",
      "r710",
      "r711",
      "r712",
      "r736",
      "r737",
      "r738",
      "r739",
      "r752",
      "r753",
      "r754",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r808",
      "r809",
      "r815",
      "r816",
      "r817",
      "r818",
      "r826",
      "r827",
      "r832",
      "r833",
      "r834",
      "r835",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r899",
      "r900",
      "r901",
      "r961",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972"
     ]
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsFairValueOfAssetsMeasuredOnRecurringBasisUsingSignificantUnobservableInputsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "terseLabel": "Obligations of States and Political Subdivisions",
        "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": [
      "r1115",
      "r1390"
     ]
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USTreasuryAndGovernmentMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAvailableForSaleAndHeldForMaturitySecuritiesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesFairValueOfInvestmentsWithSustainedGrossUnrealizedLossesDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureInvestmentSecuritiesInvestmentsClassifiedByContractualMaturityDateDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsScheduleOfSecuritiesFinancingTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US Treasury and Government [Member]",
        "terseLabel": "U.S. Treasury Securities and Obligations of U.S. Government Corporations and Agencies",
        "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": [
      "r910",
      "r1115",
      "r1390"
     ]
    },
    "us-gaap_UnallocatedFinancingReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnallocatedFinancingReceivablesMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAmortizedCostBasisOfCollateralDependentLoansByClassOfLoansIndividuallyEvaluatedDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoanPortfolioAgingAnalysisDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansModifiedAsTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesRecordedBalanceOfTroubledDebtRestructuringsDetails",
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unallocated Financing Receivables [Member]",
        "terseLabel": "All Other Loans",
        "documentation": "Financing receivables that have not been allocated to a portfolio segment."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "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": [
      "r1222"
     ]
    },
    "fmbh_UnsecuredOpenEndLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "UnsecuredOpenEndLoansMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsecured open end loans.",
        "label": "Unsecured Open End Loans [Member]",
        "terseLabel": "Unsecured Open-end Loans"
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_UnusualRiskOrUncertaintyRiskPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "UnusualRiskOrUncertaintyRiskPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unusual risk or uncertainty risk.",
        "label": "Unusual Risk Or Uncertainty Risk Policy [Text Block]",
        "terseLabel": "COVID-19"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates",
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles."
       }
      }
     },
     "auth_ref": [
      "r75",
      "r76",
      "r77",
      "r285",
      "r286",
      "r288",
      "r289"
     ]
    },
    "us-gaap_UseRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UseRightsMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsEstimatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use Rights [Member]",
        "terseLabel": "Right of Use Asset",
        "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": [
      "r39"
     ]
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Partial valuation allowance",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset."
       }
      }
     },
     "auth_ref": [
      "r728"
     ]
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Axis]",
        "terseLabel": "Valuation Approach and Technique",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Domain]",
        "terseLabel": "Valuation Approach and Technique",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "fmbh_ValueOfTrustAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "ValueOfTrustAccounts",
     "crdr": "debit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of Trust Accounts managed or administered.",
        "label": "Value Of Trust Accounts",
        "terseLabel": "Value of trust accounts"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails": {
       "parentTag": "fmbh_GrossLeaseCost",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfLeaseExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Lease, Cost",
        "terseLabel": "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": [
      "r845",
      "r1132"
     ]
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRepurchaseAgreementsAndOtherBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": []
    },
    "fmbh_WealthManagementAssetsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "WealthManagementAssetsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBasisOfAccountingAndConsolidationPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Wealth management assets policy.",
        "label": "Wealth Management Assets Policy Policy [Text Block]",
        "terseLabel": "Wealth Management Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_WeightedAverageBasicSharesOutstandingProForma": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageBasicSharesOutstandingProForma",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureBusinessCombinationsUnauditedProFormaCondensedCombinedFinancialInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Basic Shares Outstanding, Pro Forma",
        "terseLabel": "Basic weighted average shares outstanding",
        "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/2023",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureDisclosuresOfFairValuesOfFinancialInstrumentsSignificantUnobservableInputsUsedInValuationOfLevel3FairValueMeasurementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r1086",
      "r1087",
      "r1372",
      "r1374",
      "r1377"
     ]
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted, Adjustment",
        "totalLabel": "Dilutive potential common shares",
        "documentation": "The sum of dilutive potential common shares or units used in the calculation of the diluted per-share or per-unit computation."
       }
      }
     },
     "auth_ref": [
      "r1289"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "totalLabel": "Diluted weighted average common shares outstanding",
        "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": [
      "r407",
      "r417"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "calculation": {
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails": {
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureEarningsPerShareComponentsOfBasicAndDilutedNetIncomePerCommonShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted average common shares outstanding",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "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": [
      "r406",
      "r417"
     ]
    },
    "fmbh_YearofBenefit": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.firstmid.com/20231231",
     "localname": "YearofBenefit",
     "presentation": [
      "http://www.firstmid.com/20231231/taxonomy/role/Role_DisclosureRetirementPlansAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of years benefit will be paid after retirement.",
        "label": "Yearof Benefit",
        "terseLabel": "Year of benefit"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "940",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481913/940-20-25-1"
  },
  "r1": {
   "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"
  },
  "r2": {
   "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"
  },
  "r3": {
   "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"
  },
  "r4": {
   "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/2147481877/830-230-45-1"
  },
  "r5": {
   "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"
  },
  "r6": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(i),(j),(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/2147481071/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",
   "SubTopic": "10",
   "Topic": "470",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-1"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "715",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "350",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "405",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481047/942-405-50-1"
  },
  "r21": {
   "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"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(1)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(2)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(3)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)(4)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r26": {
   "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"
  },
  "r27": {
   "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"
  },
  "r28": {
   "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"
  },
  "r29": {
   "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"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r32": {
   "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"
  },
  "r33": {
   "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"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "e",
   "SubTopic": "470",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r35": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-35"
  },
  "r36": {
   "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"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482739/220-10-55-15"
  },
  "r39": {
   "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"
  },
  "r40": {
   "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"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r43": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r44": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.30)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r51": {
   "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"
  },
  "r52": {
   "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"
  },
  "r53": {
   "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"
  },
  "r54": {
   "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"
  },
  "r55": {
   "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"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r57": {
   "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"
  },
  "r58": {
   "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"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r60": {
   "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"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r65": {
   "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"
  },
  "r66": {
   "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"
  },
  "r67": {
   "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"
  },
  "r68": {
   "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"
  },
  "r69": {
   "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"
  },
  "r70": {
   "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"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "250",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "270",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-12"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "270",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-13"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-4"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-8"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-9"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310-10/tableOfContent"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "11B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-11B"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "14A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-14A"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-15"
  },
  "r84": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-15"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(b,d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-15"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-29"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-6"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7A"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-9"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-1"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-2"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "((a)(1),(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r101": {
   "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"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-3"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-8"
  },
  "r104": {
   "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"
  },
  "r105": {
   "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"
  },
  "r106": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "710",
   "SubTopic": "10",
   "Section": "25",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483070/710-10-25-16"
  },
  "r107": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r108": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r109": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-4"
  },
  "r110": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r111": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r112": {
   "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"
  },
  "r113": {
   "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"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-8"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(a)-(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479515/805-10-05-4"
  },
  "r116": {
   "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"
  },
  "r117": {
   "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"
  },
  "r118": {
   "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"
  },
  "r119": {
   "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"
  },
  "r120": {
   "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"
  },
  "r121": {
   "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"
  },
  "r122": {
   "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"
  },
  "r123": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "740",
   "Section": "25",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479692/805-740-25-8"
  },
  "r124": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "740",
   "Section": "25",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479692/805-740-25-9"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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"
  },
  "r129": {
   "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"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "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"
  },
  "r133": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a),(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r134": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r135": {
   "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"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-1A"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-2"
  },
  "r149": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-3"
  },
  "r150": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-4"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482949/835-30-55-8"
  },
  "r152": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r153": {
   "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/2147481309/942-210-45-4"
  },
  "r154": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.1,2,3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.12)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r157": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r158": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r159": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.15)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r160": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.16)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r161": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r162": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r163": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.7(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r164": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r165": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "230",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481160/942-230-45-1"
  },
  "r166": {
   "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/2147480848/942-470-50-1"
  },
  "r167": {
   "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/2147480848/942-470-50-3"
  },
  "r168": {
   "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/2147480848/942-470-50-3"
  },
  "r169": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "505",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r170": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "505",
   "Section": "50",
   "Paragraph": "1H",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1H"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Industry Guide",
   "Number": "3",
   "Section": "V",
   "Paragraph": "D-E",
   "Publisher": "SEC"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//205/tableOfContent"
  },
  "r173": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r174": {
   "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"
  },
  "r175": {
   "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"
  },
  "r176": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r177": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r178": {
   "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"
  },
  "r179": {
   "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"
  },
  "r180": {
   "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"
  },
  "r181": {
   "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"
  },
  "r182": {
   "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"
  },
  "r183": {
   "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"
  },
  "r184": {
   "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"
  },
  "r185": {
   "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"
  },
  "r186": {
   "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"
  },
  "r187": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-1"
  },
  "r188": {
   "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"
  },
  "r189": {
   "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(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r190": {
   "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"
  },
  "r191": {
   "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"
  },
  "r192": {
   "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"
  },
  "r193": {
   "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"
  },
  "r194": {
   "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"
  },
  "r195": {
   "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"
  },
  "r196": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r197": {
   "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"
  },
  "r198": {
   "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"
  },
  "r199": {
   "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"
  },
  "r200": {
   "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"
  },
  "r201": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//235/tableOfContent"
  },
  "r202": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "270",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//270/tableOfContent"
  },
  "r203": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "275",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//275/tableOfContent"
  },
  "r204": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r205": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481746/310-40-50-1"
  },
  "r208": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r209": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//350/tableOfContent"
  },
  "r210": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r211": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r212": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r213": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//360/tableOfContent"
  },
  "r214": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r215": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//440/tableOfContent"
  },
  "r216": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-6"
  },
  "r217": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-7"
  },
  "r218": {
   "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"
  },
  "r219": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "710",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483043/710-10-30-1"
  },
  "r220": {
   "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"
  },
  "r221": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r222": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r223": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r224": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r225": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//805/tableOfContent"
  },
  "r226": {
   "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"
  },
  "r227": {
   "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"
  },
  "r228": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "c",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479581/805-30-50-1"
  },
  "r229": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//810/tableOfContent"
  },
  "r230": {
   "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"
  },
  "r231": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//815/tableOfContent"
  },
  "r232": {
   "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"
  },
  "r233": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r234": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "825",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//825/tableOfContent"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "940",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//940-320/tableOfContent"
  },
  "r238": {
   "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/2147479853/942-210-S99-1"
  },
  "r239": {
   "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/2147479853/942-210-S99-1"
  },
  "r240": {
   "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/2147479853/942-210-S99-1"
  },
  "r241": {
   "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/2147479853/942-210-S99-1"
  },
  "r242": {
   "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)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r243": {
   "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/2147479853/942-210-S99-1"
  },
  "r244": {
   "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/2147479853/942-210-S99-1"
  },
  "r245": {
   "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/2147479853/942-210-S99-1"
  },
  "r246": {
   "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/2147479853/942-210-S99-1"
  },
  "r247": {
   "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,16)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r248": {
   "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)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r249": {
   "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/2147483589/942-220-S99-1"
  },
  "r250": {
   "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/2147483589/942-220-S99-1"
  },
  "r251": {
   "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/2147483589/942-220-S99-1"
  },
  "r252": {
   "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/2147483589/942-220-S99-1"
  },
  "r253": {
   "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-5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r254": {
   "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.10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r255": {
   "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.11)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r256": {
   "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/2147483589/942-220-S99-1"
  },
  "r257": {
   "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),(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r258": {
   "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/2147483589/942-220-S99-1"
  },
  "r259": {
   "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/2147483589/942-220-S99-1"
  },
  "r260": {
   "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/2147483589/942-220-S99-1"
  },
  "r261": {
   "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/2147483589/942-220-S99-1"
  },
  "r262": {
   "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/2147483589/942-220-S99-1"
  },
  "r263": {
   "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/2147483589/942-220-S99-1"
  },
  "r264": {
   "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/2147483589/942-220-S99-1"
  },
  "r265": {
   "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/2147483589/942-220-S99-1"
  },
  "r266": {
   "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/2147483589/942-220-S99-1"
  },
  "r267": {
   "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.9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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/2147480876/942-470-45-1"
  },
  "r270": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//946-320/tableOfContent"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "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"
  },
  "r274": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "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"
  },
  "r275": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-6"
  },
  "r276": {
   "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"
  },
  "r277": {
   "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"
  },
  "r278": {
   "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r282": {
   "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "270",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482964/270-10-50-1"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-1"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-1"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-11"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-12"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-6"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-7"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "SubTopic": "10",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-7A"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "326",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-3"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "326",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-3"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "842",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-4"
  },
  "r298": {
   "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"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(4)",
   "Publisher": "SEC"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(c)",
   "Publisher": "SEC"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1406",
   "Paragraph": "(e)",
   "Publisher": "SEC"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1406",
   "Publisher": "SEC"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column G",
   "Publisher": "SEC"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column H",
   "Publisher": "SEC"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column I",
   "Publisher": "SEC"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "5",
   "Subsection": "04",
   "Paragraph": "c",
   "Subparagraph": "Schedule I",
   "Publisher": "SEC"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "7",
   "Subsection": "05",
   "Paragraph": "c",
   "Subparagraph": "Schedule II",
   "Publisher": "SEC"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "9",
   "Subsection": "06",
   "Publisher": "SEC"
  },
  "r327": {
   "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"
  },
  "r328": {
   "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"
  },
  "r329": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.5-04(Schedule I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480922/205-10-S99-6"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "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(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r336": {
   "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(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r337": {
   "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(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r340": {
   "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"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "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"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "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"
  },
  "r359": {
   "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"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-1"
  },
  "r361": {
   "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"
  },
  "r362": {
   "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"
  },
  "r363": {
   "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"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(210.5-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r365": {
   "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(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r366": {
   "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(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r367": {
   "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"
  },
  "r368": {
   "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"
  },
  "r369": {
   "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"
  },
  "r370": {
   "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"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "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"
  },
  "r374": {
   "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"
  },
  "r375": {
   "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"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "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"
  },
  "r380": {
   "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"
  },
  "r381": {
   "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"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "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(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "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"
  },
  "r395": {
   "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"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//260/tableOfContent"
  },
  "r406": {
   "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"
  },
  "r407": {
   "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"
  },
  "r408": {
   "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"
  },
  "r409": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "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"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482964/270-10-50-1B"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r427": {
   "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"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r429": {
   "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"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r432": {
   "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"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-40"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-42"
  },
  "r441": {
   "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"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "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"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-2"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-3"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "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"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r455": {
   "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"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r459": {
   "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"
  },
  "r460": {
   "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"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481830/320-10-45-2"
  },
  "r462": {
   "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"
  },
  "r463": {
   "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"
  },
  "r464": {
   "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"
  },
  "r465": {
   "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"
  },
  "r466": {
   "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"
  },
  "r467": {
   "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"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "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"
  },
  "r473": {
   "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"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r480": {
   "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"
  },
  "r481": {
   "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"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "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"
  },
  "r489": {
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "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"
  },
  "r493": {
   "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"
  },
  "r494": {
   "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"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481664/323-10-45-1"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-2"
  },
  "r499": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "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"
  },
  "r503": {
   "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"
  },
  "r504": {
   "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"
  },
  "r505": {
   "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"
  },
  "r506": {
   "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"
  },
  "r507": {
   "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"
  },
  "r508": {
   "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"
  },
  "r509": {
   "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"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-2"
  },
  "r511": {
   "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"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-11"
  },
  "r513": {
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "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"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "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"
  },
  "r528": {
   "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"
  },
  "r529": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "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"
  },
  "r536": {
   "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"
  },
  "r537": {
   "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"
  },
  "r538": {
   "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"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9"
  },
  "r540": {
   "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"
  },
  "r541": {
   "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"
  },
  "r542": {
   "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"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "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"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r553": {
   "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"
  },
  "r554": {
   "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"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r557": {
   "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"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482017/420-10-50-1"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4"
  },
  "r561": {
   "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"
  },
  "r562": {
   "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"
  },
  "r563": {
   "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"
  },
  "r564": {
   "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"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482454/460-10-45-1"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r570": {
   "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"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "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"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "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"
  },
  "r586": {
   "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"
  },
  "r587": {
   "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"
  },
  "r588": {
   "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"
  },
  "r589": {
   "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"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-6"
  },
  "r594": {
   "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"
  },
  "r595": {
   "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"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "710",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//710/tableOfContent"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "710",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482969/710-10-50-1"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//715/tableOfContent"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-2"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-3"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r622": {
   "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"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r625": {
   "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"
  },
  "r626": {
   "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"
  },
  "r627": {
   "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"
  },
  "r628": {
   "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"
  },
  "r629": {
   "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"
  },
  "r630": {
   "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"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r640": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r641": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r642": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r646": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(o)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(p)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(q)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r652": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r653": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-8"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480126/715-20-S99-2"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-3"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "70",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480794/715-70-50-1"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480606/715-80-35-1"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r670": {
   "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"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-9"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-1D"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-3"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r680": {
   "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"
  },
  "r681": {
   "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"
  },
  "r682": {
   "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"
  },
  "r683": {
   "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"
  },
  "r684": {
   "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"
  },
  "r685": {
   "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"
  },
  "r686": {
   "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"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "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"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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"
  },
  "r692": {
   "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"
  },
  "r693": {
   "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"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "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"
  },
  "r698": {
   "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"
  },
  "r699": {
   "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"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "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"
  },
  "r704": {
   "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"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r708": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r713": {
   "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"
  },
  "r714": {
   "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"
  },
  "r715": {
   "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"
  },
  "r716": {
   "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"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.F)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//740/tableOfContent"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-25"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-28"
  },
  "r721": {
   "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"
  },
  "r722": {
   "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"
  },
  "r723": {
   "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"
  },
  "r724": {
   "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"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-14"
  },
  "r726": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-17"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-19"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r731": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-20"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-21"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r735": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r737": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r738": {
   "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"
  },
  "r739": {
   "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"
  },
  "r740": {
   "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.5.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r741": {
   "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"
  },
  "r742": {
   "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.Fact.1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r743": {
   "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.Fact.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r744": {
   "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.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r745": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 11.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-2"
  },
  "r746": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "270",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482526/740-270-50-1"
  },
  "r747": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482603/740-30-50-2"
  },
  "r748": {
   "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"
  },
  "r749": {
   "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"
  },
  "r750": {
   "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"
  },
  "r751": {
   "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"
  },
  "r752": {
   "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"
  },
  "r753": {
   "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"
  },
  "r754": {
   "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"
  },
  "r755": {
   "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"
  },
  "r756": {
   "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"
  },
  "r757": {
   "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"
  },
  "r758": {
   "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"
  },
  "r759": {
   "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"
  },
  "r760": {
   "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"
  },
  "r761": {
   "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"
  },
  "r762": {
   "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"
  },
  "r763": {
   "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"
  },
  "r764": {
   "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"
  },
  "r765": {
   "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"
  },
  "r766": {
   "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"
  },
  "r767": {
   "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"
  },
  "r768": {
   "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"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-5"
  },
  "r770": {
   "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"
  },
  "r771": {
   "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"
  },
  "r772": {
   "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"
  },
  "r773": {
   "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"
  },
  "r774": {
   "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"
  },
  "r775": {
   "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"
  },
  "r776": {
   "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"
  },
  "r777": {
   "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"
  },
  "r778": {
   "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"
  },
  "r779": {
   "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"
  },
  "r780": {
   "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"
  },
  "r781": {
   "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"
  },
  "r782": {
   "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"
  },
  "r783": {
   "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"
  },
  "r784": {
   "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"
  },
  "r785": {
   "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"
  },
  "r786": {
   "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"
  },
  "r787": {
   "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"
  },
  "r788": {
   "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"
  },
  "r789": {
   "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"
  },
  "r790": {
   "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"
  },
  "r791": {
   "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"
  },
  "r792": {
   "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"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r795": {
   "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"
  },
  "r796": {
   "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"
  },
  "r797": {
   "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"
  },
  "r798": {
   "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"
  },
  "r799": {
   "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"
  },
  "r800": {
   "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"
  },
  "r801": {
   "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"
  },
  "r802": {
   "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"
  },
  "r803": {
   "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"
  },
  "r804": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-6A"
  },
  "r806": {
   "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"
  },
  "r807": {
   "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"
  },
  "r808": {
   "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"
  },
  "r809": {
   "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"
  },
  "r810": {
   "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"
  },
  "r811": {
   "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"
  },
  "r812": {
   "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"
  },
  "r813": {
   "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"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-5"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r819": {
   "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"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r821": {
   "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"
  },
  "r822": {
   "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"
  },
  "r823": {
   "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"
  },
  "r824": {
   "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"
  },
  "r825": {
   "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"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r828": {
   "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"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-3"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-1"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r835": {
   "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"
  },
  "r836": {
   "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"
  },
  "r837": {
   "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"
  },
  "r838": {
   "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"
  },
  "r839": {
   "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"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-1"
  },
  "r841": {
   "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"
  },
  "r842": {
   "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"
  },
  "r843": {
   "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"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r845": {
   "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"
  },
  "r846": {
   "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"
  },
  "r847": {
   "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"
  },
  "r848": {
   "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"
  },
  "r849": {
   "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"
  },
  "r850": {
   "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"
  },
  "r851": {
   "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"
  },
  "r852": {
   "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"
  },
  "r853": {
   "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"
  },
  "r854": {
   "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"
  },
  "r855": {
   "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"
  },
  "r856": {
   "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"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//850/tableOfContent"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-6"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481435/852-10-45-14"
  },
  "r863": {
   "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"
  },
  "r864": {
   "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"
  },
  "r865": {
   "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"
  },
  "r866": {
   "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"
  },
  "r867": {
   "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"
  },
  "r868": {
   "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"
  },
  "r869": {
   "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"
  },
  "r870": {
   "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"
  },
  "r871": {
   "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"
  },
  "r872": {
   "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"
  },
  "r873": {
   "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"
  },
  "r874": {
   "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"
  },
  "r875": {
   "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"
  },
  "r876": {
   "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"
  },
  "r877": {
   "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"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r880": {
   "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"
  },
  "r881": {
   "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"
  },
  "r882": {
   "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"
  },
  "r883": {
   "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"
  },
  "r884": {
   "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"
  },
  "r885": {
   "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"
  },
  "r886": {
   "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"
  },
  "r887": {
   "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"
  },
  "r888": {
   "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"
  },
  "r889": {
   "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"
  },
  "r890": {
   "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"
  },
  "r891": {
   "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"
  },
  "r892": {
   "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"
  },
  "r893": {
   "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"
  },
  "r894": {
   "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"
  },
  "r895": {
   "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"
  },
  "r896": {
   "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"
  },
  "r897": {
   "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"
  },
  "r898": {
   "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"
  },
  "r899": {
   "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"
  },
  "r900": {
   "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"
  },
  "r901": {
   "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"
  },
  "r902": {
   "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/2147483147/928-340-50-1"
  },
  "r903": {
   "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/2147479853/942-210-S99-1"
  },
  "r904": {
   "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/2147479853/942-210-S99-1"
  },
  "r905": {
   "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(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r906": {
   "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/2147483589/942-220-S99-1"
  },
  "r907": {
   "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/2147483589/942-220-S99-1"
  },
  "r908": {
   "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/2147481160/942-230-45-1"
  },
  "r909": {
   "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/2147479557/942-235-S99-1"
  },
  "r910": {
   "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/2147480832/942-320-50-2"
  },
  "r911": {
   "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/2147480832/942-320-50-3"
  },
  "r912": {
   "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/2147480832/942-320-50-3"
  },
  "r913": {
   "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/2147480832/942-320-50-3"
  },
  "r914": {
   "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/2147480832/942-320-50-3"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r916": {
   "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/2147480832/942-320-50-3A"
  },
  "r917": {
   "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/2147480832/942-320-50-3A"
  },
  "r918": {
   "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/2147480832/942-320-50-3A"
  },
  "r919": {
   "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/2147480832/942-320-50-3A"
  },
  "r920": {
   "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/2147480842/942-360-50-1"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r923": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r924": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1A"
  },
  "r928": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1B"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1D"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1F"
  },
  "r931": {
   "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"
  },
  "r932": {
   "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(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r933": {
   "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/2147479440/944-210-S99-1"
  },
  "r934": {
   "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/2147479440/944-210-S99-1"
  },
  "r935": {
   "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/2147479440/944-210-S99-1"
  },
  "r936": {
   "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/2147479440/944-210-S99-1"
  },
  "r937": {
   "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)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r938": {
   "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/2147479440/944-210-S99-1"
  },
  "r939": {
   "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/2147479440/944-210-S99-1"
  },
  "r940": {
   "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/2147479440/944-210-S99-1"
  },
  "r941": {
   "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/2147479440/944-210-S99-1"
  },
  "r942": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r943": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r944": {
   "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/2147479440/944-210-S99-1"
  },
  "r945": {
   "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(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r946": {
   "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/2147483586/944-220-S99-1"
  },
  "r947": {
   "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/2147483586/944-220-S99-1"
  },
  "r948": {
   "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/2147483586/944-220-S99-1"
  },
  "r949": {
   "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/2147483586/944-220-S99-1"
  },
  "r950": {
   "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/2147483586/944-220-S99-1"
  },
  "r951": {
   "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/2147483586/944-220-S99-1"
  },
  "r952": {
   "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/2147483586/944-220-S99-1"
  },
  "r953": {
   "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(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r954": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r955": {
   "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(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r956": {
   "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/2147483586/944-220-S99-1"
  },
  "r957": {
   "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"
  },
  "r958": {
   "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"
  },
  "r959": {
   "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"
  },
  "r960": {
   "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"
  },
  "r961": {
   "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"
  },
  "r962": {
   "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"
  },
  "r963": {
   "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"
  },
  "r964": {
   "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"
  },
  "r965": {
   "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"
  },
  "r966": {
   "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"
  },
  "r967": {
   "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"
  },
  "r968": {
   "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"
  },
  "r969": {
   "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"
  },
  "r970": {
   "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"
  },
  "r971": {
   "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"
  },
  "r972": {
   "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"
  },
  "r973": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-3"
  },
  "r974": {
   "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"
  },
  "r975": {
   "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(f)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r976": {
   "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(f)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r977": {
   "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(f)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r978": {
   "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(h)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r979": {
   "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(i)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r980": {
   "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(i)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r981": {
   "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"
  },
  "r982": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-13"
  },
  "r983": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-2"
  },
  "r984": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-5"
  },
  "r985": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-6"
  },
  "r986": {
   "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/2147480767/946-205-45-3"
  },
  "r987": {
   "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/2147480767/946-205-45-4"
  },
  "r988": {
   "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/2147480555/946-210-45-4"
  },
  "r989": {
   "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/2147480524/946-210-50-6"
  },
  "r990": {
   "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/2147480524/946-210-50-6"
  },
  "r991": {
   "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/2147480524/946-210-50-6"
  },
  "r992": {
   "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/2147479617/946-210-S99-1"
  },
  "r993": {
   "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(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r994": {
   "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/2147479617/946-210-S99-1"
  },
  "r995": {
   "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/2147479617/946-210-S99-1"
  },
  "r996": {
   "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/2147479617/946-210-S99-1"
  },
  "r997": {
   "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/2147479617/946-210-S99-1"
  },
  "r998": {
   "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/2147479617/946-210-S99-1"
  },
  "r999": {
   "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/2147479617/946-210-S99-1"
  },
  "r1000": {
   "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/2147479617/946-210-S99-1"
  },
  "r1001": {
   "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/2147479617/946-210-S99-1"
  },
  "r1002": {
   "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/2147479617/946-210-S99-1"
  },
  "r1003": {
   "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/2147479617/946-210-S99-1"
  },
  "r1004": {
   "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/2147479617/946-210-S99-1"
  },
  "r1005": {
   "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/2147479617/946-210-S99-1"
  },
  "r1006": {
   "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/2147479617/946-210-S99-1"
  },
  "r1007": {
   "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/2147479617/946-210-S99-1"
  },
  "r1008": {
   "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/2147479617/946-210-S99-1"
  },
  "r1009": {
   "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/2147479617/946-210-S99-1"
  },
  "r1010": {
   "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/2147479617/946-210-S99-1"
  },
  "r1011": {
   "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/2147479617/946-210-S99-1"
  },
  "r1012": {
   "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/2147479617/946-210-S99-1"
  },
  "r1013": {
   "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/2147479617/946-210-S99-1"
  },
  "r1014": {
   "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/2147479617/946-210-S99-1"
  },
  "r1015": {
   "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/2147479617/946-210-S99-1"
  },
  "r1016": {
   "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/2147479617/946-210-S99-1"
  },
  "r1017": {
   "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/2147479617/946-210-S99-1"
  },
  "r1018": {
   "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/2147479617/946-210-S99-2"
  },
  "r1019": {
   "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/2147479617/946-210-S99-2"
  },
  "r1020": {
   "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/2147483581/946-220-45-3"
  },
  "r1021": {
   "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/2147483581/946-220-45-7"
  },
  "r1022": {
   "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)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1023": {
   "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/2147483575/946-220-S99-1"
  },
  "r1024": {
   "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/2147483575/946-220-S99-1"
  },
  "r1025": {
   "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)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1026": {
   "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)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1027": {
   "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)(g)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1028": {
   "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(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r1029": {
   "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/2147483575/946-220-S99-1"
  },
  "r1030": {
   "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/2147483575/946-220-S99-1"
  },
  "r1031": {
   "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/2147483575/946-220-S99-1"
  },
  "r1032": {
   "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/2147483575/946-220-S99-1"
  },
  "r1033": {
   "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/2147483575/946-220-S99-1"
  },
  "r1034": {
   "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/2147483575/946-220-S99-1"
  },
  "r1035": {
   "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/2147483575/946-220-S99-1"
  },
  "r1036": {
   "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/2147483575/946-220-S99-1"
  },
  "r1037": {
   "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/2147483575/946-220-S99-1"
  },
  "r1038": {
   "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/2147483575/946-220-S99-1"
  },
  "r1039": {
   "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/2147483575/946-220-S99-1"
  },
  "r1040": {
   "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/2147483575/946-220-S99-1"
  },
  "r1041": {
   "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/2147483575/946-220-S99-1"
  },
  "r1042": {
   "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/2147483575/946-220-S99-3"
  },
  "r1043": {
   "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/2147483575/946-220-S99-3"
  },
  "r1044": {
   "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/2147483575/946-220-S99-3"
  },
  "r1045": {
   "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/2147483575/946-220-S99-3"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r1048": {
   "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/2147480032/946-320-S99-1"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "12",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-12"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-19"
  },
  "r1051": {
   "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/2147480032/946-320-S99-2"
  },
  "r1052": {
   "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/2147480032/946-320-S99-3"
  },
  "r1053": {
   "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/2147480032/946-320-S99-3"
  },
  "r1054": {
   "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/2147480032/946-320-S99-5"
  },
  "r1055": {
   "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/2147480032/946-320-S99-5"
  },
  "r1056": {
   "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/2147480032/946-320-S99-5"
  },
  "r1057": {
   "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/2147480032/946-320-S99-5A"
  },
  "r1058": {
   "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/2147480032/946-320-S99-5B"
  },
  "r1059": {
   "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/2147480032/946-320-S99-5B"
  },
  "r1060": {
   "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/2147480032/946-320-S99-5B"
  },
  "r1061": {
   "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/2147480032/946-320-S99-5C"
  },
  "r1062": {
   "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/2147480032/946-320-S99-5C"
  },
  "r1063": {
   "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/2147480032/946-320-S99-6"
  },
  "r1064": {
   "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/2147480032/946-320-S99-6"
  },
  "r1065": {
   "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/2147480032/946-320-S99-6"
  },
  "r1066": {
   "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/2147480032/946-320-S99-6"
  },
  "r1067": {
   "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 E)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1068": {
   "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 E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1069": {
   "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 E)(Footnote 6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1070": {
   "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/2147481004/946-505-50-2"
  },
  "r1071": {
   "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/2147481852/948-310-45-1"
  },
  "r1072": {
   "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(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r1073": {
   "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/2147480632/954-210-45-4"
  },
  "r1074": {
   "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/2147480602/954-210-50-2"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "440",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480327/954-440-50-1"
  },
  "r1076": {
   "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/2147479438/970-360-S99-1"
  },
  "r1077": {
   "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/2147479438/970-360-S99-1"
  },
  "r1078": {
   "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/2147479438/970-360-S99-1"
  },
  "r1079": {
   "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/2147479438/970-360-S99-1"
  },
  "r1080": {
   "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/2147479438/970-360-S99-1"
  },
  "r1081": {
   "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/2147479438/970-360-S99-1"
  },
  "r1082": {
   "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/2147479438/970-360-S99-1"
  },
  "r1083": {
   "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/2147479438/970-360-S99-1"
  },
  "r1084": {
   "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(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1085": {
   "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(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1086": {
   "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/2147482856/976-310-50-1"
  },
  "r1087": {
   "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/2147482707/978-310-50-1"
  },
  "r1088": {
   "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"
  },
  "r1089": {
   "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"
  },
  "r1090": {
   "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"
  },
  "r1091": {
   "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"
  },
  "r1092": {
   "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"
  },
  "r1093": {
   "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"
  },
  "r1094": {
   "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"
  },
  "r1095": {
   "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"
  },
  "r1096": {
   "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"
  },
  "r1097": {
   "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"
  },
  "r1098": {
   "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"
  },
  "r1099": {
   "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"
  },
  "r1100": {
   "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"
  },
  "r1101": {
   "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"
  },
  "r1102": {
   "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"
  },
  "r1103": {
   "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"
  },
  "r1104": {
   "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"
  },
  "r1105": {
   "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"
  },
  "r1106": {
   "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"
  },
  "r1107": {
   "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"
  },
  "r1108": {
   "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"
  },
  "r1109": {
   "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"
  },
  "r1110": {
   "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"
  },
  "r1111": {
   "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"
  },
  "r1112": {
   "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"
  },
  "r1113": {
   "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"
  },
  "r1114": {
   "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"
  },
  "r1115": {
   "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"
  },
  "r1116": {
   "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"
  },
  "r1117": {
   "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"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-18"
  },
  "r1119": {
   "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"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1122": {
   "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"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1125": {
   "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"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r1127": {
   "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"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r1129": {
   "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"
  },
  "r1130": {
   "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"
  },
  "r1131": {
   "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"
  },
  "r1132": {
   "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"
  },
  "r1133": {
   "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"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481420/860-30-50-1A"
  },
  "r1135": {
   "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"
  },
  "r1136": {
   "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/2147480524/946-210-50-1"
  },
  "r1137": {
   "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/2147480524/946-210-50-6"
  },
  "r1138": {
   "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/2147480493/946-210-55-1"
  },
  "r1139": {
   "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/2147480348/946-230-55-1"
  },
  "r1140": {
   "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/2147480833/946-310-45-1"
  },
  "r1141": {
   "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/2147480032/946-320-S99-1"
  },
  "r1142": {
   "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/2147480032/946-320-S99-2"
  },
  "r1143": {
   "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/2147480032/946-320-S99-3"
  },
  "r1144": {
   "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/2147480032/946-320-S99-5C"
  },
  "r1145": {
   "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/2147480032/946-320-S99-5C"
  },
  "r1146": {
   "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/2147480032/946-320-S99-6"
  },
  "r1147": {
   "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/2147480167/946-830-55-10"
  },
  "r1148": {
   "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/2147480167/946-830-55-11"
  },
  "r1149": {
   "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/2147480167/946-830-55-12"
  },
  "r1150": {
   "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(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r1151": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r1152": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1153": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r1154": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r1155": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r1156": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r1157": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r1158": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r1159": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r1160": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r1161": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r1162": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r1163": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r1164": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r1165": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r1166": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r1167": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r1168": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii",
   "Section": "6"
  },
  "r1169": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r1170": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r1171": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1172": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1173": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1174": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1175": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1176": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1177": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1182": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1183": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1184": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1185": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1186": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1187": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1188": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1189": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r1190": {
   "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"
  },
  "r1191": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r1192": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r1193": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r1198": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r1200": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r1202": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r1203": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r1204": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r1205": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r1206": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r1207": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r1208": {
   "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"
  },
  "r1209": {
   "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"
  },
  "r1210": {
   "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"
  },
  "r1211": {
   "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"
  },
  "r1212": {
   "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"
  },
  "r1213": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r1214": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r1215": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r1216": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r1217": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r1218": {
   "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"
  },
  "r1219": {
   "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"
  },
  "r1220": {
   "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"
  },
  "r1221": {
   "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"
  },
  "r1222": {
   "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"
  },
  "r1223": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r1224": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r1225": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r1226": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r1227": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r1228": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r1229": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r1230": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1231": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r1232": {
   "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"
  },
  "r1233": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-11"
  },
  "r1234": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r1235": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r1236": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1237": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1238": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1239": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1240": {
   "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"
  },
  "r1241": {
   "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"
  },
  "r1242": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r1243": {
   "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"
  },
  "r1244": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r1245": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r1246": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1247": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r1248": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1249": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r1250": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r1251": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r1252": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r1253": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r1254": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r1255": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1256": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r1257": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r1258": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r1259": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r1260": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r1261": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r1262": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1263": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "(a)",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r1264": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1265": {
   "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"
  },
  "r1266": {
   "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(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1267": {
   "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"
  },
  "r1268": {
   "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"
  },
  "r1269": {
   "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"
  },
  "r1270": {
   "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"
  },
  "r1271": {
   "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"
  },
  "r1272": {
   "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"
  },
  "r1273": {
   "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(b)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r1274": {
   "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"
  },
  "r1275": {
   "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"
  },
  "r1276": {
   "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"
  },
  "r1277": {
   "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"
  },
  "r1278": {
   "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"
  },
  "r1279": {
   "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"
  },
  "r1280": {
   "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"
  },
  "r1281": {
   "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"
  },
  "r1282": {
   "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(h)(1)(Note 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1283": {
   "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(k)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1284": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1285": {
   "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"
  },
  "r1286": {
   "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"
  },
  "r1287": {
   "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"
  },
  "r1288": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1289": {
   "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"
  },
  "r1290": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1291": {
   "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"
  },
  "r1292": {
   "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"
  },
  "r1293": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1294": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1295": {
   "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"
  },
  "r1296": {
   "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"
  },
  "r1297": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1298": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310-30/tableOfContent"
  },
  "r1299": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r1300": {
   "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"
  },
  "r1301": {
   "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"
  },
  "r1302": {
   "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"
  },
  "r1303": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1304": {
   "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"
  },
  "r1305": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1306": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1307": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1308": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1309": {
   "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"
  },
  "r1310": {
   "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"
  },
  "r1311": {
   "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"
  },
  "r1312": {
   "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"
  },
  "r1313": {
   "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"
  },
  "r1314": {
   "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"
  },
  "r1315": {
   "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"
  },
  "r1316": {
   "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"
  },
  "r1317": {
   "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"
  },
  "r1318": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1319": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1320": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//326-20/tableOfContent"
  },
  "r1321": {
   "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"
  },
  "r1322": {
   "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"
  },
  "r1323": {
   "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"
  },
  "r1324": {
   "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"
  },
  "r1325": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//326-30/tableOfContent"
  },
  "r1326": {
   "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"
  },
  "r1327": {
   "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"
  },
  "r1328": {
   "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"
  },
  "r1329": {
   "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"
  },
  "r1330": {
   "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"
  },
  "r1331": {
   "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"
  },
  "r1332": {
   "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"
  },
  "r1333": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//450/tableOfContent"
  },
  "r1334": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1335": {
   "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"
  },
  "r1336": {
   "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"
  },
  "r1337": {
   "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)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1338": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1339": {
   "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"
  },
  "r1340": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1341": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1342": {
   "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"
  },
  "r1343": {
   "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"
  },
  "r1344": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1345": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1346": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1347": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r1350": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r1351": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-6"
  },
  "r1352": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1353": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1354": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1355": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1356": {
   "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"
  },
  "r1357": {
   "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"
  },
  "r1358": {
   "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"
  },
  "r1359": {
   "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"
  },
  "r1360": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480682/815-20-25-6A"
  },
  "r1361": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1362": {
   "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"
  },
  "r1363": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1364": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r1365": {
   "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"
  },
  "r1366": {
   "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"
  },
  "r1367": {
   "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"
  },
  "r1368": {
   "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"
  },
  "r1369": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1370": {
   "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"
  },
  "r1371": {
   "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"
  },
  "r1372": {
   "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"
  },
  "r1373": {
   "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"
  },
  "r1374": {
   "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"
  },
  "r1375": {
   "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"
  },
  "r1376": {
   "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"
  },
  "r1377": {
   "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"
  },
  "r1378": {
   "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"
  },
  "r1379": {
   "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/2147479853/942-210-S99-1"
  },
  "r1380": {
   "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/2147479853/942-210-S99-1"
  },
  "r1381": {
   "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/2147479853/942-210-S99-1"
  },
  "r1382": {
   "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/2147481160/942-230-45-1"
  },
  "r1383": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3"
  },
  "r1384": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-3A"
  },
  "r1385": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1"
  },
  "r1386": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480696/942-505-50-1B"
  },
  "r1387": {
   "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/2147479440/944-210-S99-1"
  },
  "r1388": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1389": {
   "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/2147479440/944-210-S99-1"
  },
  "r1390": {
   "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"
  },
  "r1391": {
   "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/2147480767/946-205-45-4"
  },
  "r1392": {
   "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/2147479617/946-210-S99-1"
  },
  "r1393": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r1394": {
   "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/2147483581/946-220-45-3"
  },
  "r1395": {
   "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/2147483575/946-220-S99-1"
  },
  "r1396": {
   "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/2147483575/946-220-S99-3"
  },
  "r1397": {
   "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/2147483575/946-220-S99-3"
  },
  "r1398": {
   "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/2147480833/946-310-45-1"
  },
  "r1399": {
   "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/2147480228/946-830-45-39"
  },
  "r1400": {
   "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(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r1401": {
   "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(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  }
 }
}
