{
 "version": "2.2",
 "instance": {
  "mbcn20231231d_10k.htm": {
   "nsprefix": "mbcn",
   "nsuri": "http://middlefieldbank.bank/20231231",
   "dts": {
    "schema": {
     "local": [
      "mbcn-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/net-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/currency/2023/currency-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd",
      "https://xbrl.sec.gov/exch/2023/exch-2023.xsd",
      "https://xbrl.sec.gov/naics/2023/naics-2023.xsd",
      "https://xbrl.sec.gov/sic/2023/sic-2023.xsd",
      "https://xbrl.sec.gov/stpr/2023/stpr-2023.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "mbcn-20231231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "mbcn-20231231_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "mbcn-20231231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "mbcn-20231231_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "mbcn20231231d_10k.htm"
     ]
    }
   },
   "keyStandard": 512,
   "keyCustom": 103,
   "axisStandard": 37,
   "axisCustom": 0,
   "memberStandard": 60,
   "memberCustom": 40,
   "hidden": {
    "total": 44,
    "http://middlefieldbank.bank/20231231": 5,
    "http://fasb.org/us-gaap/2023": 29,
    "http://xbrl.sec.gov/ecd/2023": 4,
    "http://xbrl.sec.gov/dei/2023": 6
   },
   "contextCount": 481,
   "entityCount": 1,
   "segmentCount": 104,
   "elementCount": 896,
   "unitCount": 7,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2023": 1859,
    "http://xbrl.sec.gov/dei/2023": 37,
    "http://xbrl.sec.gov/ecd/2023": 5,
    "http://fasb.org/srt/2023": 3
   },
   "report": {
    "R1": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information",
     "longName": "000 - Document - Document And Entity Information",
     "shortName": "Document And Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "b",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "b",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
     "longName": "001 - Statement - Consolidated Balance Sheet",
     "shortName": "Consolidated Balance Sheet",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FederalFundsSold",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
     "longName": "002 - Statement - Consolidated Balance Sheet (Parentheticals)",
     "shortName": "Consolidated Balance Sheet (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": null,
     "uniqueAnchor": null
    },
    "R4": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
     "longName": "003 - Statement - Consolidated Income Statement",
     "shortName": "Consolidated Income Statement",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R5": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
     "longName": "004 - Statement - Consolidated Statement of Comprehensive Income (Loss)",
     "shortName": "Consolidated Statement of Comprehensive Income (Loss)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
     "longName": "005 - Statement - Consolidated Statement of Changes in Stockholders' Equity",
     "shortName": "Consolidated Statement of Changes in Stockholders' Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "i_2021-12-31_StatementEquityComponentsAxis-CommonStockMember",
      "name": "us-gaap:CommonStockSharesOutstanding",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2021-12-31_StatementEquityComponentsAxis-CommonStockMember",
      "name": "us-gaap:CommonStockSharesOutstanding",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
     "longName": "006 - Statement - Consolidated Statement of Changes in Stockholders' Equity (Parentheticals)",
     "shortName": "Consolidated Statement of Changes in Stockholders' Equity (Parentheticals)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": null,
     "uniqueAnchor": null
    },
    "R8": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
     "longName": "007 - Statement - Consolidated Statement of Cash Flows",
     "shortName": "Consolidated Statement of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:AccretionAmortizationOfDiscountsAndPremiumsInvestments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R9": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
     "longName": "008 - Disclosure - Note 1 - Summary of Significant Accounting Policies",
     "shortName": "Note 1 - Summary of Significant Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
     "longName": "009 - Disclosure - Note 2 - Revenue Recognition",
     "shortName": "Note 2 - Revenue Recognition",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
     "longName": "010 - Disclosure - Note 3 - Earnings Per Share",
     "shortName": "Note 3 - Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
     "longName": "011 - Disclosure - Note 4 - Accumulated Other Comprehensive Income (Loss)",
     "shortName": "Note 4 - Accumulated Other Comprehensive Income (Loss)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
     "longName": "012 - Disclosure - Note 5 - Fair Value Measurements",
     "shortName": "Note 5 - Fair Value Measurements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
     "longName": "013 - Disclosure - Note 6 - Investments and Equity Securities",
     "shortName": "Note 6 - Investments and Equity Securities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
     "longName": "014 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
     "longName": "015 - Disclosure - Note 8 - Premises and Equipment",
     "shortName": "Note 8 - Premises and Equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
     "longName": "016 - Disclosure - Note 9 - Goodwill and Intangible Assets",
     "shortName": "Note 9 - Goodwill and Intangible Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
     "longName": "017 - Disclosure - Note 10 - Accrued Interest Receivable and Other Assets",
     "shortName": "Note 10 - Accrued Interest Receivable and Other Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
     "longName": "018 - Disclosure - Note 11 - Deposits",
     "shortName": "Note 11 - Deposits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
     "longName": "019 - Disclosure - Note 12 - Short-term Borrowings",
     "shortName": "Note 12 - Short-term Borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
     "longName": "020 - Disclosure - Note 13 - Other Borrowings",
     "shortName": "Note 13 - Other Borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:OtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:OtherBorrowingsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
     "longName": "021 - Disclosure - Note 14 - Accrued Interest Payable and Other Liabilities",
     "shortName": "Note 14 - Accrued Interest Payable and Other Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherLiabilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherLiabilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
     "longName": "022 - Disclosure - Note 15 - Income Taxes",
     "shortName": "Note 15 - Income Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
     "longName": "023 - Disclosure - Note 16 - Employee Benefits",
     "shortName": "Note 16 - Employee Benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
     "longName": "024 - Disclosure - Note 17 - Commitments and Contingent Liabilities",
     "shortName": "Note 17 - Commitments and Contingent Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:LeaseDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:LeaseDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
     "longName": "025 - Disclosure - Note 18 - Regulatory Restrictions",
     "shortName": "Note 18 - Regulatory Restrictions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BankingAndThriftDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BankingAndThriftDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
     "longName": "026 - Disclosure - Note 19 - Regulatory Capital",
     "shortName": "Note 19 - Regulatory Capital",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
     "longName": "027 - Disclosure - Note 20 - Related Party Transaction",
     "shortName": "Note 20 - Related Party Transaction",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
     "longName": "028 - Disclosure - Note 21 - Business Combination",
     "shortName": "Note 21 - Business Combination",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
     "longName": "029 - Disclosure - Note 22 - Parent Company",
     "shortName": "Note 22 - Parent Company",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
     "longName": "030 - Disclosure - Note 23 - Subsequent Events",
     "shortName": "Note 23 - Subsequent Events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "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": "32",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "ecd:MtrlTermsOfTrdArrTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "ecd:MtrlTermsOfTrdArrTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies",
     "longName": "995477 - Disclosure - Significant Accounting Policies (Policies)",
     "shortName": "Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "33",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
     "longName": "995478 - Disclosure - Note 1 - Summary of Significant Accounting Policies (Tables)",
     "shortName": "Note 1 - Summary of Significant Accounting Policies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "34",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
     "longName": "995479 - Disclosure - Note 2 - Revenue Recognition (Tables)",
     "shortName": "Note 2 - Revenue Recognition (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
     "longName": "995480 - Disclosure - Note 3 - Earnings Per Share (Tables)",
     "shortName": "Note 3 - Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
     "longName": "995481 - Disclosure - Note 4 - Accumulated Other Comprehensive Income (Loss) (Tables)",
     "shortName": "Note 4 - Accumulated Other Comprehensive Income (Loss) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
     "longName": "995482 - Disclosure - Note 5 - Fair Value Measurements (Tables)",
     "shortName": "Note 5 - Fair Value Measurements (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
     "longName": "995483 - Disclosure - Note 6 - Investments and Equity Securities (Tables)",
     "shortName": "Note 6 - Investments and Equity Securities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
     "longName": "995484 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses (Tables)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:ScheduleOfFinancingReceivableBySegmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:ScheduleOfFinancingReceivableBySegmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
     "longName": "995485 - Disclosure - Note 8 - Premises and Equipment (Tables)",
     "shortName": "Note 8 - Premises and Equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables",
     "longName": "995486 - Disclosure - Note 9 - Goodwill and Intangible Assets (Tables)",
     "shortName": "Note 9 - Goodwill and Intangible Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfGoodwillTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfGoodwillTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
     "longName": "995487 - Disclosure - Note 10 - Accrued Interest Receivable and Other Assets (Tables)",
     "shortName": "Note 10 - Accrued Interest Receivable and Other Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
     "longName": "995488 - Disclosure - Note 11 - Deposits (Tables)",
     "shortName": "Note 11 - Deposits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:TimeDepositMaturitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:TimeDepositMaturitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
     "longName": "995489 - Disclosure - Note 12 - Short-term Borrowings (Tables)",
     "shortName": "Note 12 - Short-term Borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
     "longName": "995490 - Disclosure - Note 13 - Other Borrowings (Tables)",
     "shortName": "Note 13 - Other Borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
     "longName": "995491 - Disclosure - Note 14 - Accrued Interest Payable and Other Liabilities (Tables)",
     "shortName": "Note 14 - Accrued Interest Payable and Other Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
     "longName": "995492 - Disclosure - Note 15 - Income Taxes (Tables)",
     "shortName": "Note 15 - Income Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
     "longName": "995493 - Disclosure - Note 16 - Employee Benefits (Tables)",
     "shortName": "Note 16 - Employee Benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
     "longName": "995494 - Disclosure - Note 17 - Commitments and Contingent Liabilities (Tables)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
     "longName": "995495 - Disclosure - Note 19 - Regulatory Capital (Tables)",
     "shortName": "Note 19 - Regulatory Capital (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
     "longName": "995496 - Disclosure - Note 20 - Related Party Transaction (Tables)",
     "shortName": "Note 20 - Related Party Transaction (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
     "longName": "995497 - Disclosure - Note 21 - Business Combination (Tables)",
     "shortName": "Note 21 - Business Combination (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
     "longName": "995498 - Disclosure - Note 22 - Parent Company (Tables)",
     "shortName": "Note 22 - Parent Company (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
     "longName": "995499 - Disclosure - Note 1 - Summary of Significant Accounting Policies (Details Textual)",
     "shortName": "Note 1 - Summary of Significant Accounting Policies (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:ServicingAssetAtFairValueAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:LoansAndLeasesReceivableMortgageBankingActivitiesPolicy",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:MortgageLoansInProcessOfForeclosureAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:RealEstatePolicyTextBlock",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R56": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
     "longName": "995500 - Disclosure - Note 1 - Summary of Significant Accounting Policies - Impact of Adoption of ASU (Details)",
     "shortName": "Note 1 - Summary of Significant Accounting Policies - Impact of Adoption of ASU (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-01-01_CumulativeEffectPeriodOfAdoptionAxis-CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
       "us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual",
     "longName": "995501 - Disclosure - Note 2 - Revenue Recognition (Details Textual)",
     "shortName": "Note 2 - Revenue Recognition (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:RevenueFromInterestIncomeAndNoninterestIncomePercent",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "p",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:RevenueFromInterestIncomeAndNoninterestIncomePercent",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "p",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
     "longName": "995502 - Disclosure - Note 2 - Revenue Recognition - Disaggregation of Revenue (Details)",
     "shortName": "Note 2 - Revenue Recognition - Disaggregation of Revenue (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:EquitySecuritiesFvNiUnrealizedGainLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:MiscellaneousFeeIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual",
     "longName": "995503 - Disclosure - Note 3 - Earnings Per Share (Details Textual)",
     "shortName": "Note 3 - Earnings Per Share (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "i_2023-12-31_AwardTypeAxis-RestrictedStockMember",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_AwardTypeAxis-RestrictedStockMember",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
     "longName": "995504 - Disclosure - Note 3 - Earnings Per Share - Shares Used in Calculation of Earnings Per Share (Details)",
     "shortName": "Note 3 - Earnings Per Share - Shares Used in Calculation of Earnings Per Share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:WeightedAverageNumberOfSharesIssuedBasic",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:WeightedAverageNumberOfSharesIssuedBasic",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual",
     "longName": "995505 - Disclosure - Note 4 - Accumulated Other Comprehensive Income (Loss) (Details Textual)",
     "shortName": "Note 4 - Accumulated Other Comprehensive Income (Loss) (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
     "longName": "995506 - Disclosure - Note 4 - Accumulated Other Comprehensive Income (Loss) - Changes in Accumulated Other Comprehensive Income (Loss) by Component, Net of Tax (Details)",
     "shortName": "Note 4 - Accumulated Other Comprehensive Income (Loss) - Changes in Accumulated Other Comprehensive Income (Loss) by Component, Net of Tax (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2021-12-31_StatementEquityComponentsAxis-AccumulatedNetUnrealizedInvestmentGainLossMember",
      "name": "us-gaap:StockholdersEquity",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "ix:continuation",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R63": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
     "longName": "995507 - Disclosure - Note 5 - Fair Value Measurements (Details Textual)",
     "shortName": "Note 5 - Fair Value Measurements (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:EstimatedSellingCostsOfImpairedLoans",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:EstimatedSellingCostsOfImpairedLoans",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
     "longName": "995508 - Disclosure - Note 5 - Fair Value Measurements - Assets Measured on a Recurring Basis (Details)",
     "shortName": "Note 5 - Fair Value Measurements - Assets Measured on a Recurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_FairValueByMeasurementFrequencyAxis-FairValueMeasurementsRecurringMember",
      "name": "us-gaap:EquitySecuritiesFvNi",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R65": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
     "longName": "995509 - Disclosure - Note 5 - Fair Value Measurements - Fair Value Reconciliation of Level 3 Assets (Details)",
     "shortName": "Note 5 - Fair Value Measurements - Fair Value Reconciliation of Level 3 Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "i_2022-12-31_FairValueByLiabilityClassAxis-SubordinatedDebtObligationsMember",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2021-12-31_FairValueByLiabilityClassAxis-SubordinatedDebtObligationsMember",
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R66": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
     "longName": "995510 - Disclosure - Note 5 - Fair Value Measurements - Assets Measured on a Nonrecurring Basis (Details)",
     "shortName": "Note 5 - Fair Value Measurements - Assets Measured on a Nonrecurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "i_2023-12-31_FairValueByMeasurementFrequencyAxis-FairValueMeasurementsRecurringMember",
      "name": "mbcn:ImpairedLoansReceivableFairValueDisclosure",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisValuationTechniquesTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_FairValueByMeasurementFrequencyAxis-FairValueMeasurementsRecurringMember",
      "name": "mbcn:ImpairedLoansReceivableFairValueDisclosure",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisValuationTechniquesTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
     "longName": "995511 - Disclosure - Note 5 - Fair Value Measurements - Additional Quantitative Information About Assets Measured at Fair Value on Non-recurring Basis (Details)",
     "shortName": "Note 5 - Fair Value Measurements - Additional Quantitative Information About Assets Measured at Fair Value on Non-recurring Basis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "i_2022-12-31_FairValueByMeasurementFrequencyAxis-FairValueMeasurementsNonrecurringMember",
      "name": "mbcn:ImpairedLoansReceivableFairValueDisclosure",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "ix:continuation",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_FairValueByFairValueHierarchyLevelAxis-FairValueInputsLevel3Member_FairValueByMeasurementFrequencyAxis-FairValueMeasurementsNonrecurringMember_ValuationTechniqueAxis-AppraisalOfCollateralMember",
      "name": "mbcn:ImpairedLoansReceivableFairValueDisclosure",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R68": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
     "longName": "995512 - Disclosure - Note 5 - Fair Value Measurements - Estimated Fair Value of the Company's Financial Instruments (Details)",
     "shortName": "Note 5 - Fair Value Measurements - Estimated Fair Value of the Company's Financial Instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:ServicingAssetAtFairValueAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:LoansAndLeasesReceivableMortgageBankingActivitiesPolicy",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_FairValueByMeasurementBasisAxis-CarryingReportedAmountFairValueDisclosureMember",
      "name": "us-gaap:LoansReceivableFairValueDisclosure",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R69": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual",
     "longName": "995513 - Disclosure - Note 6 - Investments and Equity Securities (Details Textual)",
     "shortName": "Note 6 - Investments and Equity Securities (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:ProceedsFromSaleAndMaturityOfMarketableSecurities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:RealizedInvestmentGainsLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R70": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
     "longName": "995514 - Disclosure - Note 6 - Investments and Equity Securities - Amortized Cost and Fair Values of Securities Available for Sale (Details)",
     "shortName": "Note 6 - Investments and Equity Securities - Amortized Cost and Fair Values of Securities Available for Sale (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R71": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
     "longName": "995515 - Disclosure - Note 6 - Investments and Equity Securities - Amortized Cost and Fair Value of Debt Securities by Contractual Maturity (Details)",
     "shortName": "Note 6 - Investments and Equity Securities - Amortized Cost and Fair Value of Debt Securities by Contractual Maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
     "longName": "995516 - Disclosure - Note 6 - Investments and Equity Securities - Gross Unrealized Losses and Fair Value (Details)",
     "shortName": "Note 6 - Investments and Equity Securities - Gross Unrealized Losses and Fair Value (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:GainLossOnInvestmentsTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R73": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
     "longName": "995517 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses (Details Textual)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableDeferredIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:FinancingReceivableDeferredIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R74": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
     "longName": "995518 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Primary Segments of the Loan Portfolio (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Primary Segments of the Loan Portfolio (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R75": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
     "longName": "995519 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Allowance for Loan Losses (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Allowance for Loan Losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLossesRecovery",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfCreditLossesForFinancingReceivablesCurrentTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R76": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
     "longName": "995520 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Classes of the Loan Portfolio Summarized by Credit Quality (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Classes of the Loan Portfolio Summarized by Credit Quality (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:FinancingReceivableCreditQualityIndicatorsTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
     "longName": "995521 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Collateral-dependent Loans (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Collateral-dependent Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_CollateralAxis-RealEstateMember",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:ScheduleOfCollateralDependentLoansTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R78": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
     "longName": "995522 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Past Due Loans (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Past Due Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_FinancingReceivablesPeriodPastDueAxis-FinancialAssetNotPastDueMember",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R79": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
     "longName": "995523 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Nonaccrual Loans (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Nonaccrual Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FinancingReceivableNonaccrualNoAllowance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
     "longName": "995524 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Troubled Debt Restructurings (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Troubled Debt Restructurings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FinancingReceivableModificationsPostModificationRecordedInvestment2",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FinancingReceivableModificationsPostModificationRecordedInvestment2",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
     "longName": "995525 - Disclosure - Note 7 - Loans and Related Allowance for Loan and Lease Losses - Impaired Loans by Class (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Loan and Lease Losses - Impaired Loans by Class (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ImpairedFinancingReceivablesTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ImpairedFinancingReceivablesTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
     "longName": "995526 - Disclosure - Note 7 - Loans and Related Allowance for Loan and Lease Losses - Additional Information on Impaired Loans (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Loan and Lease Losses - Additional Information on Impaired Loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "d_2022-01-01_2022-12-31",
      "name": "us-gaap:ImpairedFinancingReceivableAverageRecordedInvestment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:ScheduleOfAdditionalInformationRelatedToImpairedLoansTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2022-01-01_2022-12-31",
      "name": "us-gaap:ImpairedFinancingReceivableAverageRecordedInvestment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:ScheduleOfAdditionalInformationRelatedToImpairedLoansTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
     "longName": "995527 - Disclosure - Note 7 - Loans and Related Allowance for Credit Losses - Loans Acquired (Details)",
     "shortName": "Note 7 - Loans and Related Allowance for Credit Losses - Loans Acquired (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2022-12-31_BusinessAcquisitionAxis-LibertyBancsharesIncMember_CreditLossStatusAxis-FinancialAssetAcquiredWithCreditDeteriorationMember",
      "name": "us-gaap:NotesReceivableGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:AcquiredLoansTableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual",
     "longName": "995528 - Disclosure - Note 8 - Premises and Equipment (Details Textual)",
     "shortName": "Note 8 - Premises and Equipment (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:Depreciation",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:Depreciation",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
     "longName": "995529 - Disclosure - Note 8 - Premises and Equipment - Major Classifications of Premises and Equipment (Details)",
     "shortName": "Note 8 - Premises and Equipment - Major Classifications of Premises and Equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LandAndLandImprovements",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LandAndLandImprovements",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual",
     "longName": "995530 - Disclosure - Note 9 - Goodwill and Intangible Assets (Details Textual)",
     "shortName": "Note 9 - Goodwill and Intangible Assets (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FiniteLivedCoreDepositsGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FiniteLivedCoreDepositsGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details",
     "longName": "995531 - Disclosure - Note 9 - Goodwill and Intangible Assets - Goodwill (Details)",
     "shortName": "Note 9 - Goodwill and Intangible Assets - Goodwill (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:Goodwill",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2022-01-01_2022-12-31",
      "name": "us-gaap:GoodwillAcquiredDuringPeriod",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfGoodwillTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R88": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
     "longName": "995532 - Disclosure - Note 9 - Goodwill and Intangible Assets - Estimated Aggregate Future Amortization Expense for Core Deposit Intangible Assets (Details)",
     "shortName": "Note 9 - Goodwill and Intangible Assets - Estimated Aggregate Future Amortization Expense for Core Deposit Intangible Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
     "longName": "995533 - Disclosure - Note 9 - Goodwill and Intangible Assets - Activity for Mortgage Servicing Rights (Details)",
     "shortName": "Note 9 - Goodwill and Intangible Assets - Activity for Mortgage Servicing Rights (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:ServicingAssetAtAmortizedValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2021-12-31",
      "name": "us-gaap:ServicingAssetAtAmortizedValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
     "longName": "995534 - Disclosure - Note 10 - Accrued Interest Receivable and Other Assets - Components of Accrued Interest Receivable and Other Assets (Details)",
     "shortName": "Note 10 - Accrued Interest Receivable and Other Assets - Components of Accrued Interest Receivable and Other Assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FederalHomeLoanBankStock",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "us-gaap:OtherAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:FederalHomeLoanBankStock",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "us-gaap:OtherAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R91": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual",
     "longName": "995535 - Disclosure - Note 11 - Deposits (Details Textual)",
     "shortName": "Note 11 - Deposits (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TimeDepositsAtOrAboveFDICInsuranceLimit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TimeDepositsAtOrAboveFDICInsuranceLimit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R92": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
     "longName": "995536 - Disclosure - Note 11 - Deposits - Scheduled Maturities of Time Deposits (Details)",
     "shortName": "Note 11 - Deposits - Scheduled Maturities of Time Deposits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TimeDepositMaturitiesYearOne",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:TimeDepositMaturitiesTableTextBlock",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TimeDepositMaturitiesYearOne",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:TimeDepositMaturitiesTableTextBlock",
       "us-gaap:DepositLiabilitiesDisclosuresTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R93": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual",
     "longName": "995537 - Disclosure - Note 12 - Short-term Borrowings (Details Textual)",
     "shortName": "Note 12 - Short-term Borrowings (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LineOfCredit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LineOfCredit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R94": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
     "longName": "995538 - Disclosure - Note 12 - Short-term Borrowings - Outstanding Balances and Related Information of Short-term Borrowings (Details)",
     "shortName": "Note 12 - Short-term Borrowings - Outstanding Balances and Related Information of Short-term Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:ShortTermBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:ShortTermBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "us-gaap:ShortTermDebtTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R95": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
     "longName": "995539 - Disclosure - Note 13 - Other Borrowings (Details Textual)",
     "shortName": "Note 13 - Other Borrowings (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "mbcn:IrrevocableLetterOfCreditMunicipalDeposits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "mbcn:IrrevocableLetterOfCreditMunicipalDeposits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
     "longName": "995540 - Disclosure - Note 13 - Other Borrowings - Other Borrowings (Details)",
     "shortName": "Note 13 - Other Borrowings - Other Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OtherBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_LongtermDebtTypeAxis-FinanceLeaseLiabilitiesMember",
      "name": "us-gaap:OtherBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
     "longName": "995541 - Disclosure - Note 13 - Other Borrowings - Maturities of Other Borrowings (Details)",
     "shortName": "Note 13 - Other Borrowings - Maturities of Other Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "mbcn:OtherBorrowingsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
     "longName": "995542 - Disclosure - Note 14 - Accrued Interest Payable and Other Liabilities - Components of Accrued Interest Payable and Other Liabilities (Details)",
     "shortName": "Note 14 - Accrued Interest Payable and Other Liabilities - Components of Accrued Interest Payable and Other Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OtherPostretirementDefinedBenefitPlanLiabilitiesCurrentAndNoncurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OtherPostretirementDefinedBenefitPlanLiabilitiesCurrentAndNoncurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R99": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual",
     "longName": "995543 - Disclosure - Note 15 - Income Taxes (Details Textual)",
     "shortName": "Note 15 - Income Taxes (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:DeferredTaxAssetsValuationAllowance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:DeferredTaxAssetsValuationAllowance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
     "longName": "995544 - Disclosure - Note 15 - Income Taxes - The Provision (Benefit) for Federal Income Taxes (Details)",
     "shortName": "Note 15 - Income Taxes - The Provision (Benefit) for Federal Income Taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R101": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
     "longName": "995545 - Disclosure - Note 15 - Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "shortName": "Note 15 - Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R102": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
     "longName": "995546 - Disclosure - Note 15 - Income Taxes - Tax Rate Reconciliation (Details)",
     "shortName": "Note 15 - Income Taxes - Tax Rate Reconciliation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R103": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
     "longName": "995547 - Disclosure - Note 16 - Employee Benefits (Details Textual)",
     "shortName": "Note 16 - Employee Benefits (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsAverageTotalShareholderAnnualReturnPercentage",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "1",
      "ancestors": [
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "mbcn:SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsAverageTotalShareholderAnnualReturnPercentage",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "1",
      "ancestors": [
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R104": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
     "longName": "995548 - Disclosure - Note 16 - Employee Benefits - Activity Related to Restricted Stock Units Awarded (Details)",
     "shortName": "Note 16 - Employee Benefits - Activity Related to Restricted Stock Units Awarded (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "i_2022-12-31_AwardTypeAxis-RestrictedStockMember",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2022-12-31_AwardTypeAxis-RestrictedStockMember",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
     "longName": "995549 - Disclosure - Note 17 - Commitments and Contingent Liabilities (Details Textual)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R106": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
     "longName": "995550 - Disclosure - Note 17 - Commitments and Contingent Liabilities - Outstanding Commitments and Contingent Liabilities (Details)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities - Outstanding Commitments and Contingent Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OtherCommitment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OtherCommitment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
     "longName": "995551 - Disclosure - Note 17 - Commitments and Contingent Liabilities - Leases Costs (Details)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities - Leases Costs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R108": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
     "longName": "995552 - Disclosure - Note 17 - Commitments and Contingent Liabilities - Weighted Average Remaining Lease Term and Discount Rate Information (Details)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities - Weighted Average Remaining Lease Term and Discount Rate Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:LeaseTermAndDiscountRateTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:LeaseTermAndDiscountRateTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
     "longName": "995553 - Disclosure - Note 17 - Commitments and Contingent Liabilities - Maturities of Lease Liabilities (Details)",
     "shortName": "Note 17 - Commitments and Contingent Liabilities - Maturities of Lease Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:OperatingAndFinanceLeaseLiabilityMaturityTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-4",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "mbcn:OperatingAndFinanceLeaseLiabilityMaturityTableTextBlock",
       "mbcn:LeaseDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R110": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual",
     "longName": "995554 - Disclosure - Note 18 - Regulatory Restrictions (Details Textual)",
     "shortName": "Note 18 - Regulatory Restrictions (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "mbcn:ReservesRequiredByFederalReserveBank",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:BankingAndThriftDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "mbcn:ReservesRequiredByFederalReserveBank",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "p",
       "us-gaap:BankingAndThriftDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R111": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual",
     "longName": "995555 - Disclosure - Note 19 - Regulatory Capital (Details Textual)",
     "shortName": "Note 19 - Regulatory Capital (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:BankingRegulationCapitalConservationBufferCapitalConservedMinimum",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "p",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:BankingRegulationCapitalConservationBufferCapitalConservedMinimum",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "p",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details",
     "longName": "995556 - Disclosure - Note 19 - Regulatory Capital - Capital Ratios (Details)",
     "shortName": "Note 19 - Regulatory Capital - Capital Ratios (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "us-gaap:RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual",
     "longName": "995557 - Disclosure - Note 20 - Related Party Transaction (Details Textual)",
     "shortName": "Note 20 - Related Party Transaction (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:RelatedPartyDepositLiabilities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:RelatedPartyDepositLiabilities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details",
     "longName": "995558 - Disclosure - Note 20 - Related Party Transaction - Loans to Related Party (Details)",
     "shortName": "Note 20 - Related Party Transaction - Loans to Related Party (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "i_2022-12-31",
      "name": "us-gaap:LoansAndLeasesReceivableRelatedParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2021-12-31",
      "name": "us-gaap:LoansAndLeasesReceivableRelatedParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R115": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
     "longName": "995559 - Disclosure - Note 21 - Business Combination (Details Textual)",
     "shortName": "Note 21 - Business Combination (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:GoodwillPurchaseAccountingAdjustments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfGoodwillTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31_BusinessAcquisitionAxis-LibertyBancsharesIncMember",
      "name": "us-gaap:GoodwillPurchaseAccountingAdjustments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R116": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
     "longName": "995560 - Disclosure - Note 21 - Business Combination - Business Purchase (Details)",
     "shortName": "Note 21 - Business Combination - Business Purchase (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:Goodwill",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2022-12-01_2022-12-01_BusinessAcquisitionAxis-LibertyBancsharesIncMember",
      "name": "us-gaap:BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
      "unitRef": "Share",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
     "longName": "995561 - Disclosure - Note 21 - Business Combination - Assets Acquired and Liabilities Assumed (Details)",
     "shortName": "Note 21 - Business Combination - Assets Acquired and Liabilities Assumed (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:Goodwill",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2022-12-01_BusinessAcquisitionAxis-LibertyBancsharesIncMember",
      "name": "us-gaap:BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
     "longName": "995562 - Disclosure - Note 21 - Business Combination - Pro Forma Information (Details)",
     "shortName": "Note 21 - Business Combination - Pro Forma Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "d_2022-12-01_2022-12-31_BusinessAcquisitionAxis-LibertyBancsharesIncMember",
      "name": "mbcn:BusinessCombinationProFormaInformationNetInterestIncomeOfAcquireeSinceAcquisitionDateActual",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2022-12-01_2022-12-31_BusinessAcquisitionAxis-LibertyBancsharesIncMember",
      "name": "mbcn:BusinessCombinationProFormaInformationNetInterestIncomeOfAcquireeSinceAcquisitionDateActual",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    },
    "R119": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
     "longName": "995563 - Disclosure - Note 22 - Parent Company - Condensed Balance Sheet (Details)",
     "shortName": "Note 22 - Parent Company - Condensed Balance Sheet (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "i_2023-12-31",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_ConsolidatedEntitiesAxis-ParentCompanyMember",
      "name": "us-gaap:CashAndDueFromBanks",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "srt:ScheduleOfCondensedBalanceSheetTableTextBlock",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
     "longName": "995564 - Disclosure - Note 22 - Parent Company - Condensed Statement of Comprehensive Income (Details)",
     "shortName": "Note 22 - Parent Company - Condensed Statement of Comprehensive Income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31_ConsolidatedEntitiesAxis-ParentCompanyMember",
      "name": "us-gaap:IncomeLossFromSubsidiariesBeforeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "srt:ScheduleOfCondensedIncomeStatementTableTextBlock",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
     "longName": "995565 - Disclosure - Note 22 - Parent Company - Condensed Statement of Cash Flows (Details)",
     "shortName": "Note 22 - Parent Company - Condensed Statement of Cash Flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "d_2023-01-01_2023-12-31_ConsolidatedEntitiesAxis-ParentCompanyMember",
      "name": "us-gaap:ShareBasedCompensation",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "tbody",
       "table",
       "srt:ScheduleOfCondensedCashFlowStatementTableTextBlock",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "unique": true
     }
    },
    "R122": {
     "role": "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual",
     "longName": "995566 - Disclosure - Note 23 - Subsequent Events (Details Textual)",
     "shortName": "Note 23 - Subsequent Events (Details Textual)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "i_2023-12-31_LossContingenciesByNatureOfContingencyAxis-CyberRiskMember",
      "name": "mbcn:InsurancePolicyAggregateLimit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "i_2023-12-31_LossContingenciesByNatureOfContingencyAxis-CyberRiskMember",
      "name": "mbcn:InsurancePolicyAggregateLimit",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mbcn20231231d_10k.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "mbcn_ATMBankingFeesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ATMBankingFeesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ATM Banking Fees [Member]",
        "documentation": "Information pertaining to ATM banking fees."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingPoliciesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingStandardsUpdate201613Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2016-13 [Member]",
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments."
       }
      }
     },
     "auth_ref": [
      "r421"
     ]
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity of Counterparty, Type [Axis]",
        "documentation": "Information by legal entity of counterparty. A counterparty is the other party that participates in a financial transaction."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments",
        "negatedLabel": "Amortization of premium and discount on investment securities, net",
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "mbcn_AccruedInterestPayableAndOtherLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "AccruedInterestPayableAndOtherLiabilitiesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Interest Payable and Other Liabilities [Member]",
        "documentation": "Represents accrued interest payable and other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_AccruedInterestReceivableAndOtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "AccruedInterestReceivableAndOtherAssetsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Interest Receivable and Other Assets [Member]",
        "documentation": "Primary financial statement caption encompassing accrued interest receivable and other assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest payable and other liabilities",
        "totalLabel": "Total",
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Less accumulated depreciation and amortization",
        "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": [
      "r96",
      "r274",
      "r762"
     ]
    },
    "us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedNetUnrealizedInvestmentGainLossMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI, Accumulated Gain (Loss), Debt Securities, Available-for-Sale, Parent [Member]",
        "documentation": "Accumulated unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), attributable to parent."
       }
      }
     },
     "auth_ref": [
      "r285",
      "r286",
      "r287",
      "r289",
      "r298",
      "r299",
      "r990"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r47",
      "r48",
      "r149",
      "r281",
      "r758",
      "r791",
      "r795"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Parent [Member]",
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r26",
      "r48",
      "r611",
      "r614",
      "r680",
      "r786",
      "r787",
      "r990",
      "r991",
      "r992",
      "r1003",
      "r1004",
      "r1005"
     ]
    },
    "mbcn_AcquiredLoansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "AcquiredLoansTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Loans [Table Text Block]",
        "documentation": "Tabular disclosure of acquired loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Axis]",
        "documentation": "Information by amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r321",
      "r322",
      "r323",
      "r324",
      "r333",
      "r379",
      "r380",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r471",
      "r555",
      "r556",
      "r557",
      "r581",
      "r582",
      "r583",
      "r584",
      "r597",
      "r598",
      "r599",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r643",
      "r644",
      "r649",
      "r650",
      "r651",
      "r652",
      "r659",
      "r660",
      "r662",
      "r663",
      "r664",
      "r665",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r726",
      "r727",
      "r728",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795"
     ]
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to reconcile net income to net cash provided by operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Home Loan Bank advances",
        "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": [
      "r228"
     ]
    },
    "us-gaap_AdvertisingCostsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdvertisingCostsPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advertising Cost [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for advertising cost."
       }
      }
     },
     "auth_ref": [
      "r237"
     ]
    },
    "us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount",
        "terseLabel": "Affordable Housing Tax Credits and Other Tax Benefits, Amount",
        "documentation": "Amount of affordable housing tax credits and other tax benefits recognized."
       }
      }
     },
     "auth_ref": [
      "r959"
     ]
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AllocatedShareBasedCompensationExpense",
        "terseLabel": "Share-Based Payment Arrangement, Expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r553",
      "r562"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationMethodQualifiedAffordableHousingProjectInvestments",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments",
        "terseLabel": "Amortization Method Qualified Affordable Housing Project Investments",
        "documentation": "Amount of investment in qualified affordable housing projects."
       }
      }
     },
     "auth_ref": [
      "r960"
     ]
    },
    "us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization",
        "terseLabel": "Amortization Method Qualified Affordable Housing Project Investments, Amortization",
        "documentation": "Amount of amortization expense of investment in qualified affordable housing projects."
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Amortization of core deposit intangibles",
        "label": "Core deposit intangible amortization",
        "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": [
      "r13",
      "r91",
      "r94"
     ]
    },
    "mbcn_AmountAvailableForPaymentOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "AmountAvailableForPaymentOfDividends",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_AmountAvailableForPaymentOfDividends",
        "terseLabel": "Amount Available for Payment of Dividends",
        "documentation": "Amount available for payment of dividends."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
        "terseLabel": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount (in shares)",
        "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": [
      "r345"
     ]
    },
    "mbcn_AppraisalOfCollateralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "AppraisalOfCollateralMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Appraisal of Collateral [Member]",
        "documentation": "Information pertaining to appraisal of collateral."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetPledgedAsCollateralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetPledgedAsCollateralMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Pledged as Collateral [Member]",
        "documentation": "Asset pledged as collateral."
       }
      }
     },
     "auth_ref": [
      "r601",
      "r814",
      "r929",
      "r1121"
     ]
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_Assets",
        "totalLabel": "TOTAL ASSETS",
        "terseLabel": "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": [
      "r199",
      "r278",
      "r312",
      "r350",
      "r358",
      "r362",
      "r420",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r601",
      "r603",
      "r648",
      "r756",
      "r834",
      "r931",
      "r946",
      "r1057",
      "r1058",
      "r1113"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ASSETS"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
        "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": [
      "r388"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
        "negatedTerseLabel": "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": [
      "r389"
     ]
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
        "totalLabel": "Amortized costs",
        "terseLabel": "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": [
      "r385",
      "r452",
      "r754"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after five years through ten years, amortized costs",
        "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": [
      "r1020"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after five years through ten years, 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, 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": [
      "r395",
      "r740"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after one year through five years, amortized costs",
        "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": [
      "r1019"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after one year through five years, 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, 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": [
      "r394",
      "r739"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after ten years, amortized costs",
        "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": [
      "r1021"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due after ten years, 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, 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": [
      "r396",
      "r741"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due in one year or less, amortized costs",
        "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": [
      "r1018"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due in one year or less, 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, 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": [
      "r393",
      "r738"
     ]
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details": {
       "parentTag": "us-gaap_InvestmentsFairValueDisclosure",
       "weight": 1.0,
       "order": 0.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total debt securities",
        "label": "Investment securities available for sale, at fair value",
        "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)."
       }
      }
     },
     "auth_ref": [
      "r386",
      "r452",
      "r731",
      "r1015"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r525",
      "r526",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552"
     ]
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Axis]",
        "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://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Domain]",
        "documentation": "Location in the balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r116"
     ]
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsurance",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank-owned life insurance",
        "documentation": "The carrying amount of a life insurance policy on an officer, executive or employee for which the reporting entity (a bank) is entitled to proceeds from the policy upon death of the insured or surrender of the insurance policy."
       }
      }
     },
     "auth_ref": [
      "r1123"
     ]
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankOwnedLifeInsuranceIncome",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Earnings on bank-owned life insurance",
        "label": "Earnings on bank-owned life insurance",
        "negatedLabel": "Earnings on 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": [
      "r216"
     ]
    },
    "us-gaap_BankingAndThriftDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankingAndThriftDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking and Thrift Disclosure [Text Block]",
        "documentation": "The entire disclosure for financial services specifically banking and thrift entities at the end of the reporting period."
       }
      }
     },
     "auth_ref": [
      "r196"
     ]
    },
    "us-gaap_BankingRegulationCapitalConservationBufferCapitalConservedMinimum": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BankingRegulationCapitalConservationBufferCapitalConservedMinimum",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BankingRegulationCapitalConservationBufferCapitalConservedMinimum",
        "terseLabel": "Banking Regulation, Capital Conservation Buffer, Capital Conserved, Minimum",
        "documentation": "Minimum capital conservation buffer percentage required to avoid restriction on payout amount of eligible retained income as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746"
     ]
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS)."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BlanketLienMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BlanketLienMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Blanket Lien [Member]",
        "documentation": "Represents blanket lien."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BorrowingsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings [Member]",
        "documentation": "Obligations to pay to another in accordance with an expressed or implied agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BuildingAndBuildingImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BuildingAndBuildingImprovementsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Building and Building Improvements [Member]",
        "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_BuildingsAndImprovementsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BuildingsAndImprovementsGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Building and leasehold improvements",
        "documentation": "Amount before accumulated depreciation of building structures held for productive use including addition, improvement, or renovation to the structure, including, but not limited to, interior masonry, interior flooring, electrical, and plumbing."
       }
      }
     },
     "auth_ref": [
      "r175"
     ]
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Acquiree [Domain]",
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree."
       }
      }
     },
     "auth_ref": [
      "r595",
      "r924",
      "r925"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Axis]",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r110",
      "r595",
      "r924",
      "r925"
     ]
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Middlefield Banc Corp. shares issued (in shares)",
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity."
       }
      }
     },
     "auth_ref": [
      "r190"
     ]
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired",
        "terseLabel": "Business Acquisition, Percentage of Voting Interests Acquired",
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination."
       }
      }
     },
     "auth_ref": [
      "r108"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareBasic",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessAcquisitionProFormaEarningsPerShareBasic",
        "terseLabel": "Basic (in dollars per share)",
        "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": [
      "r966",
      "r967"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaEarningsPerShareDiluted",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessAcquisitionProFormaEarningsPerShareDiluted",
        "terseLabel": "Diluted (in dollars per share)",
        "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": [
      "r966",
      "r967"
     ]
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition, Pro Forma Information [Table Text Block]",
        "documentation": "Tabular disclosure of pro forma results of operations for a material business acquisition or series of individually immaterial business acquisitions that are material in the aggregate."
       }
      }
     },
     "auth_ref": [
      "r966",
      "r967"
     ]
    },
    "mbcn_BusinessAcquisitionProFormaNetInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessAcquisitionProFormaNetInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessAcquisitionProFormaNetInterestIncome",
        "terseLabel": "Net interest income",
        "documentation": "The pro forma net interest income for a period as if the business combination or combinations had been completed at the beginning of the period."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessAcquisitionProFormaNoninterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessAcquisitionProFormaNoninterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessAcquisitionProFormaNoninterestIncome",
        "terseLabel": "Noninterest income",
        "documentation": "The pro forma noninterest income for a period as if the business combination or combinations had been completed at the beginning of the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionSharePrice",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Value assigned to Middlefield Banc Corp. common shares (in dollars per share)",
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss",
        "terseLabel": "Net income",
        "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": [
      "r593",
      "r594"
     ]
    },
    "mbcn_BusinessCombinationAcquiredFinancingReceivableFairValueAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationAcquiredFinancingReceivableFairValueAdjustment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationAcquiredFinancingReceivableFairValueAdjustment",
        "terseLabel": "Business Combination, Acquired Financing Receivable, Fair Value Adjustment",
        "documentation": "This element represents the amount of any measurement period fair value adjustment (as defined) realized during the reporting period to Financing receivables acquired in connection with a business combination."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationAmountSharesIssuedToAcquireesShareholdersPerShare": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationAmountSharesIssuedToAcquireesShareholdersPerShare",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationAmountSharesIssuedToAcquireesShareholdersPerShare",
        "terseLabel": "Business Combination, Amount Shares Issued to Acquiree's Shareholders Per Share (in shares)",
        "documentation": "Amount of shares issued to acquiree's shareholders per share as part of a business combination."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationConsiderationTransferred1",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total purchase price",
        "label": "Total Purchase Price",
        "terseLabel": "Business Combination, Consideration Transferred, Total",
        "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": [
      "r3",
      "r4",
      "r19"
     ]
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase price assigned to Liberty common shares exchanged for",
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination."
       }
      }
     },
     "auth_ref": [
      "r3",
      "r4"
     ]
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination Disclosure [Text Block]",
        "documentation": "The entire disclosure for a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. The disclosure may include leverage buyout transactions (as applicable)."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r596"
     ]
    },
    "us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual",
        "terseLabel": "Net income",
        "documentation": "This element represents the amount of earnings or loss of the acquiree since the acquisition date included in the consolidated income statement for the reporting period."
       }
      }
     },
     "auth_ref": [
      "r109"
     ]
    },
    "mbcn_BusinessCombinationProFormaInformationNetInterestIncomeOfAcquireeSinceAcquisitionDateActual": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProFormaInformationNetInterestIncomeOfAcquireeSinceAcquisitionDateActual",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProFormaInformationNetInterestIncomeOfAcquireeSinceAcquisitionDateActual",
        "terseLabel": "Net interest income",
        "documentation": "This element represents the amount of net interest income of the acquiree since the acquisition date included in the consolidated income statement for the reporting period."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProFormaInformationNoninterestIncomeOfAcquireeSinceAcquisitionDateActual": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProFormaInformationNoninterestIncomeOfAcquireeSinceAcquisitionDateActual",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProFormaInformationNoninterestIncomeOfAcquireeSinceAcquisitionDateActual",
        "terseLabel": "Noninterest income",
        "documentation": "This element represents the amount of noninterest income of the acquiree since the acquisition date included in the consolidated income statement for the reporting period."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAllowanceForLoanLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAllowanceForLoanLosses",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAllowanceForLoanLosses",
        "terseLabel": "Allowance for credit loss",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to allowance for loan losses acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxes",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentDeferredTaxes",
        "terseLabel": "Deferred taxes",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to deferred taxes acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles",
        "terseLabel": "Core deposit intangible",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to intangibles acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInvestments",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInvestments",
        "terseLabel": "Investments",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to investments acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansGeneralCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansGeneralCredit",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansGeneralCredit",
        "terseLabel": "Loans - general credit",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to general credit loans acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansInterestRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansInterestRate",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLoansInterestRate",
        "terseLabel": "Loans - interest rate",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to interest rate loans acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentMortgageServicingRights",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentMortgageServicingRights",
        "terseLabel": "Mortgage servicing rights",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to mortgage servicing rights acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOther",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOther",
        "terseLabel": "Other",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to other acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentTimeDeposits",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentTimeDeposits",
        "terseLabel": "Time deposits",
        "documentation": "This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to time deposits acquired in connection with a business combination for which the initial accounting was incomplete."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestPayable",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestPayable",
        "negatedLabel": "Accrued interest payable",
        "documentation": "Amount of accrued interest payable acquired, at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accrued interest receivable",
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterestReceivable",
        "documentation": "Amount due from accrued interest receivables, that have been delivered or sold in the normal course of business, and amounts due from others, including related parties expected to be converted to cash, sold or exchanged, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBankownedLifeInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBankownedLifeInsurance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBankownedLifeInsurance",
        "terseLabel": "Bank-owned life insurance",
        "documentation": "Amount of bank-owned life insurance acquired at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cash",
        "label": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
        "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": [
      "r112"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Core deposit intangible",
        "label": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
        "documentation": "Amount of intangible assets, excluding goodwill, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r112"
     ]
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestments",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments",
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestments",
        "documentation": "Amount of investments acquired at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansAndLoansHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansAndLoansHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans and loans held for sale",
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansAndLoansHeldForSale",
        "documentation": "The amount of loans and loans held for sale recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Mortgage servicing rights",
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights",
        "documentation": "The amount of mortgage servicing rights recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total net assets acquired",
        "label": "Total 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": [
      "r111",
      "r112"
     ]
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNontimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNontimeDeposits",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNontimeDeposits",
        "negatedLabel": "Non-time deposits",
        "documentation": "Amount of non-time deposits acquired, at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
        "documentation": "Amount of other assets acquired at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
        "negatedLabel": "Other liabilities",
        "documentation": "Amount of other liabilities assumed at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
        "terseLabel": "Premises and equipment, net",
        "documentation": "The amount of property, plant, and equipment recognized as of the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r111",
      "r112"
     ]
    },
    "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTimeDeposits",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTimeDeposits",
        "negatedLabel": "Time deposits",
        "documentation": "Amount of time deposits acquired, at the acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_BusinessCombinationShareholdersEquityAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "BusinessCombinationShareholdersEquityAcquired",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liberty shareholders equity",
        "documentation": "The amount of shareholders' equity acquired in business combination."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessCombinationsPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for completed business combinations (purchase method, acquisition method or combination of entities under common control). This accounting policy may include a general discussion of the purchase method or acquisition method of accounting (including for example, the treatment accorded contingent consideration, the identification of assets and liabilities, the purchase price allocation process, how the fair values of acquired assets and liabilities are determined) and the entity's specific application thereof. An entity that acquires another entity in a leveraged buyout transaction generally discloses the accounting policy followed by the acquiring entity in determining the basis used to value its interest in the acquired entity, and the rationale for that accounting policy."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "mbcn_CapitalRequiredForCapitalAdequacyPlusCapitalConservationBufferToRiskWeightedAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CapitalRequiredForCapitalAdequacyPlusCapitalConservationBufferToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total risk based capital, adequately capitalized plus capital conservation buffer, ratio",
        "documentation": "The minimum Total risk based capital ratio (total capital divided by risk weighted assets) required for capital adequacy purposes plus capital conservation buffer under the regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total risk based capital, adequately capitalized, ratio",
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746",
      "r750"
     ]
    },
    "us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total risk based capital, well-capitalized, ratio (bank only)",
        "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": [
      "r746"
     ]
    },
    "us-gaap_CapitalToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total risk based capital, actual, ratio",
        "documentation": "Ratio of total risk-based capital to risk-weighted assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746"
     ]
    },
    "us-gaap_CapitalizedComputerSoftwareAmortization1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalizedComputerSoftwareAmortization1",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 6.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Software amortization expense",
        "documentation": "Amount of expense for amortization of capitalized computer software costs."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r230"
     ]
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reported Value Measurement [Member]",
        "documentation": "Measured as reported on the statement of financial position (balance sheet)."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r120"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_CashAndCashEquivalentsAtCarryingValue",
        "periodStartLabel": "CASH AND CASH EQUIVALENTS AT BEGINNING OF YEAR",
        "periodEndLabel": "CASH AND CASH EQUIVALENTS AT END OF YEAR",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r272",
      "r899"
     ]
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents. Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value."
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "us-gaap_CashAndDueFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndDueFromBanks",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and due from banks",
        "terseLabel": "Cash and due from banks",
        "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": [
      "r197"
     ]
    },
    "us-gaap_CashCashEquivalentsAndFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsAndFederalFundsSold",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
        "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": [
      "r127"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
        "periodStartLabel": "CASH AND CASH EQUIVALENTS AT BEGINNING OF PERIOD",
        "periodEndLabel": "CASH AND CASH EQUIVALENTS AT END OF PERIOD",
        "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": [
      "r56",
      "r164",
      "r310"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
        "totalLabel": "Increase (decrease) in cash and cash equivalents",
        "terseLabel": "Increase (decrease) in cash",
        "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": [
      "r5",
      "r164"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Axis]",
        "documentation": "Information by category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": [
      "r909"
     ]
    },
    "us-gaap_CollateralDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Held [Domain]",
        "documentation": "Category of collateral or no collateral, from lender's perspective."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollateralPledgedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralPledgedMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Pledged [Member]",
        "documentation": "Pledge of specific property to serve as protection against default."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_CommercialAndIndustrialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CommercialAndIndustrialMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial And Industrial [Member]",
        "documentation": "Represents information by loans categorized as commercial and industrial."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialPortfolioSegmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommercialRealEstatePortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialRealEstatePortfolioSegmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Real Estate Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial real estate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsToExtendCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsToExtendCreditMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": []
    },
    "mbcn_CommonEquityTier1CapitalRequiredForCapitalAdequacyPlusCapitalConservationBuffer": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CommonEquityTier1CapitalRequiredForCapitalAdequacyPlusCapitalConservationBuffer",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common equity tier 1 capital, adequately capitalized plus capital conservation buffer, ratio",
        "documentation": "The minimum common equity tier 1 risk based capital ratio (common equity tier 1 capital divided by risk weighted assets) required for capital adequacy purposes plus capital conservation buffer under the regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_CommonEquityTier1CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CommonEquityTier1CapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common equity tier 1 capital, adequately capitalized, ratio",
        "documentation": "The minimum common equity tier 1 risk based capital ratio (common equity tier 1 capital divided by risk weighted assets) required for capital adequacy purposes under the regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_CommonEquityTier1CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CommonEquityTier1CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common equity tier 1 capital, well-capitalized, ratio (bank only)",
        "documentation": "The common equity tier 1 risk based capital ratio (common equity tier 1 capital divided by risk weighted assets) required to be categorized as \"well capitalized\", in the regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_CommonEquityTier1CapitalToRiskWeightedAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CommonEquityTier1CapitalToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common equity tier 1 capital, actual, ratio",
        "documentation": "Common equity tier 1 capital divided by risk weighted assets as defined in the regulations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockDividendsPerShareCashPaid",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash dividends per share (in dollars per share)",
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding."
       }
      }
     },
     "auth_ref": [
      "r177"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r935",
      "r936",
      "r937",
      "r939",
      "r940",
      "r941",
      "r942",
      "r1003",
      "r1004",
      "r1103",
      "r1131",
      "r1136"
     ]
    },
    "us-gaap_CommonStockNoParValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockNoParValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock, par value (in dollars per share)",
        "documentation": "Face amount per share of no-par value common stock."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock, shares authorized (in shares)",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r143",
      "r821"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock, shares 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": [
      "r143"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock, shares outstanding (in shares)",
        "periodStartLabel": "Balance (in shares)",
        "periodEndLabel": "Balance (in shares)",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r143",
      "r821",
      "r840",
      "r1136",
      "r1137"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock, no par value; 25,000,000 shares authorized, 9,930,704 and 9,916,466 shares issued; 8,095,252 and 8,245,235 shares outstanding",
        "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": [
      "r143",
      "r757",
      "r931"
     ]
    },
    "us-gaap_CompensationAndEmployeeBenefitPlansTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationAndEmployeeBenefitPlansTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation and Employee Benefit Plans [Text Block]",
        "documentation": "The entire disclosure for an entity's employee compensation and benefit plans, including, but not limited to, postemployment and postretirement benefit plans, defined benefit pension plans, defined contribution plans, non-qualified and supplemental benefit plans, deferred compensation, share-based compensation, life insurance, severance, health care, unemployment and other benefit plans."
       }
      }
     },
     "auth_ref": [
      "r178",
      "r180",
      "r181",
      "r182"
     ]
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ComprehensiveIncomeNetOfTax",
        "terseLabel": "Comprehensive income (loss)",
        "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": [
      "r49",
      "r293",
      "r295",
      "r302",
      "r734",
      "r769"
     ]
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r148",
      "r301",
      "r733",
      "r767"
     ]
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Text Block]",
        "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": [
      "r270",
      "r316",
      "r963"
     ]
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "documentation": "Information by consolidated entity or group of entities."
       }
      }
     },
     "auth_ref": [
      "r264",
      "r316",
      "r601",
      "r602",
      "r603",
      "r604",
      "r686",
      "r894",
      "r982",
      "r983",
      "r984",
      "r1056",
      "r1059",
      "r1060"
     ]
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "documentation": "Entity or group of entities consolidated into reporting entity."
       }
      }
     },
     "auth_ref": [
      "r264",
      "r316",
      "r601",
      "r602",
      "r603",
      "r604",
      "r686",
      "r894",
      "r982",
      "r983",
      "r984",
      "r1056",
      "r1059",
      "r1060"
     ]
    },
    "mbcn_ConstructionAndOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ConstructionAndOtherMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction and Other [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to construction and other receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsumerPortfolioSegmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CoreDepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CoreDepositsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Core Deposits [Member]",
        "documentation": "Entity's long-term relationships with depositors, commonly known as core deposit intangibles, which are separate from the financial instruments themselves."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "us-gaap_CostsAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CostsAndExpenses",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_CostsAndExpenses",
        "terseLabel": "Total expenses",
        "documentation": "Total costs of sales and operating expenses for the period."
       }
      }
     },
     "auth_ref": [
      "r155"
     ]
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Axis]",
        "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://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Domain]",
        "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://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Loss Status [Axis]",
        "documentation": "Information by credit loss status of financial asset."
       }
      }
     },
     "auth_ref": [
      "r1014",
      "r1032",
      "r1037"
     ]
    },
    "us-gaap_CreditLossStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditLossStatusDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Loss Status [Domain]",
        "documentation": "Credit loss status of financial asset."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_CriticizedRelationshipsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CriticizedRelationshipsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Criticized Relationships [Member]",
        "documentation": "Loans with credit ratings of Special Mention, Substandard, or Doubtful."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjusted Balance [Member]",
        "documentation": "Represents amount after cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r968",
      "r985",
      "r1006",
      "r1030",
      "r1031",
      "r1093",
      "r1094",
      "r1095",
      "r1099",
      "r1100",
      "r1102",
      "r1103",
      "r1104",
      "r1112"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]",
        "documentation": "Increase (decrease) to financial statements for cumulative-effect adjustment in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r320",
      "r327",
      "r333",
      "r425",
      "r431",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r611",
      "r612",
      "r614",
      "r615",
      "r616",
      "r621",
      "r624",
      "r626",
      "r627",
      "r678"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Axis]",
        "documentation": "Information by cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r320",
      "r327",
      "r333",
      "r425",
      "r431",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r611",
      "r612",
      "r614",
      "r615",
      "r616",
      "r621",
      "r624",
      "r626",
      "r627",
      "r678"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Domain]",
        "documentation": "Cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r320",
      "r327",
      "r333",
      "r425",
      "r431",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r611",
      "r612",
      "r614",
      "r615",
      "r616",
      "r621",
      "r624",
      "r626",
      "r627",
      "r678"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current payable",
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r187",
      "r580",
      "r588",
      "r1000"
     ]
    },
    "mbcn_CyberRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "CyberRiskMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cyber Risk [Member]",
        "documentation": "Represents cyber risk."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtAndEquitySecuritiesGainLoss",
        "terseLabel": "Loss on equity securities",
        "negatedTerseLabel": "Loss on equity securities",
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r154"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1",
        "terseLabel": "Debt Instrument, Basis Spread on Variable Rate",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateDuringPeriod",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest rate",
        "documentation": "The average effective interest rate during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r123",
      "r489"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r249",
      "r915",
      "r1106"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDateRangeEnd1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDateRangeEnd1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity, maximum",
        "documentation": "Latest date the outstanding debt instruments are required to be repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDateRangeStart1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDateRangeStart1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity, minimum",
        "documentation": "Earliest date the outstanding debt instruments are required to be repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss",
        "terseLabel": "Debt Securities, Available-for-Sale, Accrued Interest, after Allowance for Credit Loss",
        "documentation": "Amount, after allowance for credit loss, of accrued interest on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r391",
      "r452",
      "r453",
      "r454"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
        "terseLabel": "Debt Securities, Available-for-Sale, Allowance for Credit Loss",
        "documentation": "Amount of 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)."
       }
      }
     },
     "auth_ref": [
      "r387",
      "r452",
      "r461",
      "r462"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Twelve Months or Greater, Fair Value",
        "terseLabel": "Twelve Months or Greater, 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": [
      "r233",
      "r458",
      "r913"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
        "negatedLabel": "Twelve Months or Greater, Gross Unrealized Losses",
        "negatedTerseLabel": "Twelve Months or Greater, Gross 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": [
      "r233",
      "r458"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerNumberOfPositions",
        "terseLabel": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Number of Positions",
        "documentation": "Number of investments in debt securities measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without an allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r1038"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Less than Twelve Months, Fair Value",
        "terseLabel": "Less than Twelve 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": [
      "r233",
      "r458",
      "r913"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
        "negatedLabel": "Less than Twelve Months, Gross Unrealized Losses",
        "negatedTerseLabel": "Less than Twelve Months, Gross 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": [
      "r233",
      "r458"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsNumberOfPositions",
        "terseLabel": "Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Number of Positions",
        "documentation": "Number of investments in debt securities measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without an allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r1038"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total, Fair Value",
        "terseLabel": "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": [
      "r231",
      "r456",
      "r913"
     ]
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
        "negatedLabel": "Total, Gross Unrealized Losses",
        "negatedTerseLabel": "Total, Gross 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 unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset."
       }
      }
     },
     "auth_ref": [
      "r232",
      "r457"
     ]
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationArrangementWithIndividualRecordedLiability",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredCompensationArrangementWithIndividualRecordedLiability",
        "terseLabel": "Deferred Compensation Arrangement with Individual, 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": [
      "r179"
     ]
    },
    "us-gaap_DeferredCompensationSharebasedArrangementsLiabilityCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredCompensationSharebasedArrangementsLiabilityCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredCompensationSharebasedArrangementsLiabilityCurrentAndNoncurrent",
        "terseLabel": "Deferred Compensation Share-Based Arrangements, Liability, Current and Noncurrent",
        "documentation": "Aggregate carrying value as of the balance sheet date of the liabilities for stock option plans and other equity-based compensation arrangements."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r187",
      "r247",
      "r587",
      "r588",
      "r1000"
     ]
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredIncomeTaxLiabilities",
        "totalLabel": "Gross deferred tax liabilities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r141",
      "r201",
      "r574"
     ]
    },
    "mbcn_DeferredTaxAssetsAcquisitionFairValueAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DeferredTaxAssetsAcquisitionFairValueAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_DeferredTaxAssetsAcquisitionFairValueAdjustments",
        "terseLabel": "Acquisition fair value adjustments",
        "documentation": "Amount of deferred tax assets attributable to fair value adjustments related to acquisitions."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_DeferredTaxAssetsDeferredOriginationFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DeferredTaxAssetsDeferredOriginationFees",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_DeferredTaxAssetsDeferredOriginationFees",
        "terseLabel": "Deferred origination fees, net",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from deferred origination fees."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredTaxAssetsGross",
        "totalLabel": "Gross deferred tax assets",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r575"
     ]
    },
    "us-gaap_DeferredTaxAssetsGrossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGrossAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsInvestments",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment security basis adjustment",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from investments (excludes investments in subsidiaries and equity method investments)."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_DeferredTaxAssetsLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DeferredTaxAssetsLeaseLiability",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liability",
        "label": "mbcn_DeferredTaxAssetsLeaseLiability",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from lease liabilties."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
        "totalLabel": "Net deferred tax assets",
        "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": [
      "r1097"
     ]
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax asset, net",
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1097"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net operating losses",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredTaxAssetsOther",
        "terseLabel": "Other",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonaccrual interest income",
        "documentation": "Amount, before allocation of valuation allowances, of deferred tax asset attributable to deductible differences from reserves and accruals, compensation and benefit costs, and other provisions, reserves, and allowances."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued compensation",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental retirement plan",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from pension benefits."
       }
      }
     },
     "auth_ref": [
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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 financing receivable."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net unrealized loss on AFS securities",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary difference from unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale)."
       }
      }
     },
     "auth_ref": [
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsValuationAllowance",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredTaxAssetsValuationAllowance",
        "terseLabel": "Deferred Tax Assets, Valuation Allowance",
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r576"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangibles",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from intangible assets other than goodwill."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesMortgageServicingRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesMortgageServicingRights",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage servicing rights",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from mortgage servicing rights."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesNetAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesOther",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DeferredTaxLiabilitiesOther",
        "terseLabel": "Other",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premises and equipment",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "mbcn_DeferredTaxLiabilitiesRightofUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DeferredTaxLiabilitiesRightofUseAssets",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Right of use assets",
        "label": "mbcn_DeferredTaxLiabilitiesRightofUseAssets",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesTaxDeferredIncome",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FHLB stock dividends",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from tax deferred revenue or income classified as other."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1098"
     ]
    },
    "mbcn_DeferredTaxLiabilitiesUnrealizedGainOnEquitySecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DeferredTaxLiabilitiesUnrealizedGainOnEquitySecurities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net unrealized gain on equity securities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from unrealized gain on equity securities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanContributionsByEmployer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanContributionsByEmployer",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DefinedBenefitPlanContributionsByEmployer",
        "terseLabel": "Defined Benefit Plan, Plan Assets, Contributions by Employer",
        "documentation": "Amount of contribution received by defined benefit plan from employer which increases plan assets."
       }
      }
     },
     "auth_ref": [
      "r512",
      "r514",
      "r520",
      "r920",
      "r921",
      "r922",
      "r923"
     ]
    },
    "mbcn_DefinedContributionPlanAnnualVestingPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DefinedContributionPlanAnnualVestingPercentage",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_DefinedContributionPlanAnnualVestingPercentage",
        "terseLabel": "Defined Contribution Plan Annual Vesting Percentage",
        "documentation": "Defined Contribution Plan Annual Vesting Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanEmployerDiscretionaryContributionAmount",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount",
        "terseLabel": "Defined Contribution Plan, Employer Discretionary Contribution Amount",
        "documentation": "Amount of discretionary contributions made by an employer to a defined contribution plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanEmployerMatchingContributionPercent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent",
        "terseLabel": "Defined Contribution Plan, Employer Matching Contribution, Percent of Employees' Gross Pay",
        "documentation": "Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_DefinedContributionPlanEmployerVoluntaryMatchingBankContribution": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "DefinedContributionPlanEmployerVoluntaryMatchingBankContribution",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_DefinedContributionPlanEmployerVoluntaryMatchingBankContribution",
        "terseLabel": "Defined Contribution Plan Employer Voluntary Matching Bank Contribution",
        "documentation": "The percentage of matching voluntary contributions that the bank bases its contributions to the plan on."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DepositAccountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositAccountMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposit Account [Member]",
        "documentation": "Bank account at depository institution allowing money to be withdrawn or deposited by account holder."
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "us-gaap_DepositLiabilitiesDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositLiabilitiesDisclosuresTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposit Liabilities Disclosures [Text Block]",
        "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": [
      "r18",
      "r129",
      "r262",
      "r263"
     ]
    },
    "us-gaap_Deposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Deposits",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_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": [
      "r129"
     ]
    },
    "us-gaap_DepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Member]",
        "documentation": "Amounts held on account by the entity representing a liability to the depositor. Deposits may take various forms (for example, demand deposits, saving deposits, Negotiable Order of Withdrawal (NOW) and time deposits) and may be categorized in multiple ways (such as, foreign and domestic, interest and noninterest bearing)."
       }
      }
     },
     "auth_ref": [
      "r225"
     ]
    },
    "us-gaap_DepositsMoneyMarketDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsMoneyMarketDeposits",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Money market",
        "documentation": "Amount of deposits in accounts that offer many of the same services as checking accounts although transactions may be somewhat more limited, share some of the characteristics of a money market fund and are insured by the Federal government, also known as money market accounts."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_DepositsSavingsDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepositsSavingsDeposits",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Savings",
        "documentation": "Amount of interest bearing deposits with no stated maturity, which may include passbook and statement savings accounts and money-market deposit accounts (MMDAs)."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_Depreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Depreciation",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_Depreciation",
        "terseLabel": "Depreciation",
        "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": [
      "r13",
      "r95"
     ]
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepreciationAmortizationAndAccretionNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, amortization, and accretion, net",
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Table Text Block]",
        "documentation": "Tabular disclosure of disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor."
       }
      }
     },
     "auth_ref": [
      "r1063"
     ]
    },
    "us-gaap_DisclosureTextBlockAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureTextBlockAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DisclosureTextBlockAbstract",
        "terseLabel": "Notes to Financial Statements"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends on stock",
        "documentation": "Amount of operating dividend income on securities."
       }
      }
     },
     "auth_ref": [
      "r220",
      "r803",
      "r843",
      "r883",
      "r885",
      "r943",
      "r944",
      "r1139"
     ]
    },
    "us-gaap_DividendsCommonStockCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DividendsCommonStockCash",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_DividendsCommonStockCash",
        "terseLabel": "Cash dividends",
        "negatedLabel": "Cash dividends",
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash."
       }
      }
     },
     "auth_ref": [
      "r177"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r950",
      "r951",
      "r952",
      "r954"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document 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": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r953"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DoubtfulMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DoubtfulMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "EARNINGS PER SHARE"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic (in dollars per share)",
        "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": [
      "r303",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r335",
      "r337",
      "r342",
      "r343",
      "r344",
      "r348",
      "r627",
      "r628",
      "r735",
      "r770",
      "r902"
     ]
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diluted (in dollars per share)",
        "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": [
      "r303",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r337",
      "r342",
      "r343",
      "r344",
      "r348",
      "r627",
      "r628",
      "r735",
      "r770",
      "r902"
     ]
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerSharePolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69"
     ]
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Text Block]",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r345",
      "r346",
      "r347"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
        "totalLabel": "Actual tax expense and effective rate, percent",
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r568"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision at statutory rate, percent",
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss)."
       }
      }
     },
     "auth_ref": [
      "r313",
      "r568",
      "r589"
     ]
    },
    "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAcquisitionCostsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAcquisitionCostsPercent",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nondeductible acquisition expense, percent",
        "documentation": "Percentage 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 acquisition costs."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAcquisitionExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAcquisitionExpense",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAcquisitionExpense",
        "negatedLabel": "Nondeductible acquisition expense, amount",
        "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 acquisition expense"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseInterestExpense",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseInterestExpense",
        "negatedLabel": "Nondeductible interest expense, amount",
        "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 interest expense."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseInterestExpensePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseInterestExpensePercent",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nondeductible interest expense, percent",
        "documentation": "Percentage 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 interest expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationOtherAdjustments",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other, percent",
        "documentation": "Percentage 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": [
      "r1096",
      "r1101"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationTaxExemptIncome",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax-exempt income, percent",
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes."
       }
      }
     },
     "auth_ref": [
      "r1096",
      "r1101"
     ]
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeRelatedLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued salary and benefits",
        "documentation": "Total of the carrying values as of the balance sheet date of obligations incurred through that date and payable for obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits."
       }
      }
     },
     "auth_ref": [
      "r131",
      "r1126"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
        "terseLabel": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition (Year)",
        "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": [
      "r554"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
        "terseLabel": "Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "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://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r957"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r948"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r958"
     ]
    },
    "us-gaap_EquipmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquipmentExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equipment expense",
        "documentation": "This element represents equipment expense including depreciation, repairs, rentals, and service contract costs. This item also includes equipment purchases which do not qualify for capitalization in accordance with the entity's accounting policy. This item may also include furniture expenses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r267",
      "r297",
      "r298",
      "r299",
      "r317",
      "r318",
      "r319",
      "r322",
      "r330",
      "r332",
      "r349",
      "r425",
      "r431",
      "r492",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r626",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r680",
      "r786",
      "r787",
      "r788",
      "r804",
      "r865"
     ]
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Domain]",
        "documentation": "Name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r417",
      "r418",
      "r419"
     ]
    },
    "us-gaap_EquityMethodInvestmentsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentsPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for equity method of accounting for investments and other interests. Investment includes, but is not limited to, unconsolidated subsidiary, corporate joint venture, noncontrolling interest in real estate venture, limited partnership, and limited liability company. Information includes, but is not limited to, ownership percentage, reason equity method is or is not considered appropriate, and accounting policy election for distribution received."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r121",
      "r418"
     ]
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNi",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details": {
       "parentTag": "us-gaap_InvestmentsFairValueDisclosure",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity securities",
        "label": "Other investments",
        "terseLabel": "Equity Securities, FV-NI, Current",
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as current."
       }
      }
     },
     "auth_ref": [
      "r279",
      "r645",
      "r900"
     ]
    },
    "us-gaap_EquitySecuritiesFvNiRealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNiRealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_EquitySecuritiesFvNiRealizedGainLoss",
        "terseLabel": "Equity Securities, FV-NI, Realized Gain (Loss)",
        "documentation": "Amount of realized gain (loss) from sale of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI)."
       }
      }
     },
     "auth_ref": [
      "r772",
      "r1028"
     ]
    },
    "us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesFvNiUnrealizedGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss on equity securities",
        "terseLabel": "Equity Securities, FV-NI, Unrealized Gain (Loss)",
        "negatedLabel": "Loss on equity securities",
        "documentation": "Amount of unrealized gain (loss) on investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI)."
       }
      }
     },
     "auth_ref": [
      "r773",
      "r1028"
     ]
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimate of Fair Value Measurement [Member]",
        "documentation": "Measured as an estimate of fair value."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r647",
      "r916",
      "r917"
     ]
    },
    "mbcn_EstimatedSellingCostsOfImpairedLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "EstimatedSellingCostsOfImpairedLoans",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_EstimatedSellingCostsOfImpairedLoans",
        "terseLabel": "Estimated Selling Costs of Impaired Loans",
        "documentation": "The estimated amount of selling costs that would incur when impaired loans sold."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_ExecutiveDeferredCompensationPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ExecutiveDeferredCompensationPlanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Deferred Compensation Plan [Member]",
        "documentation": "Related to the executive deferred compensation plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ExtendedMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ExtendedMaturityMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extended Maturity [Member]",
        "documentation": "Loan modification for an extension of the term of a loan in which it must be paid."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r905"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisValuationTechniquesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisValuationTechniquesTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Nonrecurring Basis, Valuation Techniques [Table Text Block]",
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique used to measure similar asset in prior period by class of asset or liability on non-recurring basis."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring Basis [Table Text Block]",
        "documentation": "Tabular disclosure of assets, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, by class 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": [
      "r117",
      "r193"
     ]
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities."
       }
      }
     },
     "auth_ref": [
      "r117",
      "r119"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r632",
      "r692",
      "r693",
      "r694",
      "r916",
      "r917",
      "r920",
      "r921",
      "r922"
     ]
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByLiabilityClassAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability Class [Axis]",
        "documentation": "Information by class of liability."
       }
      }
     },
     "auth_ref": [
      "r118",
      "r192"
     ]
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementBasisAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Basis [Axis]",
        "documentation": "Information by measurement basis."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r117",
      "r487",
      "r916",
      "r917"
     ]
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByMeasurementFrequencyAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Axis]",
        "documentation": "Information by measurement frequency."
       }
      }
     },
     "auth_ref": [
      "r631",
      "r632",
      "r634",
      "r635",
      "r640"
     ]
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Text Block]",
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information."
       }
      }
     },
     "auth_ref": [
      "r630"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r514",
      "r519",
      "r632",
      "r692",
      "r920",
      "r921",
      "r922"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r514",
      "r519",
      "r632",
      "r693",
      "r916",
      "r917",
      "r920",
      "r921",
      "r922"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r632",
      "r694",
      "r916",
      "r917",
      "r920",
      "r921",
      "r922"
     ]
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value by Liability Class [Domain]",
        "documentation": "Represents classes of liabilities measured and disclosed at fair value."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementFrequencyDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Frequency [Domain]",
        "documentation": "Measurement frequency."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "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_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r487",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r692",
      "r693",
      "r694",
      "r916",
      "r917",
      "r920",
      "r921",
      "r922"
     ]
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsNonrecurringMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Nonrecurring [Member]",
        "documentation": "Infrequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, not frequently measured at fair value."
       }
      }
     },
     "auth_ref": [
      "r631",
      "r632",
      "r634",
      "r635",
      "r638",
      "r640"
     ]
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsRecurringMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Recurring [Member]",
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value."
       }
      }
     },
     "auth_ref": [
      "r630",
      "r640"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) using recurring unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r32"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net change in unrealized loss on investment securities available-for-sale",
        "documentation": "Amount of gain (loss) recognized in other comprehensive income from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r636"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchasesSalesIssuesSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchasesSalesIssuesSettlements",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchases",
        "documentation": "Amount of purchases, (sales), issuances and (settlements) of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersOutOfLevel3",
        "negatedLabel": "Transfers out of Level III (1)",
        "documentation": "Amount of transfers of financial instrument classified as derivative asset (liability) after deduction of derivative liability (asset) out of level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r637",
      "r639"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
        "periodStartLabel": "Balance",
        "periodEndLabel": "Balance",
        "documentation": "Fair value of financial instrument classified as derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r117"
     ]
    },
    "us-gaap_FairValueOfAssetsAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueOfAssetsAcquired",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchased loan fair value adjustment",
        "documentation": "The fair value of assets acquired in noncash investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r61",
      "r62"
     ]
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal deposit insurance expense",
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance."
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "us-gaap_FederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalFundsSold",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal funds sold",
        "documentation": "The amount outstanding of funds lent to other depository institutions, securities brokers, or securities dealers in the form of Federal Funds sold; for example, immediately available funds lent under agreements or contracts that mature in one business day or roll over under a continuing contract, regardless of the nature of the transaction or the collateral involved, excluding overnight lending for commercial and industrial purposes. Also include Federal Funds sold under agreements to resell on a gross basis, excluding (1) sales of term Federal Funds, (2) due bills representing purchases of securities or other assets by the reporting bank that have not yet been delivered and similar instruments, (3) resale agreements that mature in more than one business day involving assets other than securities, and (4) yield maintenance dollar repurchase agreements."
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "mbcn_FederalHomeLoanBankAdvancesAdditionalBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FederalHomeLoanBankAdvancesAdditionalBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_FederalHomeLoanBankAdvancesAdditionalBorrowingCapacity",
        "terseLabel": "Federal Home Loan Bank Advances, Additional Borrowing Capacity",
        "documentation": "Amount of additional borrowing capacity available from another Federal Home Loan Bank (FHLBank)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FederalHomeLoanBankStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FederalHomeLoanBankStock",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted stock",
        "documentation": "Federal Home Loan Bank (FHLB) stock represents an equity interest in a FHLB. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity)."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "us-gaap_FinanceLeaseInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseInterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance lease cost, Interest Expense",
        "documentation": "Amount of interest expense on finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r668",
      "r671",
      "r930"
     ]
    },
    "mbcn_FinanceLeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinanceLeaseLiabilitiesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease Liabilities [Member]",
        "documentation": "Represents finance lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinanceLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiability",
        "terseLabel": "Finance Lease, Liability",
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease."
       }
      }
     },
     "auth_ref": [
      "r667",
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
        "totalLabel": "Total undiscounted cash flows, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive",
        "terseLabel": "2026 and thereafter, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
        "terseLabel": "2024, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive",
        "terseLabel": "2028, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour",
        "terseLabel": "2027, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree",
        "terseLabel": "2026, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo",
        "terseLabel": "2025, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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": [
      "r675"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount",
        "negatedTerseLabel": "Impact of present value discount, finance",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for finance lease."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "mbcn_FinanceLeaseOtherCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinanceLeaseOtherCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance lease cost, Other",
        "documentation": "Amount of other cost from finance lease."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing right-of-use assets",
        "terseLabel": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization",
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r666"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetAmortization",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinanceLeaseRightOfUseAssetAmortization",
        "terseLabel": "Finance lease cost, Amortization of right-of-use asset",
        "documentation": "Amount of amortization expense attributable to right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r668",
      "r671",
      "r930"
     ]
    },
    "us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average discount rate, Fiance Lease",
        "documentation": "Weighted average discount rate for finance lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r674",
      "r930"
     ]
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average term (years), Fiance Lease (Year)",
        "documentation": "Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r930"
     ]
    },
    "us-gaap_FinanceLoansAndLeasesReceivablePolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLoansAndLeasesReceivablePolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r81",
      "r86",
      "r90",
      "r168",
      "r368",
      "r376",
      "r377",
      "r378"
     ]
    },
    "us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetAcquiredWithCreditDeteriorationMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset Acquired with Credit Deterioration [Member]",
        "documentation": "Financial asset acquired with deteriorated credit quality."
       }
      }
     },
     "auth_ref": [
      "r1014"
     ]
    },
    "us-gaap_FinancialAssetNotPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetNotPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Not Past Due [Member]",
        "documentation": "Financial asset not past due."
       }
      }
     },
     "auth_ref": [
      "r442",
      "r912"
     ]
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialAssetPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Past Due [Member]",
        "documentation": "Financial asset past due."
       }
      }
     },
     "auth_ref": [
      "r442",
      "r912",
      "r1013"
     ]
    },
    "us-gaap_FinancialInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument [Axis]",
        "documentation": "Information by type of financial instrument."
       }
      }
     },
     "auth_ref": [
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r434",
      "r435",
      "r442",
      "r443",
      "r449",
      "r455",
      "r459",
      "r460",
      "r490",
      "r491",
      "r617",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r702",
      "r704",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r768",
      "r913",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r1024",
      "r1025",
      "r1026",
      "r1027"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentPerformanceStatusAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument Performance Status [Axis]",
        "documentation": "Information by category of performance or non-performance status of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r1036"
     ]
    },
    "us-gaap_FinancialInstrumentPerformanceStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentPerformanceStatusDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instrument Performance Status [Domain]",
        "documentation": "Category of performance or non-performance status of financial instruments, including but not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialInstrumentsOwnedAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialInstrumentsOwnedAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancialInstrumentsOwnedAtFairValue",
        "terseLabel": "Financial Instruments, Owned, at Fair Value",
        "documentation": "The aggregate fair value as of the balance sheet date of financial instruments and other positions owned by the entity including: (1) mortgages, mortgage-backed and asset backed securities; (2) US government and agency obligations; (3) state and municipal government obligations; (4) other sovereign government debt; (5) corporate obligations; (6) corporate equities; (7) principal investments; (8) derivative contracts; and (9) physical commodities. Includes both pledged and unpledged holdings."
       }
      }
     },
     "auth_ref": [
      "r126"
     ]
    },
    "us-gaap_FinancialServiceOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialServiceOtherMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Service, Other [Member]",
        "documentation": "Financial assistance, including, but not limited to, management and maintenance of depositor account, credit card, merchant discount, trust, investment and insurance, classified as other."
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "us-gaap_FinancialStandbyLetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancialStandbyLetterOfCreditMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss",
        "terseLabel": "Financing Receivable, Accrued Interest, after Allowance for Credit Loss",
        "documentation": "Amount, after allowance for credit loss, of accrued interest on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r448"
     ]
    },
    "mbcn_FinancingReceivableAllowanceForCreditLossPeriodIncreaseDecreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableAllowanceForCreditLossPeriodIncreaseDecreasePercentage",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_FinancingReceivableAllowanceForCreditLossPeriodIncreaseDecreasePercentage",
        "terseLabel": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease), Percentage",
        "documentation": "Percentage of increase (decrease) in allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableAllowanceForCreditLossPurchasedWithCreditDeteriorationIncrease",
        "terseLabel": "Financing Receivable, Allowance for Credit Loss, Purchased with Credit Deterioration, Increase",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable purchased with credit deterioration."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "mbcn_FinancingReceivableAllowanceForCreditLossTroubledDebtRestructuring": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableAllowanceForCreditLossTroubledDebtRestructuring",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_FinancingReceivableAllowanceForCreditLossTroubledDebtRestructuring",
        "terseLabel": "Financing Receivable, Allowance for Credit Loss, Troubled Debt Restructuring",
        "documentation": "Amount of allowance for credit loss on financing receivable allocated for troubled debt restructurings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": -1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Less: allowance for credit losses",
        "terseLabel": "Financing Receivable, Allowance for Credit Loss",
        "negatedLabel": "Less: Allowance for credit losses",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r257",
      "r259",
      "r261",
      "r282",
      "r432",
      "r436",
      "r441",
      "r1124"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
        "terseLabel": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "documentation": "Amount of increase (decrease) in allowance for credit loss on financing receivable."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r1034"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoveries",
        "documentation": "Amount of increase in allowance for credit loss on financing receivable from recovery."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r440",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, total",
        "negatedLabel": "Charge-offs",
        "documentation": "Amount of writeoff of financing receivable, charged against allowance for credit loss."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r439",
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableBeforeAllowanceForCreditLossAndFee",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee",
        "terseLabel": "Financing Receivable, before Allowance for Credit Loss, Fee and Loan in Process",
        "documentation": "Amortized cost, before allowance for credit loss, fee, and loan in process, of financing receivable. Excludes financing receivable covered under loss sharing agreement and net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r450",
      "r1008",
      "r1125"
     ]
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_FinancingReceivableDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableDeferredIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableDeferredIncome",
        "terseLabel": "Financing Receivable, Deferred Commitment Fee",
        "documentation": "Amount of fee received for commitment to originate or purchase financing receivable where likelihood of commitment being exercised is remote, to be recognized as service income."
       }
      }
     },
     "auth_ref": [
      "r375"
     ]
    },
    "us-gaap_FinancingReceivableModificationToTotalFinancingReceivablesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationToTotalFinancingReceivablesPercent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "to Total Financing Receivables, Percentage",
        "documentation": "Percentage of financing receivable modified during period for debtor experiencing financial difficulty to total financing receivables."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r905"
     ]
    },
    "mbcn_FinancingReceivableModificationsNumberOfContracts": {
     "xbrltype": "integerItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableModificationsNumberOfContracts",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Number of contracts",
        "label": "mbcn_FinancingReceivableModificationsNumberOfContracts",
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationsPostModificationRecordedInvestment2",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Modified, Amortized cost",
        "label": "us-gaap_FinancingReceivableModificationsPostModificationRecordedInvestment2",
        "documentation": "Amortized cost of financing receivable modified during period for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r905",
      "r1009"
     ]
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableModificationsRecordedInvestment",
        "terseLabel": "Financing Receivable, Modified, Accumulated",
        "documentation": "Accumulated amortized cost of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r170",
      "r1009",
      "r1011"
     ]
    },
    "us-gaap_FinancingReceivableNonaccrualInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableNonaccrualInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FinancingReceivableNonaccrualInterestIncome",
        "terseLabel": "Financing Receivable, Nonaccrual, Interest Income",
        "documentation": "Amount of interest income on financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r445"
     ]
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r447"
     ]
    },
    "mbcn_FinancingReceivableNonaccrualWithAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableNonaccrualWithAllowance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonaccrual, With Allowance",
        "documentation": "Amortized cost of financing receivable on nonaccrual status with allowance for credit loss. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, prior",
        "negatedLabel": "Loss",
        "documentation": "Amortized cost of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, four years before",
        "documentation": "Amortized cost of financing receivable originated four years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, current year",
        "documentation": "Amortized cost of financing receivable originated in current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, one year before",
        "documentation": "Amortized cost of financing receivable originated in fiscal year prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, prior",
        "documentation": "Amount of writeoff of financing receivable originated more than five years before current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, three years before",
        "documentation": "Amortized cost of financing receivable originated three years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, two years before",
        "documentation": "Amortized cost of financing receivable originated two years prior to current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r255",
      "r256",
      "r260",
      "r261",
      "r434",
      "r435",
      "r906",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r255",
      "r256",
      "r260",
      "r261",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Still Accruing",
        "terseLabel": "Loans, past due",
        "documentation": "Amortized cost of financing receivable 90 days or more past due and still accruing. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r245",
      "r446",
      "r912"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable [Axis]",
        "documentation": "Information by class of financing receivable determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r89",
      "r255",
      "r256",
      "r260",
      "r261",
      "r369",
      "r371",
      "r372",
      "r373",
      "r374",
      "r442",
      "r443",
      "r449",
      "r905",
      "r907",
      "r908",
      "r911",
      "r912",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Financing Receivable [Domain]",
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk."
       }
      }
     },
     "auth_ref": [
      "r255",
      "r256",
      "r260",
      "r261",
      "r371",
      "r372",
      "r373",
      "r374",
      "r905",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r978",
      "r979",
      "r980"
     ]
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonaccrual",
        "terseLabel": "Loans, current balance",
        "documentation": "Amortized cost of financing receivable on nonaccrual status. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r88",
      "r258",
      "r259",
      "r444"
     ]
    },
    "us-gaap_FinancingReceivableRevolving": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRevolving",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term loans amortized, revolving",
        "documentation": "Amortized cost of financing receivable that can be withdrawn, repaid, and redrawn."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableRevolvingWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableRevolvingWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, revolving",
        "documentation": "Amount of writeoff of financing receivable that can be withdrawn, repaid, and redrawn."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "mbcn_FinancingReceivableTroubledDebtRestructuringPremodification": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableTroubledDebtRestructuringPremodification",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Pre-modification outstanding recorded investment",
        "label": "mbcn_FinancingReceivableTroubledDebtRestructuringPremodification",
        "documentation": "Amount, before troubled debt restructuring, of financing receivable to be modified."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_FinancingReceivableTroubledDebtRestructuringSubsequentDefaultNumberOfContracts": {
     "xbrltype": "integerItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "FinancingReceivableTroubledDebtRestructuringSubsequentDefaultNumberOfContracts",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_FinancingReceivableTroubledDebtRestructuringSubsequentDefaultNumberOfContracts",
        "terseLabel": "Financing Receivable, Troubled Debt Restructuring, Subsequent Default, Number of Contracts",
        "documentation": "Number of financing receivable contracts modified as troubled debt restructuring within previous 12 months, with subsequent payment default."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, four years before",
        "documentation": "Amount of writeoff of financing receivable originated four years before current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, three years before",
        "documentation": "Amount of writeoff of financing receivable originated three years before current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs current",
        "documentation": "Amount of writeoff of financing receivable originated in current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs, two years before",
        "documentation": "Amount of writeoff of financing receivable originated two years before current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current-period gross charge-offs one year before",
        "documentation": "Amount of writeoff of financing receivable originated in fiscal year before current fiscal year. Excludes net investment in lease."
       }
      }
     },
     "auth_ref": [
      "r451",
      "r911"
     ]
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, 30 to 59 Days Past Due [Member]",
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due."
       }
      }
     },
     "auth_ref": [
      "r912"
     ]
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, 60 to 89 Days Past Due [Member]",
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r912"
     ]
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "documentation": "Financial asset equal to or greater than 90 days past due."
       }
      }
     },
     "auth_ref": [
      "r912"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Aging [Axis]",
        "documentation": "Information by period in which financial asset is past due or not past due."
       }
      }
     },
     "auth_ref": [
      "r246",
      "r442",
      "r912"
     ]
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Asset, Aging [Domain]",
        "documentation": "Period in which financial asset is past due or not past due. For past due, element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less than [high end numeric value] [date measure] Past Due [Member] formats."
       }
      }
     },
     "auth_ref": [
      "r246",
      "r442",
      "r912"
     ]
    },
    "us-gaap_FiniteLivedCoreDepositsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedCoreDepositsGross",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedCoreDepositsGross",
        "terseLabel": "Finite-Lived Core Deposits, Gross",
        "documentation": "Bank deposits belonging to an acquired bank that can be counted on as a stable source of lending funds. These deposits have the following attributes: predictable costs and low sensitivity to interest rates. This intangible asset is usually amortized over its estimated useful life."
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetUsefulLife",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetUsefulLife",
        "terseLabel": "Finite-Lived Intangible Asset, Useful Life (Year)",
        "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://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization",
        "terseLabel": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r276",
      "r469"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive",
        "terseLabel": "Finite-Lived Intangible Asset, Expected Amortization, after Year Five",
        "documentation": "Amount of amortization for asset, excluding financial asset and goodwill, lacking physical substance with finite life expected to be recognized 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": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
        "terseLabel": "Remaining",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized 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": [
      "r173"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFive",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive",
        "terseLabel": "Finite-Lived Intangible Asset, Expected Amortization, Year Five",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized 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": [
      "r173"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
        "terseLabel": "Finite-Lived Intangible Asset, Expected Amortization, Year Four",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized 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": [
      "r173"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
        "terseLabel": "Finite-Lived Intangible Asset, Expected Amortization, Year Three",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized 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": [
      "r173"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
        "terseLabel": "Finite-Lived Intangible Asset, Expected Amortization, Year Two",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized 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": [
      "r173"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "documentation": "Information by major type or class of finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r467",
      "r468",
      "r469",
      "r470",
      "r725",
      "r729"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r93"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 9.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Core deposit intangibles",
        "totalLabel": "Finite-Lived Intangible Assets, Net",
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r725"
     ]
    },
    "us-gaap_ForeclosedRealEstateExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeclosedRealEstateExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross other real estate owned expenses",
        "documentation": "Amount of expense recognized during the period for the foreclosure on real estate assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FurnitureAndFixturesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FurnitureAndFixturesGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Furniture, fixtures, and equipment",
        "documentation": "Amount before accumulated depreciation of 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": [
      "r175"
     ]
    },
    "us-gaap_FurnitureAndFixturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FurnitureAndFixturesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": []
    },
    "us-gaap_GainLossOnInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnInvestmentsTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) on Securities [Table Text Block]",
        "documentation": "Tabular disclosure of realized and unrealized gain (loss) on investment in security."
       }
      }
     },
     "auth_ref": [
      "r993",
      "r994"
     ]
    },
    "mbcn_GainLossOnSalesOfLoansExcludingStudentLoansNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "GainLossOnSalesOfLoansExcludingStudentLoansNet",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_GainLossOnSalesOfLoansExcludingStudentLoansNet",
        "negatedLabel": "Gain on sale of loans held for sale",
        "documentation": "The net gain (loss) resulting from a sale of loans (excluding student loans), including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnSalesOfLoansNet",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Gain on sale of loans",
        "label": "Gain on sale of loans",
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r215"
     ]
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss on other real estate owned",
        "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": [
      "r218"
     ]
    },
    "mbcn_GainsLossesOnSalesOfOtherRealEstateGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "GainsLossesOnSalesOfOtherRealEstateGross",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_GainsLossesOnSalesOfOtherRealEstateGross",
        "negatedLabel": "Losses on other real estate owned",
        "documentation": "Amount of gain (loss) resulting from sales and other disposals of other real estate owned before adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Goodwill",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Goodwill resulting from the Liberty merger",
        "label": "Goodwill",
        "terseLabel": "Goodwill",
        "periodStartLabel": "Balance",
        "periodEndLabel": "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": [
      "r275",
      "r464",
      "r730",
      "r914",
      "r931",
      "r1040",
      "r1047"
     ]
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAcquiredDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_GoodwillAcquiredDuringPeriod",
        "terseLabel": "Liberty acquisition",
        "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": [
      "r465",
      "r914"
     ]
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Text Block]",
        "documentation": "The entire disclosure for goodwill and intangible assets."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "us-gaap_GoodwillAndIntangibleAssetsGoodwillPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsGoodwillPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets, Goodwill, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for goodwill. This accounting policy also may address how an entity assesses and measures impairment of goodwill, how reporting units are determined, how goodwill is allocated to such units, and how the fair values of the reporting units are determined."
       }
      }
     },
     "auth_ref": [
      "r463",
      "r466",
      "r914"
     ]
    },
    "us-gaap_GoodwillAndIntangibleAssetsIntangibleAssetsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsIntangibleAssetsPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets, Intangible Assets, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for intangible assets. This accounting policy may address both intangible assets subject to amortization and those that are not. The following also may be disclosed: (1) a description of intangible assets (2) the estimated useful lives of those assets (3) the amortization method used (4) how the entity assesses and measures impairment of such assets (5) how future cash flows are estimated (6) how the fair values of such asset are determined."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_GoodwillPurchaseAccountingAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillPurchaseAccountingAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_GoodwillPurchaseAccountingAdjustments",
        "terseLabel": "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": [
      "r2",
      "r1046"
     ]
    },
    "mbcn_HomeEquityLinesOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "HomeEquityLinesOfCreditMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Home Equity Lines of Credit [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to home equity lines of credit receivables."
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r950",
      "r951",
      "r952"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableAverageRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableAverageRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average recorded investment",
        "documentation": "Average amount of investment of impaired financing receivables with related allowance for credit losses and without a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r84"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableInterestIncomeAccrualMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableInterestIncomeAccrualMethod",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest income recognized",
        "documentation": "Amount of interest income recognized that the financing receivables (with related allowance for credit losses and without a related allowance for credit losses) were impaired."
       }
      }
     },
     "auth_ref": [
      "r83"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recorded investment",
        "documentation": "Amount of investment of impaired financing receivables with related allowance for credit losses and without a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableRelatedAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableRelatedAllowance",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related allowance",
        "documentation": "Amount of allowance for credit losses related to recorded investment."
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableUnpaidPrincipalBalance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ImpairedFinancingReceivableUnpaidPrincipalBalance",
        "terseLabel": "Unpaid principal balance",
        "documentation": "Amount of unpaid principal balance of impaired financing receivables with related allowance for credit losses and without related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recorded investment, with no related allowance",
        "documentation": "Amount of investment in impaired financing receivables for which there is no related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithNoRelatedAllowanceUnpaidPrincipalBalance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unpaid principal balance, with no related allowance",
        "documentation": "Amount of unpaid principal balance of impaired financing receivables for which there is no related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceRecordedInvestment",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recorded investment, with related allowance",
        "documentation": "Amount of investment in impaired financing receivables for which there is a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "us-gaap_ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivableWithRelatedAllowanceUnpaidPrincipalBalance",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unpaid principal balance, with related allowance",
        "documentation": "Unpaid principal balance of impaired financing receivables for which there is a related allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "us-gaap_ImpairedFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairedFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impaired Financing Receivables [Table Text Block]",
        "documentation": "Tabular disclosure of impaired financing receivables."
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "mbcn_ImpairedLoansMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ImpairedLoansMeasurementInput",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral-dependent loans, range",
        "documentation": "Value of input used to measure impaired loans."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_ImpairedLoansReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ImpairedLoansReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral-dependent loans",
        "documentation": "Fair value of impaired loans receivable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ImpairmentOfRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairmentOfRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other real estate owned writedowns",
        "documentation": "The charge against earnings in the period to reduce the carrying amount of real property to fair value."
       }
      }
     },
     "auth_ref": [
      "r998",
      "r1050"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperations",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeLossFromContinuingOperations",
        "terseLabel": "Income before equity in undistributed net income of subsidiaries",
        "documentation": "Amount after tax of income (loss) from continuing operations attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r156",
      "r166",
      "r325",
      "r326",
      "r327",
      "r328",
      "r341",
      "r344"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
        "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": [
      "r1",
      "r150",
      "r207",
      "r350",
      "r357",
      "r361",
      "r363",
      "r737",
      "r765",
      "r904"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
        "terseLabel": "Income before income taxes",
        "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": [
      "r350",
      "r357",
      "r361",
      "r363",
      "r775",
      "r904"
     ]
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromEquityMethodInvestments",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeLossFromEquityMethodInvestments",
        "terseLabel": "Equity in undistributed net income of subsidiaries",
        "negatedTerseLabel": "Equity in undistributed net income of subsidiaries",
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r151",
      "r206",
      "r354",
      "r416",
      "r764"
     ]
    },
    "us-gaap_IncomeLossFromSubsidiariesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromSubsidiariesBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeLossFromSubsidiariesBeforeTax",
        "terseLabel": "Dividends from bank subsidiary",
        "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_IncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Text Block]",
        "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": [
      "r313",
      "r563",
      "r569",
      "r572",
      "r578",
      "r585",
      "r590",
      "r591",
      "r592",
      "r799"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes",
        "label": "us-gaap_IncomeTaxExpenseBenefit",
        "totalLabel": "Total provision",
        "terseLabel": "Income taxes",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r248",
      "r331",
      "r332",
      "r355",
      "r567",
      "r586",
      "r776"
     ]
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax, Policy [Policy Text Block]",
        "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": [
      "r296",
      "r565",
      "r566",
      "r572",
      "r573",
      "r577",
      "r579",
      "r797"
     ]
    },
    "us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision at statutory rate, amount",
        "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": [
      "r568"
     ]
    },
    "us-gaap_IncomeTaxReconciliationOtherAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationOtherAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other, amount",
        "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": [
      "r1096"
     ]
    },
    "us-gaap_IncomeTaxReconciliationTaxExemptIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationTaxExemptIncome",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncomeTaxReconciliationTaxExemptIncome",
        "negatedLabel": "Tax-exempt income, amount",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes."
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "us-gaap_IncomeTaxesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaid",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income."
       }
      }
     },
     "auth_ref": [
      "r55",
      "r59"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet",
        "negatedLabel": "(Increase) in accrued interest receivable",
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_IncreaseDecreaseInDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInDeposits",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net increase (decrease) in deposits",
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r135"
     ]
    },
    "mbcn_IncreaseDecreaseInFinanceLeaseAssetsAddedToPremisesAndEquipmentNoncashInvestingTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "IncreaseDecreaseInFinanceLeaseAssetsAddedToPremisesAndEquipmentNoncashInvestingTransactions",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase in finance lease assets included in premises and equipment",
        "documentation": "Represents the Increase (Decrease) in Finance Lease Assets Added to Premises and Equipment, Noncash Investing Transactions."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_IncreaseDecreaseInFinanceLeaseLiabilitiesAddedToBorrowedFundsNoncashFinancingTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "IncreaseDecreaseInFinanceLeaseLiabilitiesAddedToBorrowedFundsNoncashFinancingTransactions",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease in finance lease liabilities included in other borrowings",
        "documentation": "Represents Increase (Decrease) in Finance Lease Liabilities Added to Borrowed Funds, Noncash Financing Transactions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase 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": [
      "r12"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherOperatingCapitalNet",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet",
        "negatedLabel": "Other, net",
        "negatedTerseLabel": "Other, net",
        "documentation": "Amount of increase (decrease) in operating assets after deduction of operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncrementalCommonSharesAttributableToShareBasedPaymentArrangements",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements",
        "terseLabel": "Additional common stock equivalents (stock options and restricted stock) used to calculate diluted earnings per share (in shares)",
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of share based payment arrangements using the treasury stock method."
       }
      }
     },
     "auth_ref": [
      "r338",
      "r339",
      "r340",
      "r344",
      "r523"
     ]
    },
    "us-gaap_InformationTechnologyAndDataProcessing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InformationTechnologyAndDataProcessing",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Data processing and information technology costs",
        "documentation": "The amount of expenses incurred in the period for information technology and data processing products and services."
       }
      }
     },
     "auth_ref": [
      "r159"
     ]
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2023",
     "localname": "InsiderTradingArrLineItems",
     "auth_ref": [
      "r955"
     ]
    },
    "mbcn_InsurancePolicyAggregateLimit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InsurancePolicyAggregateLimit",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_InsurancePolicyAggregateLimit",
        "terseLabel": "Insurance Policy, Aggregate Limit",
        "documentation": "Amount of aggregate limit on insurance policy."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_InsurancePolicyDeductible": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InsurancePolicyDeductible",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_InsurancePolicyDeductible",
        "terseLabel": "Insurance Policy, Deductible",
        "documentation": "Amount of deductible on insurance policy."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestAndDividendIncomeOperating",
        "totalLabel": "Total interest and dividend income",
        "terseLabel": "Total 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": [
      "r210",
      "r1140"
     ]
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "INTEREST AND DIVIDEND INCOME"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and fees on loans",
        "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": [
      "r209"
     ]
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-bearing demand",
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestExpense",
        "totalLabel": "Total interest expense",
        "terseLabel": "Interest expense",
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r224",
      "r300",
      "r353",
      "r661",
      "r850",
      "r944",
      "r1133"
     ]
    },
    "us-gaap_InterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "INTEREST EXPENSE"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseDeposits",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits",
        "documentation": "Aggregate amount of interest expense on all deposits."
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "us-gaap_InterestExpenseOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseOther",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestExpenseOther",
        "terseLabel": "Other borrowings",
        "documentation": "Amount of interest expense classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseShortTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseShortTermBorrowings",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestExpenseShortTermBorrowings",
        "terseLabel": "Short-term borrowings",
        "documentation": "The aggregate interest expense incurred on short-term borrowings including commercial paper and Federal funds purchased and securities sold under agreements to repurchase."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r252",
      "r253"
     ]
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest-earning deposits in other institutions",
        "documentation": "Interest income derived from funds deposited with both domestic and foreign financial institutions including funds in money market and other accounts."
       }
      }
     },
     "auth_ref": [
      "r221",
      "r252",
      "r253"
     ]
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
        "totalLabel": "NET INTEREST INCOME AFTER PROVISION FOR CREDIT LOSSES",
        "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": [
      "r213"
     ]
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeExpenseNet",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestIncomeExpenseNet",
        "totalLabel": "NET INTEREST INCOME",
        "documentation": "The net amount of operating interest income (expense)."
       }
      }
     },
     "auth_ref": [
      "r211"
     ]
    },
    "us-gaap_InterestIncomeFederalFundsSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeFederalFundsSold",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InterestIncomeFederalFundsSold",
        "terseLabel": "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": [
      "r221",
      "r252",
      "r253"
     ]
    },
    "us-gaap_InterestIncomeSecuritiesBySecurityTypeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeSecuritiesBySecurityTypeAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment securities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax-exempt interest",
        "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": [
      "r220",
      "r252",
      "r253"
     ]
    },
    "us-gaap_InterestIncomeSecuritiesTaxable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestIncomeSecuritiesTaxable",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxable interest",
        "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": [
      "r220",
      "r252",
      "r253"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest on deposits and borrowings",
        "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": [
      "r306",
      "r308",
      "r309"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r131",
      "r1126"
     ]
    },
    "mbcn_InterestRateReductionAndPrincipalForgivenessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InterestRateReductionAndPrincipalForgivenessMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Reduction and Principal Forgiveness [Member]",
        "documentation": "Loan modification for a reduction of contractual interest rate and a reduction in the amount of unpaid principal on a loan.."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_InterestRateReductionAndTermPastDueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InterestRateReductionAndTermPastDueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Reduction and Term Past Due [Member]",
        "documentation": "Represents interest rate reduction and term past due."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest",
        "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": [
      "r989",
      "r1138"
     ]
    },
    "us-gaap_InterestReceivableAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestReceivableAndOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest receivable and other assets",
        "documentation": "Amount of interest receivable and assets classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Axis]",
        "documentation": "Information by entity-defined rating."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r605",
      "r910",
      "r911",
      "r1036"
     ]
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InternalCreditAssessmentDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Credit Assessment [Domain]",
        "documentation": "Entity defined credit risk rating."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_InvestmentAndCashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InvestmentAndCashMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment and Cash [Member]",
        "documentation": "Represents investment/Cash."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentBankingAdvisoryBrokerageAndUnderwritingFeesAndCommissions",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from investment services",
        "documentation": "Amount of fees and commissions from banking, advisory, brokerage, and securities underwriting activities. Activities include, but are not limited to, underwriting securities, private placements of securities, investment advisory and management services, merger and acquisition services, sale and servicing of mutual funds, and other related consulting fees."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "mbcn_InvestmentSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "InvestmentSecuritiesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Securities [Member]",
        "documentation": "Related to investment securities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r871",
      "r873",
      "r875",
      "r878",
      "r879",
      "r880",
      "r881",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r937"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r871",
      "r873",
      "r875",
      "r878",
      "r879",
      "r880",
      "r881",
      "r887",
      "r888",
      "r889",
      "r890",
      "r891",
      "r937"
     ]
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Classified by Contractual Maturity Date [Table Text Block]",
        "documentation": "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InvestmentsFairValueDisclosure",
        "totalLabel": "Total",
        "documentation": "Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method."
       }
      }
     },
     "auth_ref": [
      "r631"
     ]
    },
    "us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
        "terseLabel": "Equity method investments",
        "documentation": "Amount of investment in equity method investee and investment in and advance to affiliate."
       }
      }
     },
     "auth_ref": [
      "r988"
     ]
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "documentation": "The entire disclosure for investments in certain debt and equity securities."
       }
      }
     },
     "auth_ref": [
      "r195",
      "r226",
      "r229",
      "r254",
      "r381",
      "r383",
      "r641",
      "r642"
     ]
    },
    "mbcn_IrrevocableLetterOfCreditMunicipalDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "IrrevocableLetterOfCreditMunicipalDeposits",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_IrrevocableLetterOfCreditMunicipalDeposits",
        "terseLabel": "Irrevocable Letter of Credit, Municipal Deposits",
        "documentation": "Represents irrevocable letter of credit for municipal deposits."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_JuniorSubordinatedDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "JuniorSubordinatedDebtMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Junior Subordinated Debt [Member]",
        "documentation": "Borrowing that has a lower priority than senior instruments in event of liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LaborAndRelatedExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LaborAndRelatedExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries and employee benefits",
        "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": [
      "r995"
     ]
    },
    "us-gaap_LandAndLandImprovements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LandAndLandImprovements",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land and land improvements",
        "documentation": "Amount before accumulated depreciation and depletion of real estate held for productive use and additions or improvements to real estate held for productive use, examples include, but are not limited to, walkways, driveways, fences, and parking lots. Excludes land held for sale."
       }
      }
     },
     "auth_ref": [
      "r987"
     ]
    },
    "mbcn_LbsiInsuranceLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LbsiInsuranceLlcMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LBSI Insurance, LLC [Member]",
        "documentation": "Relating to LBSI Insurance, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LeaseCost",
        "totalLabel": "Total lease cost",
        "documentation": "Amount of lease cost recognized by lessee for lease contract."
       }
      }
     },
     "auth_ref": [
      "r670",
      "r930"
     ]
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCostTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost [Table Text Block]",
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income."
       }
      }
     },
     "auth_ref": [
      "r1111"
     ]
    },
    "mbcn_LeaseDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LeaseDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Disclosure [Text Block]",
        "documentation": "The entire disclosure for operating, finance, sale leaseback leases."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LeaseRightofuseAssetNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LeaseRightofuseAssetNet",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LeaseRightofuseAssetNet",
        "terseLabel": "Lease, Right-of-Use Asset, Net",
        "documentation": "Amount of lessee's right to use underlying asset under operating and finance lease."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LeaseTermAndDiscountRateTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LeaseTermAndDiscountRateTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Term and Discount Rate [Table Text Block]",
        "documentation": "Tabular disclosure of term and discount rate of lease."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LegalEntityTypeOfCounterpartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LegalEntityTypeOfCounterpartyDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity Type of Counterparty [Domain]",
        "documentation": "Nature of the other party participating in a financial transaction."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeLeasesPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Leases [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
        "totalLabel": "Total undiscounted cash flows, operating",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
        "terseLabel": "2026 and thereafter, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
        "terseLabel": "2024, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
        "terseLabel": "2028, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
        "terseLabel": "2027, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
        "terseLabel": "2026, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
        "terseLabel": "2025, operating",
        "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": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
        "negatedTerseLabel": "Impact of present value discount, operating",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "us-gaap_LesseeOperatingLeaseRemainingLeaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseRemainingLeaseTerm",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LesseeOperatingLeaseRemainingLeaseTerm",
        "terseLabel": "Lessee, Operating Lease, Remaining Lease Term (Year)",
        "documentation": "Remaining lease term of operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r1110"
     ]
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_Liabilities",
        "totalLabel": "TOTAL LIABILITIES",
        "terseLabel": "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": [
      "r39",
      "r312",
      "r420",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r602",
      "r603",
      "r604",
      "r648",
      "r820",
      "r903",
      "r946",
      "r1057",
      "r1113",
      "r1114"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LIABILITIES"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LiabilitiesAndStockholdersEquity",
        "totalLabel": "TOTAL LIABILITIES AND STOCKHOLDERS' EQUITY",
        "terseLabel": "TOTAL LIABILITIES AND STOCKHOLDERS' EQUITY",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r147",
      "r204",
      "r760",
      "r931",
      "r999",
      "r1029",
      "r1107"
     ]
    },
    "mbcn_LibertyBancsharesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LibertyBancsharesIncMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liberty Bancshares Inc [Member]",
        "documentation": "Represents Liberty Banshares Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LifeInsuranceCorporateOrBankOwnedPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LifeInsuranceCorporateOrBankOwnedPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Life Insurance Corporate or Bank Owned [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for corporate (COLI) or bank (BOLI) owned life insurance including the amount of cash surrender value that could be received as of the date of the statement of financial position, any restrictions on the company's ability to obtain the value of the life insurance policy on surrender, or any other additional information desired to be disclosed."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LineOfCredit",
        "terseLabel": "Long-Term Line of Credit",
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r203",
      "r1128"
     ]
    },
    "mbcn_LineOfCredit1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LineOfCredit1Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit 1 [Member]",
        "documentation": "Represents line of credit 1."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LineOfCredit2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LineOfCredit2Member",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit 2 [Member]",
        "documentation": "Represents line of credit 2."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity",
        "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": [
      "r37"
     ]
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanRestructuringModificationAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Restructuring Modification [Axis]",
        "documentation": "Information by concessions made to the terms of loan contracts."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r372",
      "r374",
      "r905"
     ]
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanRestructuringModificationDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Restructuring Modification [Domain]",
        "documentation": "Concessions made to the terms of loan contracts, including but not limited to, interest rate reductions, maturity extensions, principal forgiveness, and payment deferral."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r372",
      "r374",
      "r905"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableAllowanceForLoanLossesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableAllowanceForLoanLossesPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Allowance for Loan Losses Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for estimating the allowance for losses on loans and lease receivables. The disclosure may include (a) how the entity determines each element of the allowance, (b) which loans are evaluated individually and which loans are evaluated as a group, (c) how the entity determines both the allocated and unallocated portions of the allowance, (d) how the entity determines the loss factors applied to graded loans in order to develop a general allowance, and (e) what self-correcting mechanism the entity uses to reduce differences between estimated and actual losses."
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableImpairedCommitmentToLend",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LoansAndLeasesReceivableImpairedCommitmentToLend",
        "terseLabel": "Financing Receivable, Modified, Commitment to Lend",
        "documentation": "Amount of commitment to lend additional funds to debtor experiencing financial difficulty for which creditor has modified terms of financing receivable."
       }
      }
     },
     "auth_ref": [
      "r236",
      "r370"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableMortgageBankingActivitiesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableMortgageBankingActivitiesPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage Banking Activity [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for the lending, securitization, sales, transfers and servicing practices for mortgage banking activities."
       }
      }
     },
     "auth_ref": [
      "r893"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LoansAndLeasesReceivableRelatedParties",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "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": [
      "r125",
      "r134"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableRelatedPartiesAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableRelatedPartiesAdditions",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New loans",
        "documentation": "Reflects the amount of new advances made to related parties in the form of loan and lease receivables."
       }
      }
     },
     "auth_ref": [
      "r125",
      "r134"
     ]
    },
    "us-gaap_LoansAndLeasesReceivableRelatedPartiesProceeds": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableRelatedPartiesProceeds",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LoansAndLeasesReceivableRelatedPartiesProceeds",
        "negatedLabel": "Repayments",
        "documentation": "Amount of cash inflow from related parties which reduce the amount of loans and leases receivable due from related parties."
       }
      }
     },
     "auth_ref": [
      "r250",
      "r996"
     ]
    },
    "us-gaap_LoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans [Member]",
        "documentation": "When a lender gives money or property over other debt securities sold by the issuer. In the event the issuer goes bankrupt, senior debt holders receive priority for [must receive] repayment [prior] relative to junior and unsecured (general) creditors."
       }
      }
     },
     "auth_ref": [
      "r75",
      "r901"
     ]
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "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": [
      "r1007"
     ]
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansReceivableFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LoansReceivableFairValueDisclosure",
        "terseLabel": "Net loans",
        "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": [
      "r75"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LongTermDebtMaturitiesAfterYearFiveWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesAfterYearFiveWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesAfterYearFiveWeightedAverageRate",
        "terseLabel": "Beyond 2025, weighted-average rate",
        "documentation": "Long-term debt maturities after year four weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LongTermDebtMaturitiesNextTwelveMonthsWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesNextTwelveMonthsWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesNextTwelveMonthsWeightedAverageRate",
        "terseLabel": "2024, weighted-average rate",
        "documentation": "Long-Term debt maturities next twelve months weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
        "terseLabel": "Beyond 2025, amount",
        "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": [
      "r15",
      "r316",
      "r1062"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
        "terseLabel": "2024, amount",
        "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": [
      "r15",
      "r316",
      "r488"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
        "terseLabel": "2028, amount",
        "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": [
      "r15",
      "r316",
      "r488"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
        "terseLabel": "2027, amount",
        "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": [
      "r15",
      "r316",
      "r488"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
        "terseLabel": "2026, amount",
        "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": [
      "r15",
      "r316",
      "r488"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
        "terseLabel": "2025, amount",
        "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": [
      "r15",
      "r316",
      "r488"
     ]
    },
    "mbcn_LongTermDebtMaturitiesYearFiveWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesYearFiveWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesYearFiveWeightedAverageRate",
        "terseLabel": "2028, weighted-average rate",
        "documentation": "Long-term debt maturities year five weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LongTermDebtMaturitiesYearFourWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesYearFourWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesYearFourWeightedAverageRate",
        "terseLabel": "2027, weighted-average rate",
        "documentation": "Long-term debt maturities year four weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LongTermDebtMaturitiesYearThreeWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesYearThreeWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesYearThreeWeightedAverageRate",
        "terseLabel": "2026, weighted-average rate",
        "documentation": "Long-term debt maturities year three weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_LongTermDebtMaturitiesYearTwoWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "LongTermDebtMaturitiesYearTwoWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_LongTermDebtMaturitiesYearTwoWeightedAverageRate",
        "terseLabel": "2025, weighted-average rate",
        "documentation": "Long-term debt maturities year two weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Axis]",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Domain]",
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r97"
     ]
    },
    "us-gaap_LossContingenciesByNatureOfContingencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingenciesByNatureOfContingencyAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency Nature [Axis]",
        "documentation": "Information by type of existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur."
       }
      }
     },
     "auth_ref": [
      "r472",
      "r473",
      "r474",
      "r477",
      "r1052",
      "r1053"
     ]
    },
    "us-gaap_LossContingencyNatureDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyNatureDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Nature [Domain]",
        "documentation": "An existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur. Resolution of the uncertainty may confirm the incurrence of a loss or impairment of an asset or the incurrence of a liability."
       }
      }
     },
     "auth_ref": [
      "r472",
      "r473",
      "r474",
      "r477",
      "r1052",
      "r1053"
     ]
    },
    "mbcn_MandatorilyRedeemableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "MandatorilyRedeemableSecurities",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_MandatorilyRedeemableSecurities",
        "terseLabel": "Mandatorily Redeemable Securities",
        "documentation": "The amount of mandatorily redeemable securities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MarketableSecuritiesPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketableSecuritiesPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable Securities, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for investment classified as marketable security."
       }
      }
     },
     "auth_ref": [
      "r136"
     ]
    },
    "us-gaap_MarketingAndAdvertisingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MarketingAndAdvertisingExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advertising expense",
        "documentation": "The total expense recognized in the period for promotion, public relations, and brand or product advertising."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MaximumMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r473",
      "r474",
      "r475",
      "r476",
      "r521",
      "r723",
      "r783",
      "r811",
      "r812",
      "r872",
      "r874",
      "r876",
      "r877",
      "r882",
      "r895",
      "r896",
      "r905",
      "r918",
      "r926",
      "r934",
      "r1061",
      "r1115",
      "r1116",
      "r1117",
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "us-gaap_MeasurementInputAppraisedValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputAppraisedValueMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input, Appraised Value [Member]",
        "documentation": "Measurement input using assessed value of property."
       }
      }
     },
     "auth_ref": [
      "r1105"
     ]
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Type [Axis]",
        "documentation": "Information by type of measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r633"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Type [Domain]",
        "documentation": "Measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_MiddlefieldBancCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "MiddlefieldBancCorpMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Middlefield Banc Corp [Member]",
        "documentation": "Related to the legal entity Middlefield Banc Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_MiddlefieldBankingCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "MiddlefieldBankingCompanyMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Middlefield Banking Company [Member]",
        "documentation": "Related to the entity Middle field Banking Company."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MinimumMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r473",
      "r474",
      "r475",
      "r476",
      "r521",
      "r723",
      "r783",
      "r811",
      "r812",
      "r872",
      "r874",
      "r876",
      "r877",
      "r882",
      "r895",
      "r896",
      "r905",
      "r918",
      "r926",
      "r934",
      "r1061",
      "r1115",
      "r1116",
      "r1117",
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "mbcn_MiscellaneousFeeIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "MiscellaneousFeeIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous fee income",
        "documentation": "Represents miscellaneous fee income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mortgage-Backed Securities, Issued by US Government Sponsored Enterprises [Member]",
        "documentation": "Debt securities collateralized by real estate mortgage loans (mortgages), issued by US Government Sponsored Enterprises, such as Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac)."
       }
      }
     },
     "auth_ref": [
      "r1017",
      "r1022",
      "r1023",
      "r1065"
     ]
    },
    "us-gaap_MortgageLoansInProcessOfForeclosureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageLoansInProcessOfForeclosureAmount",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_MortgageLoansInProcessOfForeclosureAmount",
        "terseLabel": "Mortgage Loans in Process of Foreclosure, Amount",
        "documentation": "Recorded investment of consumer mortgage loan receivables secured by residential real estate properties for which formal foreclosure proceedings are in process."
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "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]"
       }
      }
     },
     "auth_ref": [
      "r956"
     ]
    },
    "mbcn_MultifamilyLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "MultifamilyLoanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multifamily Loan [Member]",
        "documentation": "Information pertaining to multifamily loan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
        "totalLabel": "Net cash provided by (used in) financing activities",
        "terseLabel": "Net cash 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": [
      "r307"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FINANCING ACTIVITIES"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
        "totalLabel": "Net cash 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": [
      "r307"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "INVESTING ACTIVITIES"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
        "totalLabel": "Net cash provided by operating activities",
        "terseLabel": "Net cash provided by 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": [
      "r164",
      "r165",
      "r166"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OPERATING ACTIVITIES"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net income",
        "totalLabel": "NET INCOME",
        "terseLabel": "NET INCOME",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r152",
      "r166",
      "r208",
      "r271",
      "r291",
      "r294",
      "r299",
      "r312",
      "r321",
      "r325",
      "r326",
      "r327",
      "r328",
      "r331",
      "r332",
      "r341",
      "r350",
      "r357",
      "r361",
      "r363",
      "r420",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r628",
      "r648",
      "r766",
      "r842",
      "r863",
      "r864",
      "r904",
      "r944",
      "r1057"
     ]
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NonBankSubsidiaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NonBankSubsidiaryMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Bank Subsidiary [Member]",
        "documentation": "Represents information pertaining to a non-bank subsidiary."
       }
      }
     },
     "auth_ref": []
    },
    "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": "ecd_NonRule10b51ArrAdoptedFlag",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted [Flag]"
       }
      }
     },
     "auth_ref": [
      "r956"
     ]
    },
    "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": "ecd_NonRule10b51ArrTrmntdFlag",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r956"
     ]
    },
    "us-gaap_NoncashMergerRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncashMergerRelatedCosts",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Merger-related costs",
        "documentation": "Amount of expense (income) related to the increase (decrease) in reserve for business combination costs. Includes, but is not limited to, legal, accounting, and other costs incurred to consummate the merger."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestBearingDepositLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest-bearing demand",
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_NoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NoninterestExpense",
        "totalLabel": "Total noninterest expense",
        "documentation": "Total aggregate amount of all noninterest expense."
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestExpenseAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NONINTEREST EXPENSE"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncome",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NoninterestIncome",
        "totalLabel": "Total noninterest income",
        "terseLabel": "Total noninterest income",
        "documentation": "The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NONINTEREST INCOME"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoninterestIncomeOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoninterestIncomeOther",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other income",
        "label": "us-gaap_NoninterestIncomeOther",
        "documentation": "Represents the total of noninterest income derived from certain activities and assets including (for example): (1) venture capital investments; (2) bank owned life insurance; (3) foreign currency transactions; and (4) mortgage servicing rights."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "mbcn_NonmaturingDepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NonmaturingDepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_NonmaturingDepositsFairValueDisclosure",
        "terseLabel": "Non-maturing deposits",
        "documentation": "Fair value portion of non-maturing deposit liabilities held by the entity."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NonownerOccupiedLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NonownerOccupiedLoanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-owner occupied Loan [Member]",
        "documentation": "Information pertaining to non-owner occupied loan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonperformingFinancingReceivableMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonperforming Financial Instruments [Member]",
        "documentation": "Category status of financial instruments in which payments are past due in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt, and investments."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_NontaxableMunicipalBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NontaxableMunicipalBondsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nontaxable Municipal Bonds [Member]",
        "documentation": "Long-term debt securities issued by state, city or local governments or the agencies operated by state, city or local governments that are not taxable."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NoteToFinancialStatementDetailsTextual": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NoteToFinancialStatementDetailsTextual",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note To Financial Statement Details Textual"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesPayable",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_NotesPayable",
        "terseLabel": "Notes Payable, Total",
        "documentation": "Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r203",
      "r1128"
     ]
    },
    "us-gaap_NotesPayableOtherPayablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesPayableOtherPayablesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes Payable, Other Payables [Member]",
        "documentation": "A written promise to pay a note to a third party."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NotesReceivableGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesReceivableGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": 1.0,
       "order": 0.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details": {
       "parentTag": "us-gaap_NotesReceivableNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding balance",
        "terseLabel": "Financing Receivable, before Allowance for Credit Loss, Total",
        "negatedLabel": "Loss",
        "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": [
      "r246",
      "r257",
      "r258",
      "r280",
      "r442",
      "r450",
      "r911",
      "r912",
      "r977",
      "r1033"
     ]
    },
    "us-gaap_NotesReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesReceivableNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount",
        "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": [
      "r367",
      "r450",
      "r829"
     ]
    },
    "us-gaap_NotesReceivableNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NotesReceivableNetAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans:"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NotesToFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NotesToFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes To Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NumberOfBranchLocationsByUtilizedLeases": {
     "xbrltype": "integerItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NumberOfBranchLocationsByUtilizedLeases",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_NumberOfBranchLocationsByUtilizedLeases",
        "terseLabel": "Number of Branch Locations by Utilized Leases",
        "documentation": "Represents number of branch locations by utilized locations."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NumberOfBranches": {
     "xbrltype": "integerItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NumberOfBranches",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_NumberOfBranches",
        "terseLabel": "Number of Branches",
        "documentation": "Locations that provide banking services."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NumberOfDaysPastDue": {
     "xbrltype": "durationItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NumberOfDaysPastDue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_NumberOfDaysPastDue",
        "terseLabel": "Number of Days Past Due (Day)",
        "documentation": "The number of days past due."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_NumberOfProductionOfficesByUtilizedLeases": {
     "xbrltype": "integerItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "NumberOfProductionOfficesByUtilizedLeases",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_NumberOfProductionOfficesByUtilizedLeases",
        "terseLabel": "Number of Production Offices by Utilized Leases",
        "documentation": "Represents number of production offices by utilized leases."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OccupancyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OccupancyNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Occupancy 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": [
      "r159",
      "r217",
      "r234"
     ]
    },
    "mbcn_OhioStateFranchiseTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OhioStateFranchiseTax",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ohio state franchise tax",
        "terseLabel": "Ohio state franchise tax",
        "documentation": "Ohio state franchise tax."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OpenTaxYear": {
     "xbrltype": "gYearListItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OpenTaxYear",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OpenTaxYear",
        "terseLabel": "Open Tax Year",
        "documentation": "Tax year that remains open to examination under enacted tax laws, in YYYY format."
       }
      }
     },
     "auth_ref": [
      "r570"
     ]
    },
    "mbcn_OperatingAndFinanceLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OperatingAndFinanceLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating and Finance Lease, Liability, Maturity [Table Text Block]",
        "documentation": "Tabular disclosure of undiscounted cash flows of operating and finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating and finance lease liability recognized in statement of financial position."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseCost",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating lease cost",
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability."
       }
      }
     },
     "auth_ref": [
      "r672",
      "r930"
     ]
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating lease liabilities",
        "terseLabel": "Operating Lease, Liability",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r667"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating right-of-use assets",
        "terseLabel": "Operating Lease, Right-of-Use Asset",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r666"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average discount rate), Operating Lease",
        "documentation": "Weighted average discount rate for operating lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r674",
      "r930"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average term (years), Operating Lease (Year)",
        "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": [
      "r673",
      "r930"
     ]
    },
    "us-gaap_OtherAccruedLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAccruedLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherAccruedLiabilitiesCurrentAndNoncurrent",
        "terseLabel": "Other",
        "documentation": "Amount of expenses incurred but not yet paid classified as other."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "us-gaap_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "us-gaap_OtherAssets",
        "terseLabel": "Other assets",
        "documentation": "Amount of assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r198",
      "r277",
      "r755",
      "r946"
     ]
    },
    "us-gaap_OtherAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets Disclosure [Text Block]",
        "documentation": "The entire disclosure for other assets. This disclosure includes other current assets and other noncurrent assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherAssetsMiscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsMiscellaneous",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherAssetsMiscellaneous",
        "terseLabel": "Other",
        "documentation": "Amount of other miscellaneous assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other borrowings",
        "terseLabel": "Total, amount",
        "documentation": "The carrying amount as of the balance sheet date for the aggregate of other miscellaneous borrowings owed by the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r205"
     ]
    },
    "mbcn_OtherBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherBorrowingsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Borrowings [Member]",
        "documentation": "Primary financial statement caption encompassing other borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OtherBorrowingsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherBorrowingsTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Borrowings [Text Block]",
        "documentation": "Disclosure related to other borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OtherBorrowingsWeightedAverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherBorrowingsWeightedAverageRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_OtherBorrowingsWeightedAverageRate",
        "terseLabel": "Total, weighted-average rate",
        "documentation": "Other borrowings weighted average rate."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OtherCollateralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherCollateralMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Collateral [Member]",
        "documentation": "Represents other collateral."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitment",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments",
        "documentation": "Minimum amount of other commitment not otherwise specified in the taxonomy. Excludes commitments explicitly modeled in the taxonomy, including but not limited to, long-term and short-term purchase commitments, recorded and unrecorded purchase obligations, supply commitments, registration payment arrangements, leases, debt, product warranties, guarantees, environmental remediation obligations, and pensions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherCommitmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCommitmentsTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commitments [Table Text Block]",
        "documentation": "Tabular disclosure of information about obligations resulting from other commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income",
        "totalLabel": "Total other comprehensive income (loss):",
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r25",
      "r191",
      "r292",
      "r295"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income (loss):"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
        "terseLabel": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "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": [
      "r8",
      "r149",
      "r290",
      "r415"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized holding gain (loss) on securities available for sale",
        "documentation": "Amount, before tax and 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": [
      "r285",
      "r288",
      "r415"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
        "negatedTerseLabel": "Tax effect",
        "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",
      "r286"
     ]
    },
    "us-gaap_OtherExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherExpenses",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherExpenses",
        "terseLabel": "Other expense",
        "documentation": "Amount of expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r158"
     ]
    },
    "us-gaap_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherIncome",
        "terseLabel": "Other income",
        "documentation": "Amount of revenue and income classified as other."
       }
      }
     },
     "auth_ref": [
      "r774",
      "r844",
      "r884",
      "r885",
      "r886"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherLiabilities",
        "terseLabel": "Other liabilities",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r132",
      "r753",
      "r816",
      "r817",
      "r946",
      "r1132"
     ]
    },
    "us-gaap_OtherLiabilitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities Disclosure [Text Block]",
        "documentation": "The entire disclosure for other liabilities."
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "us-gaap_OtherLiabilitiesFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherLiabilitiesFairValueDisclosure",
        "terseLabel": "Other borrowings",
        "documentation": "Fair value portion of other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities [Table Text Block]",
        "documentation": "Tabular disclosure of other liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoninterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoninterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other expense",
        "documentation": "Amount of noninterest expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "us-gaap_OtherPostretirementDefinedBenefitPlanLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherPostretirementDefinedBenefitPlanLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
       "parentTag": "us-gaap_AccruedLiabilitiesAndOtherLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued executives' benefits",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit other postretirement plan. Excludes pension plan."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r101",
      "r202"
     ]
    },
    "us-gaap_OtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherRealEstate",
        "terseLabel": "Other real estate owned",
        "documentation": "Carrying amount of other real estate not separately disclosed, including, but not limited to, real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. This does not include real estate assets taken in settlement of troubled loans through surrender or foreclosure."
       }
      }
     },
     "auth_ref": [
      "r128"
     ]
    },
    "mbcn_OtherRealEstateOwnedFairValueDisclosures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherRealEstateOwnedFairValueDisclosures",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_OtherRealEstateOwnedFairValueDisclosures",
        "terseLabel": "Other real estate owned",
        "documentation": "Fair value portion of other real estate owned."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherRealEstateOwnedMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherRealEstateOwnedMeasurementInput",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_OtherRealEstateOwnedMeasurementInput",
        "terseLabel": "Other real estate owned, range",
        "documentation": "Value of input used to measure real estate owned by financial institution by financial institution which is not directly related to its business."
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "mbcn_OtherRestructuringsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherRestructuringsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Restructurings [Member]",
        "documentation": "Other restructurings."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OtherthantemporaryImpairmentLossDebtSecuritiesAvailableforsale1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OtherthantemporaryImpairmentLossDebtSecuritiesAvailableforsale1",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_OtherthantemporaryImpairmentLossDebtSecuritiesAvailableforsale1",
        "terseLabel": "Other-than-temporary Impairment Loss, Debt Securities, Available-for-Sale 1",
        "documentation": "Amount of other-than-temporary impairment (OTTI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), recognized in earnings and other comprehensive loss (OCI)."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OverdraftFeesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OverdraftFeesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Overdraft Fees [Member]",
        "documentation": "Information pertaining to overdraft fees."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_OwnerOccupiedLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "OwnerOccupiedLoanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Owner Occupied Loan [Member]",
        "documentation": "Information pertaining to owner occupied loan."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ParentCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ParentCompanyMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r316"
     ]
    },
    "us-gaap_PassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PassMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pass [Member]",
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Past Due [Table Text Block]",
        "documentation": "Tabular disclosure of aging analysis for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r89",
      "r912",
      "r1035"
     ]
    },
    "mbcn_PaymentDeferralAndExtendedMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "PaymentDeferralAndExtendedMaturityMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment Deferral and Extended Maturity [Member]",
        "documentation": "Represents payment deferral and extended maturity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentDeferralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentDeferralMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment Deferral [Member]",
        "documentation": "Loan modification for a temporary postponement of loan payments."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r372",
      "r374"
     ]
    },
    "mbcn_PaymentProceedsForOriginationLoanMortgageHeldforsale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "PaymentProceedsForOriginationLoanMortgageHeldforsale",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_PaymentProceedsForOriginationLoanMortgageHeldforsale",
        "negatedLabel": "Origination of loans held for sale",
        "documentation": "The amount of cash paid for (proceeds from) the origination of mortgages that are held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsForProceedsFromLoansAndLeases",
        "negatedLabel": "Increase in loans, net",
        "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": [
      "r736"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsForRepurchaseOfCommonStock",
        "negatedLabel": "Repurchase of common shares",
        "negatedTerseLabel": "Repurchase of common shares",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfDividendsCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsOfDividendsCommonStock",
        "negatedLabel": "Cash dividends",
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity."
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt",
        "negatedLabel": "Purchases",
        "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": [
      "r51",
      "r304",
      "r382"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireBusinessesGross",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash paid in lieu of fractional shares",
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r600"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireBusinessesNetOfCashAcquired",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired",
        "negatedLabel": "Acquisition, net of cash paid",
        "documentation": "The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "us-gaap_PaymentsToAcquireFederalHomeLoanBankStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireFederalHomeLoanBankStock",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsToAcquireFederalHomeLoanBankStock",
        "negatedLabel": "Purchase of restricted stock",
        "documentation": "Amount of cash outflow to acquire Federal Home Loan Bank (FHLB) stock."
       }
      }
     },
     "auth_ref": [
      "r997"
     ]
    },
    "us-gaap_PaymentsToAcquireOtherInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireOtherInvestments",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsToAcquireOtherInvestments",
        "negatedLabel": "Purchase of other investments",
        "documentation": "Amount of cash outflow to acquire investments classified as other."
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment",
        "negatedLabel": "Purchase of premises and equipment",
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets."
       }
      }
     },
     "auth_ref": [
      "r163"
     ]
    },
    "mbcn_PercentOfCommonStock": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "PercentOfCommonStock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_PercentOfCommonStock",
        "terseLabel": "Percent of Common Stock",
        "documentation": "Percent of common stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PlanNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Axis]",
        "documentation": "Information by plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1066",
      "r1067",
      "r1068",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1074",
      "r1075",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084",
      "r1085",
      "r1086",
      "r1087",
      "r1088",
      "r1089",
      "r1090",
      "r1091"
     ]
    },
    "us-gaap_PlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Domain]",
        "documentation": "Plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1066",
      "r1067",
      "r1068",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1074",
      "r1075",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084",
      "r1085",
      "r1086",
      "r1087",
      "r1088",
      "r1089",
      "r1090",
      "r1091"
     ]
    },
    "us-gaap_PledgedStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Axis]",
        "documentation": "Information by pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r601",
      "r814",
      "r929"
     ]
    },
    "us-gaap_PledgedStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgedStatusDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledged Status [Domain]",
        "documentation": "Pledged or not pledged status of asset owned by entity."
       }
      }
     },
     "auth_ref": [
      "r601",
      "r814",
      "r929"
     ]
    },
    "us-gaap_PledgingPurposeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Axis]",
        "documentation": "Information by pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r703",
      "r929",
      "r932",
      "r965"
     ]
    },
    "us-gaap_PledgingPurposeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PledgingPurposeDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Domain]",
        "documentation": "Pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r703",
      "r929",
      "r932",
      "r965"
     ]
    },
    "us-gaap_PolicyTextBlockAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PolicyTextBlockAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PolicyTextBlockAbstract",
        "terseLabel": "Accounting Policies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Portion at Fair Value Measurement [Member]",
        "documentation": "Measured at fair value for financial reporting purposes."
       }
      }
     },
     "auth_ref": [
      "r646"
     ]
    },
    "mbcn_PremisesAndEquipmentNetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "PremisesAndEquipmentNetMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premises and Equipment, Net [Member]",
        "documentation": "Primary financial statement caption encompassing premises and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification, Comparability Adjustment [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for reclassification affecting comparability of financial statement. Excludes amendment to accounting standards, other change in accounting principle, and correction of error."
       }
      }
     },
     "auth_ref": [
      "r986"
     ]
    },
    "us-gaap_ProceedsFromLifeInsurancePolicies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromLifeInsurancePolicies",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from bank-owned life insurance",
        "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": [
      "r10",
      "r50"
     ]
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from repayments and maturities",
        "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": [
      "r304",
      "r305",
      "r1016"
     ]
    },
    "mbcn_ProceedsFromPaymentForSaleLoanMortgageHeldforsale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ProceedsFromPaymentForSaleLoanMortgageHeldforsale",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from sale of loans held for sale",
        "documentation": "The cash inflow (outflow) from sales of loans that are secured with real estate mortgages and are held with the intention to resell in the near future."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromRepaymentsOfShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromRepaymentsOfShortTermDebt",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net increase in short-term borrowings",
        "documentation": "The net cash inflow or outflow for borrowing having initial term of repayment within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from sale of securities",
        "terseLabel": "Proceeds from Sale and Maturity of Marketable Securities",
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities (held-to-maturity or available-for-sale) during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from the sale of other real estate owned",
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from the disposal of premises and equipment",
        "documentation": "The cash inflow from the sale of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r161"
     ]
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "documentation": "Information by product and service, or group of similar products and similar services."
       }
      }
     },
     "auth_ref": [
      "r364",
      "r724",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r898",
      "r919",
      "r933",
      "r969",
      "r1054",
      "r1055",
      "r1063",
      "r1129"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "documentation": "Product or service, or a group of similar products or similar services."
       }
      }
     },
     "auth_ref": [
      "r364",
      "r724",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r898",
      "r919",
      "r933",
      "r969",
      "r1054",
      "r1055",
      "r1063",
      "r1129"
     ]
    },
    "us-gaap_ProfessionalFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfessionalFees",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Professional fees",
        "documentation": "A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer."
       }
      }
     },
     "auth_ref": [
      "r944",
      "r1134",
      "r1135"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Axis]",
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "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": [
      "r174",
      "r240",
      "r243",
      "r244"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentGross",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PropertyPlantAndEquipmentGross",
        "totalLabel": "Total premises and equipment",
        "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": [
      "r175",
      "r273",
      "r763"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premises and equipment, net",
        "totalLabel": "Total premises and equipment, net",
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r742",
      "r763",
      "r931"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "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": [
      "r14",
      "r240",
      "r243",
      "r761"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table Text Block]",
        "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": [
      "r14"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Domain]",
        "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": [
      "r175"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_PropertyPlantAndEquipmentUsefulLife",
        "terseLabel": "Property, Plant and Equipment, Useful Life (Year)",
        "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_ProvisionForLoanLeaseAndOtherLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProvisionForLoanLeaseAndOtherLosses",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision",
        "label": "us-gaap_ProvisionForLoanLeaseAndOtherLosses",
        "documentation": "Amount of expense related loan transactions, lease transactions, credit loss from transactions other than loan and lease transactions, and other loss based on assessment of uncollectability from the counterparty to reduce the account to their net realizable value."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r22",
      "r212"
     ]
    },
    "us-gaap_ProvisionForLoanLossesExpensed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProvisionForLoanLossesExpensed",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for credit losses",
        "documentation": "Amount of credit loss expense (reversal of expense) for financing receivable."
       }
      }
     },
     "auth_ref": [
      "r437",
      "r732"
     ]
    },
    "us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "QualifiedAffordableHousingProjectInvestmentsCommitment",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_QualifiedAffordableHousingProjectInvestmentsCommitment",
        "terseLabel": "Qualified Affordable Housing Project Investments, Commitment",
        "documentation": "Amount of commitment or contingent commitments to qualified affordable housing project investments."
       }
      }
     },
     "auth_ref": [
      "r962"
     ]
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r473",
      "r474",
      "r475",
      "r476",
      "r513",
      "r521",
      "r549",
      "r550",
      "r551",
      "r695",
      "r723",
      "r783",
      "r811",
      "r812",
      "r872",
      "r874",
      "r876",
      "r877",
      "r882",
      "r895",
      "r896",
      "r905",
      "r918",
      "r926",
      "r934",
      "r937",
      "r1051",
      "r1061",
      "r1116",
      "r1117",
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r473",
      "r474",
      "r475",
      "r476",
      "r513",
      "r521",
      "r549",
      "r550",
      "r551",
      "r695",
      "r723",
      "r783",
      "r811",
      "r812",
      "r872",
      "r874",
      "r876",
      "r877",
      "r882",
      "r895",
      "r896",
      "r905",
      "r918",
      "r926",
      "r934",
      "r937",
      "r1051",
      "r1061",
      "r1116",
      "r1117",
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "us-gaap_RealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstateMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Member]",
        "documentation": "Property consisting of land, land improvement and buildings."
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "us-gaap_RealEstatePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealEstatePolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for entities that primarily develop and then sell real property at retail or otherwise."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r122"
     ]
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RealizedInvestmentGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_RealizedInvestmentGainsLosses",
        "terseLabel": "Realized Investment Gains (Losses)",
        "documentation": "Amount of realized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r771"
     ]
    },
    "mbcn_RedemptionOfRestrictedStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "RedemptionOfRestrictedStock",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Redemption of restricted stock",
        "documentation": "Represents amount of redemption of restricted stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Capital Requirements under Banking Regulations [Text Block]",
        "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": [
      "r743",
      "r744",
      "r745",
      "r747",
      "r748",
      "r749",
      "r751",
      "r752"
     ]
    },
    "us-gaap_RelatedPartyDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyDepositLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_RelatedPartyDepositLiabilities",
        "terseLabel": "Related Party Deposit Liabilities",
        "documentation": "Amount of deposits held by the entity for a related party (entity, shareholder, employee)."
       }
      }
     },
     "auth_ref": [
      "r1001"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions Disclosure [Text Block]",
        "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": [
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r800",
      "r801",
      "r802",
      "r847",
      "r848",
      "r849",
      "r869",
      "r870"
     ]
    },
    "us-gaap_RentalIncomeNonoperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RentalIncomeNonoperating",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross rental income",
        "documentation": "Income earned by providing the use of assets to an outside party in exchange for a payment or series of payments that is nonoperating in nature."
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "us-gaap_RepaymentsOfOtherDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfOtherDebt",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_RepaymentsOfOtherDebt",
        "negatedLabel": "Repayment of other borrowings",
        "documentation": "Amount of cash outflow for the payment of debt classified as other."
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "mbcn_ReservesRequiredByFederalReserveBank": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ReservesRequiredByFederalReserveBank",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_ReservesRequiredByFederalReserveBank",
        "terseLabel": "Reserves Required by Federal Reserve Bank",
        "documentation": "Reserves required by Federal Reserve Bank."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResidentialPortfolioSegmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Residential Portfolio Segment [Member]",
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock [Member]",
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met."
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings",
        "terseLabel": "Retained Earnings (Accumulated Deficit)",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r144",
      "r177",
      "r759",
      "r790",
      "r795",
      "r798",
      "r822",
      "r931"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r317",
      "r318",
      "r319",
      "r322",
      "r330",
      "r332",
      "r425",
      "r431",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r612",
      "r613",
      "r616",
      "r626",
      "r786",
      "r788",
      "r804",
      "r1136"
     ]
    },
    "mbcn_RetirementPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "RetirementPlanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan [Member]",
        "documentation": "Related to the retirement plan."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerIncludingAssessedTax",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement": {
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest income revenue",
        "documentation": "Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise."
       }
      }
     },
     "auth_ref": [
      "r351",
      "r352",
      "r356",
      "r359",
      "r360",
      "r364",
      "r365",
      "r366",
      "r509",
      "r510",
      "r724"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for revenue from contract with customer."
       }
      }
     },
     "auth_ref": [
      "r251",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r506",
      "r507",
      "r508",
      "r897"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Text Block]",
        "documentation": "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset. Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer. Excludes insurance and lease contracts."
       }
      }
     },
     "auth_ref": [
      "r251",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r511"
     ]
    },
    "mbcn_RevenueFromInterestIncomeAndNoninterestIncomePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "RevenueFromInterestIncomeAndNoninterestIncomePercent",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_RevenueFromInterestIncomeAndNoninterestIncomePercent",
        "terseLabel": "Revenue from Interest Income and Noninterest Income, Percent",
        "documentation": "Represents the percentage of revenue from interest income and noninterest income."
       }
      }
     },
     "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": "ecd_Rule10b51ArrAdoptedFlag",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted [Flag]"
       }
      }
     },
     "auth_ref": [
      "r956"
     ]
    },
    "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": "ecd_Rule10b51ArrTrmntdFlag",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r956"
     ]
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r1108",
      "r1109"
     ]
    },
    "mbcn_ScheduleOfAdditionalInformationRelatedToImpairedLoansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ScheduleOfAdditionalInformationRelatedToImpairedLoansTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Additional Information Related to Impaired Loans [Table Text Block]",
        "documentation": "Schedule of additional information related to impaired loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Available-for-Sale Securities Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Business Acquisitions, by Acquisition [Table Text Block]",
        "documentation": "Tabular disclosure of a material business combination completed during the period, including background, timing, and recognized assets and liabilities. This table does not include leveraged buyouts."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r110"
     ]
    },
    "mbcn_ScheduleOfCollateralDependentLoansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ScheduleOfCollateralDependentLoansTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Collateral Dependent Loans [Table Text Block]",
        "documentation": "Tabular disclosure of collateral dependent loans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations [Table Text Block]",
        "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": [
      "r746",
      "r750"
     ]
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "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": [
      "r185"
     ]
    },
    "srt_ScheduleOfCondensedBalanceSheetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedBalanceSheetTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Balance Sheet [Table Text Block]",
        "documentation": "Tabular disclosure of condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r1002"
     ]
    },
    "srt_ScheduleOfCondensedCashFlowStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedCashFlowStatementTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Cash Flow Statement [Table Text Block]",
        "documentation": "Tabular disclosure of condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r1002"
     ]
    },
    "srt_ScheduleOfCondensedIncomeStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfCondensedIncomeStatementTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Income Statement [Table Text Block]",
        "documentation": "Tabular disclosure of condensed income statement, including, but not limited to, income statements of consolidated entities and consolidation eliminations."
       }
      }
     },
     "auth_ref": [
      "r981",
      "r1002"
     ]
    },
    "us-gaap_ScheduleOfCreditLossesForFinancingReceivablesCurrentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfCreditLossesForFinancingReceivablesCurrentTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Current, Allowance for Credit Loss [Table Text Block]",
        "documentation": "Tabular disclosure of allowance for credit loss of financing receivable, classified as current."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r1034"
     ]
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDebtTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Debt [Table Text Block]",
        "documentation": "Tabular disclosure of information pertaining to short-term and long-debt instruments or arrangements, including but not limited to identification of terms, features, collateral requirements and other information necessary to a fair presentation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "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": [
      "r184"
     ]
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "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": [
      "r183"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Axis]",
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r417",
      "r418",
      "r419"
     ]
    },
    "mbcn_ScheduleOfFinancingReceivableBySegmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ScheduleOfFinancingReceivableBySegmentTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule Of Financing Receivable By Segment [Table Text Block]",
        "documentation": "The tabular disclosure for financing receivables, by segment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Nonaccrual [Table Text Block]",
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r443"
     ]
    },
    "us-gaap_ScheduleOfGoodwillTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfGoodwillTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Goodwill [Table Text Block]",
        "documentation": "Tabular disclosure of goodwill by reportable segment and in total which includes a rollforward schedule."
       }
      }
     },
     "auth_ref": [
      "r914",
      "r1039",
      "r1040",
      "r1041",
      "r1042",
      "r1043",
      "r1044",
      "r1045",
      "r1046",
      "r1047",
      "r1048",
      "r1049"
     ]
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Maturities of Long-Term Debt [Table Text Block]",
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "us-gaap_ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Table Text Block]",
        "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": [
      "r63",
      "r64",
      "r70",
      "r71"
     ]
    },
    "us-gaap_ScheduleOfOtherAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfOtherAssetsTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Other Assets [Table Text Block]",
        "documentation": "Tabular disclosure of the carrying amounts of other assets. This disclosure includes other current assets and other noncurrent assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]",
        "documentation": "Tabular disclosure of the amounts recognized as of the acquisition date for each major class of assets acquired and liabilities assumed. May include but not limited to the following: (a) acquired receivables; (b) contingencies recognized at the acquisition date; and (c) the fair value of noncontrolling interests in the acquiree."
       }
      }
     },
     "auth_ref": [
      "r189"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRelatedPartyTransactionsTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Related Party Transactions [Table Text Block]",
        "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_ScheduleOfServicingAssetsAtAmortizedValueTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Servicing Asset at Amortized Cost [Table Text Block]",
        "documentation": "Tabular disclosure of activity in the balance of servicing assets subsequently measured at amortized cost. Includes, but is not limited to, beginning and ending balances, additions, disposals, and amortization."
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Restricted Stock Unit, Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the number and weighted-average grant date fair value for restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock units that were granted, vested, or forfeited during the year."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "us-gaap_ScheduleOfShortTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShortTermDebtTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Short-Term Debt [Table Text Block]",
        "documentation": "Tabular disclosure of short-term debt arrangements (having initial terms of repayment within one year or the normal operating cycle, if longer) including: (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; (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": [
      "r38"
     ]
    },
    "us-gaap_ScheduleOfWeightedAverageNumberOfSharesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Weighted Average Number of Shares [Table Text Block]",
        "documentation": "Tabular disclosure of the weighted average number of shares used in calculating basic net earnings per share (or unit) and diluted earnings per share (or unit)."
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "us-gaap_SecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuredDebt",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_SecuredDebt",
        "terseLabel": "Other borrowings",
        "documentation": "Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower."
       }
      }
     },
     "auth_ref": [
      "r35",
      "r203",
      "r1128"
     ]
    },
    "mbcn_SecuredOvernightFinancingRateSofrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SecuredOvernightFinancingRateSofrMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Secured Overnight Financing Rate (SOFR) [Member]",
        "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)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase",
        "terseLabel": "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": [
      "r130",
      "r283",
      "r284",
      "r314",
      "r315",
      "r872",
      "r874",
      "r877",
      "r882"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r947"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r949"
     ]
    },
    "mbcn_ServiceChargeAndOtherFeesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ServiceChargeAndOtherFeesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service Charge and Other Fees [Member]",
        "documentation": "Information pertaining to service charge and other fees."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ServicingAssetAtAmortizedValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ServicingAssetAtAmortizedValue",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ServicingAssetAtAmortizedValue",
        "periodStartLabel": "Beginning of year",
        "periodEndLabel": "End of year",
        "documentation": "Amortized amount of contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer."
       }
      }
     },
     "auth_ref": [
      "r705",
      "r712",
      "r964"
     ]
    },
    "us-gaap_ServicingAssetAtAmortizedValueAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ServicingAssetAtAmortizedValueAdditions",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ServicingAssetAtAmortizedValueAdditions",
        "terseLabel": "Additions",
        "documentation": "Amount of additions from purchases, assumption or transfer to contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer."
       }
      }
     },
     "auth_ref": [
      "r713"
     ]
    },
    "us-gaap_ServicingAssetAtAmortizedValueAmortization1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ServicingAssetAtAmortizedValueAmortization1",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ServicingAssetAtAmortizedValueAmortization1",
        "negatedLabel": "Amortization",
        "documentation": "Amount of amortization of contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer."
       }
      }
     },
     "auth_ref": [
      "r715"
     ]
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ServicingAssetAtFairValueAmount",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ServicingAssetAtFairValueAmount",
        "terseLabel": "Servicing Asset at Fair Value, Amount",
        "documentation": "Fair value of an asset representing net future revenue from contractually specified servicing fees, late charges, and other ancillary revenues, in excess of future costs related to servicing arrangements."
       }
      }
     },
     "auth_ref": [
      "r705",
      "r706",
      "r707",
      "r708"
     ]
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensation",
        "terseLabel": "Stock-based compensation expense, net",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period (Year)",
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition."
       }
      }
     },
     "auth_ref": [
      "r927"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
        "negatedLabel": "Forfeited (in shares)",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forfeited, weighted average grant date fair value per share (in dollars per share)",
        "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": [
      "r541"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Granted (in shares)",
        "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": [
      "r539"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Granted, weighted average grant date fair value per share (in dollars per share)",
        "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": [
      "r539"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
        "periodStartLabel": "Nonvested (in shares)",
        "periodEndLabel": "Nonvested (in shares)",
        "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": [
      "r536",
      "r537"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
        "periodStartLabel": "Nonvested, weighted average grant date fair value per share (in dollars per share)",
        "periodEndLabel": "Nonvested, weighted average grant date fair value per share (in dollars per share)",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r536",
      "r537"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
        "negatedLabel": "Vested (in shares)",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r540"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
        "terseLabel": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "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": [
      "r543"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vested, weighted average grant date fair value per share (in dollars per share)",
        "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": [
      "r540"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber",
        "terseLabel": "Share-Based Compensation Arrangement by Share-Based Payment Award, Non-Option Equity Instruments, Outstanding, Number (in shares)",
        "documentation": "Number of equity instruments other than options outstanding, including both vested and non-vested instruments."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r31"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized (in shares)",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r928"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
        "terseLabel": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant (in shares)",
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable."
       }
      }
     },
     "auth_ref": [
      "r102"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Domain]",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r525",
      "r526",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost."
       }
      }
     },
     "auth_ref": [
      "r522",
      "r527",
      "r546",
      "r547",
      "r548",
      "r549",
      "r552",
      "r558",
      "r559",
      "r560",
      "r561"
     ]
    },
    "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsAverageTotalShareholderAnnualReturnPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsAverageTotalShareholderAnnualReturnPercentage",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsAverageTotalShareholderAnnualReturnPercentage",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Average Total Shareholder Annual Return, Percentage",
        "documentation": "Percentage of average total shareholder annual return necessary for vesting of share based payment award."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsCappedTotalShareholderAnnualReturnPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsCappedTotalShareholderAnnualReturnPercentage",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsCappedTotalShareholderAnnualReturnPercentage",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Capped Total Shareholder Annual Return, Percentage",
        "documentation": "The percentage of capped total shareholder return under share based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentOtherThanOptionsExpectedToVest": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentOtherThanOptionsExpectedToVest",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected to vest as of December 31, 2023 (in shares)",
        "documentation": "The amount of share-based compensation arrangement by share-based payment award, equity instruments other than options that are expected to vest."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected to vest as of December 31, 2023 (in dollars per share)",
        "documentation": "The weighted average fair value as of the grant date pertaining to an equity-based award plan other than a stock (or unit) option plan that is expected to vest."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term (Year)",
        "documentation": "Expected term of 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": [
      "r548"
     ]
    },
    "us-gaap_ShortTermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance at year-end",
        "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": [
      "r138",
      "r200",
      "r931",
      "r1127"
     ]
    },
    "us-gaap_ShortTermDebtTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Debt [Text Block]",
        "documentation": "The entire disclosure for short-term debt."
       }
      }
     },
     "auth_ref": [
      "r176"
     ]
    },
    "us-gaap_ShortTermDebtWeightedAverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtWeightedAverageInterestRate",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average rate at year-end",
        "documentation": "Weighted average interest rate of short-term debt outstanding calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "us-gaap_ShortTermDebtWeightedAverageInterestRateOverTime": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermDebtWeightedAverageInterestRateOverTime",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average rate during the year",
        "documentation": "Weighted average interest rate of short-term debt outstanding calculated over time."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShorttermDebtAverageOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtAverageOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average balance outstanding",
        "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": [
      "r252",
      "r253",
      "r850"
     ]
    },
    "us-gaap_ShorttermDebtMaximumMonthendOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShorttermDebtMaximumMonthendOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum month-end balance",
        "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": [
      "r139"
     ]
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant Accounting Policies [Text Block]",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r311"
     ]
    },
    "us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit",
        "terseLabel": "Significant Change in Unrecognized Tax Benefits is Reasonably Possible, Amount of Unrecorded Benefit",
        "documentation": "The amount of the unrecognized tax benefit of a position taken for which it is reasonably possible that the total amount thereof will significantly increase or decrease within twelve months of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_SpecialMentionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SpecialMentionMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Special Mention [Member]",
        "documentation": "A category of financing receivables considered to have potential weaknesses that deserve management's close attention. If left uncorrected, those potential weaknesses may result in a deterioration of the repayment prospects for the asset or of the creditor's position at some future date."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "mbcn_SpecialPurposeEntityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SpecialPurposeEntityMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Special Purpose Entity [Member]",
        "documentation": "Related to certain special purpose entities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r45",
      "r267",
      "r297",
      "r298",
      "r299",
      "r317",
      "r318",
      "r319",
      "r322",
      "r330",
      "r332",
      "r349",
      "r425",
      "r431",
      "r492",
      "r555",
      "r556",
      "r557",
      "r583",
      "r584",
      "r609",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r626",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r680",
      "r786",
      "r787",
      "r788",
      "r804",
      "r865"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementLineItems",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r317",
      "r318",
      "r319",
      "r349",
      "r724",
      "r796",
      "r805",
      "r813",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r821",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r830",
      "r831",
      "r832",
      "r833",
      "r835",
      "r836",
      "r837",
      "r838",
      "r839",
      "r841",
      "r845",
      "r846",
      "r851",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r865",
      "r938"
     ]
    },
    "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://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-income-statement",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tax-rate-reconciliation-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions",
      "http://middlefieldbank.bank/20231231/role/statement-note-18-regulatory-restrictions-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-loans-to-related-party-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-business-purchase-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-pro-forma-information-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events",
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-goodwill-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r317",
      "r318",
      "r319",
      "r349",
      "r724",
      "r796",
      "r805",
      "r813",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r821",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r830",
      "r831",
      "r832",
      "r833",
      "r835",
      "r836",
      "r837",
      "r838",
      "r839",
      "r841",
      "r845",
      "r846",
      "r851",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r865",
      "r938"
     ]
    },
    "mbcn_StockAuthorizationFeeAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "StockAuthorizationFeeAmount",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_StockAuthorizationFeeAmount",
        "negatedLabel": "Authorization of additional common shares",
        "documentation": "The value of the stock authorization fee."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock issued in business combination (in shares)",
        "terseLabel": "Stock Issued During Period, Shares, Acquisitions (in shares)",
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r143",
      "r177"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesShareBasedCompensation",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock-based compensation, net (in shares)",
        "terseLabel": "Shares Issued, Shares, Share-Based Payment Arrangement, after Forfeiture (in shares)",
        "documentation": "Number, after forfeiture, of shares or units issued under share-based payment arrangement. Excludes shares or units issued under employee stock ownership plan (ESOP)."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r142",
      "r143",
      "r177"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common stock issued in business combination",
        "documentation": "Value of stock issued pursuant to acquisitions during the period."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r45",
      "r177"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_StockIssuedDuringPeriodValueNewIssues",
        "terseLabel": "Stock Issued During Period, Value, New Issues",
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r142",
      "r143",
      "r177",
      "r804",
      "r865",
      "r892",
      "r945"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueShareBasedCompensation",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock-based compensation, net",
        "documentation": "Value, after forfeiture, of shares issued under share-based payment arrangement. Excludes employee stock ownership plan (ESOP)."
       }
      }
     },
     "auth_ref": [
      "r104",
      "r142",
      "r143",
      "r177"
     ]
    },
    "us-gaap_StockOptionPlanExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockOptionPlanExpense",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_StockOptionPlanExpense",
        "terseLabel": "Stock-based compensation, net",
        "documentation": "Amount of noncash expense for option under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_StockholdersEquity",
        "totalLabel": "TOTAL STOCKHOLDERS' EQUITY",
        "terseLabel": "STOCKHOLDERS' EQUITY",
        "periodStartLabel": "Balance",
        "periodEndLabel": "Balance",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r143",
      "r145",
      "r146",
      "r169",
      "r823",
      "r840",
      "r866",
      "r867",
      "r931",
      "r946",
      "r999",
      "r1029",
      "r1107",
      "r1136"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "STOCKHOLDERS' EQUITY"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r868"
     ]
    },
    "us-gaap_SubordinatedDebtObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubordinatedDebtObligationsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subordinated Debt Obligations [Member]",
        "documentation": "Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment and ahead of general creditors in a liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r205"
     ]
    },
    "mbcn_SubordinatedDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SubordinatedDebtSecuritiesMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subordinated Debt Securities [Member]",
        "documentation": "Represents information about subordinated debt securities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventsTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-23-subsequent-events"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Text Block]",
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business."
       }
      }
     },
     "auth_ref": [
      "r687",
      "r688"
     ]
    },
    "mbcn_SubsidiaryBanksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "SubsidiaryBanksMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-condensed-balance-sheet-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiary Banks [Member]",
        "documentation": "Represents information pertaining to subsidiary banks."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubstandardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubstandardMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Substandard [Member]",
        "documentation": "A category of financing receivables that are inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the creditor will sustain some loss if the deficiencies are not corrected."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SUPPLEMENTAL INFORMATION"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TableTextBlock": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-10-accrued-interest-receivable-and-other-assets-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-12-shortterm-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-2-revenue-recognition-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-20-related-party-transaction-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-21-business-combination-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-22-parent-company-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-4-accumulated-other-comprehensive-income-loss-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-8-premises-and-equipment-tables",
      "http://middlefieldbank.bank/20231231/role/statement-note-9-goodwill-and-intangible-assets-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_TableTextBlock",
        "terseLabel": "Notes Tables"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxableMunicipalBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxableMunicipalBondsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxable Municipal Bonds [Member]",
        "documentation": "Long-term debt securities issued by state, city or local governments or the agencies operated by state, city or local governments that are taxable."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_The2017PlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "The2017PlanMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits",
      "http://middlefieldbank.bank/20231231/role/statement-note-16-employee-benefits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "The 2017 Plan [Member]",
        "documentation": "Information related to the 2017 plan."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_ThresholdForLoansEvaluatedForImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "ThresholdForLoansEvaluatedForImpairmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Threshold For Loans Evaluated For Impairment [Member]",
        "documentation": "The threshold for loans evaluated for impairment."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_TierOneLeverageCapitalRequiredForCapitalAdequacyPlusConservationBufferToAverageAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacyPlusConservationBufferToAverageAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leverage capital, adequately capitalized plus capital conservation buffer, ratio",
        "documentation": "The minimum amount of Tier 1 Leverage Capital for capital adequacy plus conservation buffer purposes divided by average assets as defined in the regulations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leverage capital, adequately capitalized, ratio",
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746",
      "r750"
     ]
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leverage capital, well-capitalized, ratio (bank only)",
        "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": [
      "r746"
     ]
    },
    "us-gaap_TierOneLeverageCapitalToAverageAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneLeverageCapitalToAverageAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leverage capital, actual, ratio",
        "documentation": "Ratio of Tier 1 capital to average assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746"
     ]
    },
    "mbcn_TierOneRiskBasedCapitalRequiredForCapitalAdequacyPlusCapitalConservationBufferToRiskWeightedAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyPlusCapitalConservationBufferToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tier 1 risk based capital, adequately capitalized plus capital conservation buffer, ratio",
        "documentation": "The minimum Tier One Capital Ratio (Tier one capital divided by risk-weighted assets) required for capital adequacy purposes plus capital conservation buffer under the regulatory framework for prompt corrective action."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tier 1 risk based capital, adequately capitalized, ratio",
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746",
      "r750"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tier 1 risk based capital, well-capitalized, ratio (bank only)",
        "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": [
      "r746"
     ]
    },
    "us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TierOneRiskBasedCapitalToRiskWeightedAssets",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-19-regulatory-capital-capital-ratios-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tier 1 risk based capital, actual, ratio",
        "documentation": "Ratio of Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework."
       }
      }
     },
     "auth_ref": [
      "r746"
     ]
    },
    "us-gaap_TimeDepositMaturitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposit Maturities [Table Text Block]",
        "documentation": "Tabular disclosure of time deposit liability maturities."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearFive",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2028",
        "label": "us-gaap_TimeDepositMaturitiesYearFive",
        "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": [
      "r15"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearFour",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2027",
        "label": "us-gaap_TimeDepositMaturitiesYearFour",
        "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": [
      "r15"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearOne": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearOne",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2024",
        "label": "us-gaap_TimeDepositMaturitiesYearOne",
        "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": [
      "r15"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearThree",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2026",
        "label": "us-gaap_TimeDepositMaturitiesYearThree",
        "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": [
      "r15"
     ]
    },
    "us-gaap_TimeDepositMaturitiesYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositMaturitiesYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": "us-gaap_TimeDeposits",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2025",
        "label": "us-gaap_TimeDepositMaturitiesYearTwo",
        "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": [
      "r15"
     ]
    },
    "us-gaap_TimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDeposits",
     "crdr": "credit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0,
       "order": 1.0
      },
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet",
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-scheduled-maturities-of-time-deposits-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time",
        "totalLabel": "Total",
        "documentation": "Amount of time deposit liabilities, including certificates of deposit."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r129"
     ]
    },
    "us-gaap_TimeDepositsAtOrAboveFDICInsuranceLimit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TimeDepositsAtOrAboveFDICInsuranceLimit",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-11-deposits-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_TimeDepositsAtOrAboveFDICInsuranceLimit",
        "terseLabel": "Time Deposits, at or Above FDIC Insurance Limit",
        "documentation": "Amount of time deposit liabilities, including certificates of deposit, in denominations that meet or exceed the Federal Deposit Insurance Corporation (FDIC) insurance limit."
       }
      }
     },
     "auth_ref": [
      "r18"
     ]
    },
    "mbcn_TimeDepositsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "TimeDepositsFairValueDisclosure",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mbcn_TimeDepositsFairValueDisclosure",
        "terseLabel": "Time deposits",
        "documentation": "Fair value portion of time deposit liabilities held by the entity."
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-document-and-entity-information"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_TransferOfLoansHeldforsaleToLoansHeldForInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "TransferOfLoansHeldforsaleToLoansHeldForInvestment",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers from loans held for sale to loans held for investment",
        "documentation": "Value of loans held-for-sale transferred to loans held for investment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TransferToOtherRealEstate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransferToOtherRealEstate",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-cash-flows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers from loans to other real estate owned",
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r61",
      "r62"
     ]
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments [Domain]",
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms."
       }
      }
     },
     "auth_ref": [
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r490",
      "r491",
      "r617",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r702",
      "r704",
      "r708",
      "r709",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r722",
      "r768",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r1024",
      "r1025",
      "r1026",
      "r1027"
     ]
    },
    "us-gaap_TreasuryStockCommonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockCommonMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Common [Member]",
        "documentation": "Previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "us-gaap_TreasuryStockCommonShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockCommonShares",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury stock, shares (in shares)",
        "terseLabel": "Treasury Stock, Common, Shares (in shares)",
        "documentation": "Number of previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "mbcn_TreasuryStockPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "TreasuryStockPolicyTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for treasury stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockSharesAcquired",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-parentheticals",
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury acquired, shares (in shares)",
        "terseLabel": "Treasury Stock, Shares, Acquired (in shares)",
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r143",
      "r177"
     ]
    },
    "us-gaap_TreasuryStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockValue",
     "crdr": "debit",
     "calculation": {
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-balance-sheet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_TreasuryStockValue",
        "negatedLabel": "Treasury stock, at cost; 1,835,452 and 1,671,231 shares",
        "documentation": "The amount allocated to treasury stock. Treasury stock is common and preferred shares of an entity that were issued, repurchased by the entity, and are held in its treasury."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r98",
      "r99"
     ]
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "crdr": "debit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_TreasuryStockValueAcquiredCostMethod",
        "negatedLabel": "Treasury shares acquired",
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method."
       }
      }
     },
     "auth_ref": [
      "r27",
      "r98",
      "r177"
     ]
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-tables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Receivable, Modified [Table Text Block]",
        "documentation": "Tabular disclosure of financing receivable modified for debtor experiencing financial difficulty."
       }
      }
     },
     "auth_ref": [
      "r905",
      "r1009",
      "r1010",
      "r1011",
      "r1012"
     ]
    },
    "us-gaap_TypeOfAdoptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TypeOfAdoptionMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-consolidated-statement-of-changes-in-stockholders-equity-",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies",
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Domain]",
        "documentation": "Amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r321",
      "r322",
      "r323",
      "r324",
      "r333",
      "r379",
      "r380",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r471",
      "r555",
      "r556",
      "r557",
      "r581",
      "r582",
      "r583",
      "r584",
      "r597",
      "r598",
      "r599",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r643",
      "r644",
      "r649",
      "r650",
      "r651",
      "r652",
      "r659",
      "r660",
      "r662",
      "r663",
      "r664",
      "r665",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r726",
      "r727",
      "r728",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795"
     ]
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "documentation": "Bonds or similar securities issued by state, city, or local US governments or the agencies operated by state, city, or local governments. Debt securities issued by state governments may include bond issuances of US state authorities including, for example, but not limited to, housing authorities, dormitory authorities, and general obligations while debt securities issued by political subdivisions of US states would include, for example, debt issuances by county, borough, city, or municipal governments."
       }
      }
     },
     "auth_ref": [
      "r920",
      "r1130"
     ]
    },
    "us-gaap_UnfundedLoanCommitmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnfundedLoanCommitmentMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unfunded Loan Commitment [Member]",
        "documentation": "Undisbursed funds of a credit facility in which the borrower may draw upon."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnlikelyToBeCollectedFinancingReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnlikelyToBeCollectedFinancingReceivableMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unlikely to be Collected Financing Receivable [Member]",
        "documentation": "Financing arrangement that represents a contractual right to receive money either on demand or on fixed or determinable dates that are considered uncollectible or of little value. Excludes no recovery or salvage value."
       }
      }
     },
     "auth_ref": [
      "r85",
      "r1036"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnrecognizedTaxBenefits",
     "crdr": "credit",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-15-income-taxes-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_UnrecognizedTaxBenefits",
        "terseLabel": "Unrecognized Tax Benefits",
        "documentation": "Amount of unrecognized tax benefits."
       }
      }
     },
     "auth_ref": [
      "r564",
      "r571"
     ]
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-significant-accounting-policies-policies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "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": [
      "r72",
      "r73",
      "r74",
      "r238",
      "r239",
      "r241",
      "r242"
     ]
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Axis]",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Domain]",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Axis]",
        "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://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings",
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-details-textual",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements",
      "http://middlefieldbank.bank/20231231/role/statement-note-5-fair-value-measurements-details-textual"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Domain]",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": []
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-13-other-borrowings-other-borrowings-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r895",
      "r896",
      "r1115",
      "r1117",
      "r1120"
     ]
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
        "terseLabel": "Weighted-average common shares and common stock equivalents used to calculate diluted earnings per share (in shares)",
        "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": [
      "r336",
      "r344"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesIssuedBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesIssuedBasic",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average common shares outstanding (in shares)",
        "documentation": "This element represents the weighted average total number of shares issued throughout the period including the first (beginning balance outstanding) and last (ending balance outstanding) day of the period before considering any reductions (for instance, shares held in treasury) to arrive at the weighted average number of shares outstanding. Weighted average relates to the portion of time within a reporting period that common shares have been issued and outstanding to the total time in that period. Such concept is used in determining the weighted average number of shares outstanding for purposes of calculating earnings per share (basic)."
       }
      }
     },
     "auth_ref": [
      "r65",
      "r66"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic",
        "terseLabel": "Weighted-average common shares and common stock equivalents used to calculate basic earnings per share (in shares)",
        "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": [
      "r335",
      "r344"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesTreasuryStock": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesTreasuryStock",
     "presentation": [
      "http://middlefieldbank.bank/20231231/role/statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "us-gaap_WeightedAverageNumberOfSharesTreasuryStock",
        "negatedLabel": "Average treasury stock shares (in shares)",
        "documentation": "Number of shares of treasury stock determined by relating the portion of time within a reporting period that treasury shares have been outstanding to the total time in that period. Treasury stock is stock that the Entity has issued but subsequently reacquired."
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "mbcn_statement-statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-1-summary-of-significant-accounting-policies-impact-of-adoption-of-asu-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 1 - Summary of Significant Accounting Policies - Impact of Adoption of ASU (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-1-summary-of-significant-accounting-policies-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-1-summary-of-significant-accounting-policies-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 1 - Summary of Significant Accounting Policies"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-10-accrued-interest-receivable-and-other-assets-components-of-accrued-interest-receivable-and-other-assets-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 10 - Accrued Interest Receivable and Other Assets - Components of Accrued Interest Receivable and Other Assets (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-10-accrued-interest-receivable-and-other-assets-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-10-accrued-interest-receivable-and-other-assets-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 10 - Accrued Interest Receivable and Other Assets"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-11-deposits-scheduled-maturities-of-time-deposits-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-11-deposits-scheduled-maturities-of-time-deposits-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 11 - Deposits - Scheduled Maturities of Time Deposits (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-11-deposits-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-11-deposits-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 11 - Deposits"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-12-shortterm-borrowings-outstanding-balances-and-related-information-of-shortterm-borrowings-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 12 - Short-term Borrowings - Outstanding Balances and Related Information of Short-term Borrowings (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-12-shortterm-borrowings-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-12-shortterm-borrowings-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 12 - Short-term Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-13-other-borrowings-maturities-of-other-borrowings-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-13-other-borrowings-maturities-of-other-borrowings-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 13 - Other Borrowings - Maturities of Other Borrowings (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-13-other-borrowings-other-borrowings-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-13-other-borrowings-other-borrowings-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 13 - Other Borrowings - Other Borrowings (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-13-other-borrowings-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-13-other-borrowings-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 13 - Other Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-14-accrued-interest-payable-and-other-liabilities-components-of-accrued-interest-payable-and-other-liabilities-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 14 - Accrued Interest Payable and Other Liabilities - Components of Accrued Interest Payable and Other Liabilities (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-14-accrued-interest-payable-and-other-liabilities-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-14-accrued-interest-payable-and-other-liabilities-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 14 - Accrued Interest Payable and Other Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-15-income-taxes-deferred-tax-assets-and-liabilities-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 15 - Income Taxes - Deferred Tax Assets and Liabilities (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-15-income-taxes-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-15-income-taxes-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 15 - Income Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-15-income-taxes-tax-rate-reconciliation-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-15-income-taxes-tax-rate-reconciliation-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 15 - Income Taxes - Tax Rate Reconciliation (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-15-income-taxes-the-provision-benefit-for-federal-income-taxes-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 15 - Income Taxes - The Provision (Benefit) for Federal Income Taxes (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-16-employee-benefits-activity-related-to-restricted-stock-units-awarded-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 16 - Employee Benefits - Activity Related to Restricted Stock Units Awarded (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-16-employee-benefits-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-16-employee-benefits-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 16 - Employee Benefits"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-17-commitments-and-contingent-liabilities-leases-costs-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-17-commitments-and-contingent-liabilities-leases-costs-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 17 - Commitments and Contingent Liabilities - Leases Costs (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-17-commitments-and-contingent-liabilities-maturities-of-lease-liabilities-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 17 - Commitments and Contingent Liabilities - Maturities of Lease Liabilities (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-17-commitments-and-contingent-liabilities-outstanding-commitments-and-contingent-liabilities-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 17 - Commitments and Contingent Liabilities - Outstanding Commitments and Contingent Liabilities (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-17-commitments-and-contingent-liabilities-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-17-commitments-and-contingent-liabilities-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 17 - Commitments and Contingent Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-17-commitments-and-contingent-liabilities-weighted-average-remaining-lease-term-and-discount-rate-information-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 17 - Commitments and Contingent Liabilities - Weighted Average Remaining Lease Term and Discount Rate Information (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-19-regulatory-capital-capital-ratios-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-19-regulatory-capital-capital-ratios-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 19 - Regulatory Capital - Capital Ratios (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-19-regulatory-capital-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-19-regulatory-capital-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 19 - Regulatory Capital"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-2-revenue-recognition-disaggregation-of-revenue-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-2-revenue-recognition-disaggregation-of-revenue-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 2 - Revenue Recognition - Disaggregation of Revenue (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-2-revenue-recognition-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-2-revenue-recognition-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 2 - Revenue Recognition"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-20-related-party-transaction-loans-to-related-party-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-20-related-party-transaction-loans-to-related-party-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 20 - Related Party Transaction - Loans to Related Party (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-20-related-party-transaction-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-20-related-party-transaction-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 20 - Related Party Transaction"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-21-business-combination-assets-acquired-and-liabilities-assumed-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 21 - Business Combination - Assets Acquired and Liabilities Assumed (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-21-business-combination-business-purchase-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-21-business-combination-business-purchase-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 21 - Business Combination - Business Purchase (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-21-business-combination-pro-forma-information-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-21-business-combination-pro-forma-information-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 21 - Business Combination - Pro Forma Information (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-21-business-combination-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-21-business-combination-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 21 - Business Combination"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-22-parent-company-condensed-balance-sheet-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-22-parent-company-condensed-balance-sheet-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 22 - Parent Company - Condensed Balance Sheet (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-22-parent-company-condensed-statement-of-cash-flows-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-22-parent-company-condensed-statement-of-cash-flows-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 22 - Parent Company - Condensed Statement of Cash Flows (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-22-parent-company-condensed-statement-of-comprehensive-income-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 22 - Parent Company - Condensed Statement of Comprehensive Income (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-22-parent-company-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-22-parent-company-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 22 - Parent Company"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-3-earnings-per-share-shares-used-in-calculation-of-earnings-per-share-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 3 - Earnings Per Share - Shares Used in Calculation of Earnings Per Share (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-3-earnings-per-share-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-3-earnings-per-share-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 3 - Earnings Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-4-accumulated-other-comprehensive-income-loss-changes-in-accumulated-other-comprehensive-income-loss-by-component-net-of-tax-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 4 - Accumulated Other Comprehensive Income (Loss) - Changes in Accumulated Other Comprehensive Income (Loss) by Component, Net of Tax (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-4-accumulated-other-comprehensive-income-loss-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-4-accumulated-other-comprehensive-income-loss-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 4 - Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-additional-quantitative-information-about-assets-measured-at-fair-value-on-nonrecurring-basis-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements - Additional Quantitative Information About Assets Measured at Fair Value on Non-recurring Basis (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-assets-measured-on-a-nonrecurring-basis-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements - Assets Measured on a Nonrecurring Basis (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-assets-measured-on-a-recurring-basis-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements - Assets Measured on a Recurring Basis (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-estimated-fair-value-of-the-companys-financial-instruments-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements - Estimated Fair Value of the Company's Financial Instruments (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-fair-value-reconciliation-of-level-3-assets-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements - Fair Value Reconciliation of Level 3 Assets (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-5-fair-value-measurements-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-5-fair-value-measurements-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 5 - Fair Value Measurements"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-value-of-debt-securities-by-contractual-maturity-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 6 - Investments and Equity Securities - Amortized Cost and Fair Value of Debt Securities by Contractual Maturity (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-6-investments-and-equity-securities-amortized-cost-and-fair-values-of-securities-available-for-sale-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 6 - Investments and Equity Securities - Amortized Cost and Fair Values of Securities Available for Sale (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-6-investments-and-equity-securities-gross-unrealized-losses-and-fair-value-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 6 - Investments and Equity Securities - Gross Unrealized Losses and Fair Value (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-6-investments-and-equity-securities-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-6-investments-and-equity-securities-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 6 - Investments and Equity Securities"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-allowance-for-loan-losses-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Allowance for Loan Losses (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-classes-of-the-loan-portfolio-summarized-by-credit-quality-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Classes of the Loan Portfolio Summarized by Credit Quality (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-collateraldependent-loans-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Collateral-dependent Loans (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-loans-acquired-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Loans Acquired (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-nonaccrual-loans-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Nonaccrual Loans (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-past-due-loans-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Past Due Loans (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-primary-segments-of-the-loan-portfolio-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Primary Segments of the Loan Portfolio (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-credit-losses-troubled-debt-restructurings-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Credit Losses - Troubled Debt Restructurings (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-additional-information-on-impaired-loans-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Loan and Lease Losses - Additional Information on Impaired Loans (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-7-loans-and-related-allowance-for-loan-and-lease-losses-impaired-loans-by-class-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 7 - Loans and Related Allowance for Loan and Lease Losses - Impaired Loans by Class (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-8-premises-and-equipment-major-classifications-of-premises-and-equipment-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 8 - Premises and Equipment - Major Classifications of Premises and Equipment (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-8-premises-and-equipment-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-8-premises-and-equipment-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 8 - Premises and Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-9-goodwill-and-intangible-assets-activity-for-mortgage-servicing-rights-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 9 - Goodwill and Intangible Assets - Activity for Mortgage Servicing Rights (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-9-goodwill-and-intangible-assets-estimated-aggregate-future-amortization-expense-for-core-deposit-intangible-assets-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 9 - Goodwill and Intangible Assets - Estimated Aggregate Future Amortization Expense for Core Deposit Intangible Assets (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-9-goodwill-and-intangible-assets-goodwill-details": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-9-goodwill-and-intangible-assets-goodwill-details",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 9 - Goodwill and Intangible Assets - Goodwill (Details)"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-note-9-goodwill-and-intangible-assets-tables": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-note-9-goodwill-and-intangible-assets-tables",
     "lang": {
      "en-us": {
       "role": {
        "label": "Note 9 - Goodwill and Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "mbcn_statement-statement-significant-accounting-policies-policies": {
     "xbrltype": "stringItemType",
     "nsuri": "http://middlefieldbank.bank/20231231",
     "localname": "statement-statement-significant-accounting-policies-policies",
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant Accounting Policies"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "970",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482170/970-10-05-1"
  },
  "r1": {
   "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"
  },
  "r2": {
   "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"
  },
  "r3": {
   "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"
  },
  "r4": {
   "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"
  },
  "r5": {
   "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"
  },
  "r6": {
   "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"
  },
  "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": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-15"
  },
  "r9": {
   "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"
  },
  "r10": {
   "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"
  },
  "r11": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21D",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-21D"
  },
  "r12": {
   "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"
  },
  "r13": {
   "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"
  },
  "r14": {
   "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"
  },
  "r15": {
   "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"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-1"
  },
  "r17": {
   "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"
  },
  "r18": {
   "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"
  },
  "r19": {
   "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"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "SubTopic": "20",
   "Topic": "985",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-1"
  },
  "r21": {
   "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"
  },
  "r22": {
   "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"
  },
  "r23": {
   "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"
  },
  "r24": {
   "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"
  },
  "r25": {
   "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"
  },
  "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": "2",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2"
  },
  "r28": {
   "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"
  },
  "r29": {
   "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"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r32": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r33": {
   "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"
  },
  "r34": {
   "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"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r37": {
   "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"
  },
  "r38": {
   "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"
  },
  "r39": {
   "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"
  },
  "r40": {
   "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.20,24)",
   "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.22(a)(1))",
   "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.22(a)(2))",
   "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.22)",
   "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.29,30)",
   "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.29-31)",
   "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.3,4)",
   "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": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14"
  },
  "r48": {
   "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"
  },
  "r49": {
   "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"
  },
  "r50": {
   "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"
  },
  "r51": {
   "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"
  },
  "r52": {
   "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"
  },
  "r53": {
   "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"
  },
  "r54": {
   "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"
  },
  "r55": {
   "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"
  },
  "r56": {
   "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"
  },
  "r57": {
   "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"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-1"
  },
  "r59": {
   "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"
  },
  "r60": {
   "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"
  },
  "r61": {
   "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"
  },
  "r62": {
   "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"
  },
  "r63": {
   "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"
  },
  "r64": {
   "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"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-10"
  },
  "r66": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-13"
  },
  "r67": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r68": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r69": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-2"
  },
  "r70": {
   "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"
  },
  "r71": {
   "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"
  },
  "r72": {
   "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"
  },
  "r73": {
   "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"
  },
  "r74": {
   "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"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-15"
  },
  "r79": {
   "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"
  },
  "r80": {
   "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"
  },
  "r81": {
   "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"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-15"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(c)(2)",
   "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": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-17"
  },
  "r85": {
   "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"
  },
  "r86": {
   "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"
  },
  "r87": {
   "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"
  },
  "r88": {
   "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"
  },
  "r89": {
   "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"
  },
  "r90": {
   "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"
  },
  "r91": {
   "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"
  },
  "r92": {
   "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"
  },
  "r93": {
   "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"
  },
  "r94": {
   "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"
  },
  "r95": {
   "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"
  },
  "r96": {
   "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"
  },
  "r97": {
   "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"
  },
  "r98": {
   "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"
  },
  "r99": {
   "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"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-2"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r104": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r105": {
   "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"
  },
  "r106": {
   "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"
  },
  "r107": {
   "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"
  },
  "r108": {
   "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"
  },
  "r109": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479328/805-10-50-2"
  },
  "r110": {
   "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"
  },
  "r111": {
   "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"
  },
  "r112": {
   "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"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479907/805-20-50-4A"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-18"
  },
  "r115": {
   "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"
  },
  "r116": {
   "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"
  },
  "r117": {
   "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"
  },
  "r118": {
   "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"
  },
  "r119": {
   "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"
  },
  "r120": {
   "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"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28"
  },
  "r122": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "20",
   "Section": "15",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482960/835-20-15-8"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "940",
   "SubTopic": "320",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481961/940-320-45-2"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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.10(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r129": {
   "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"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "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"
  },
  "r133": {
   "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"
  },
  "r134": {
   "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"
  },
  "r135": {
   "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"
  },
  "r136": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "320",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-5"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "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"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//220/tableOfContent"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "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"
  },
  "r155": {
   "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)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r156": {
   "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.13)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r157": {
   "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"
  },
  "r158": {
   "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,6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r159": {
   "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"
  },
  "r160": {
   "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)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r161": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r162": {
   "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"
  },
  "r163": {
   "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"
  },
  "r164": {
   "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"
  },
  "r165": {
   "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"
  },
  "r166": {
   "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"
  },
  "r167": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//235/tableOfContent"
  },
  "r168": {
   "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"
  },
  "r169": {
   "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"
  },
  "r170": {
   "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"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//350/tableOfContent"
  },
  "r172": {
   "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"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//360/tableOfContent"
  },
  "r175": {
   "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"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//470/tableOfContent"
  },
  "r177": {
   "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"
  },
  "r178": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "710",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//710/tableOfContent"
  },
  "r179": {
   "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"
  },
  "r180": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "712",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//712/tableOfContent"
  },
  "r181": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//715/tableOfContent"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r183": {
   "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"
  },
  "r184": {
   "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"
  },
  "r185": {
   "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"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r187": {
   "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"
  },
  "r188": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//805/tableOfContent"
  },
  "r189": {
   "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"
  },
  "r190": {
   "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"
  },
  "r191": {
   "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"
  },
  "r192": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r193": {
   "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"
  },
  "r194": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2B"
  },
  "r195": {
   "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"
  },
  "r196": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//942/tableOfContent"
  },
  "r197": {
   "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"
  },
  "r198": {
   "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"
  },
  "r199": {
   "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"
  },
  "r200": {
   "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"
  },
  "r201": {
   "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"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "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"
  },
  "r205": {
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "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"
  },
  "r208": {
   "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"
  },
  "r209": {
   "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"
  },
  "r210": {
   "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"
  },
  "r211": {
   "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"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "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(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r215": {
   "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(h))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r216": {
   "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"
  },
  "r217": {
   "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"
  },
  "r218": {
   "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"
  },
  "r219": {
   "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"
  },
  "r220": {
   "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"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "325",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481026/942-325-45-1"
  },
  "r228": {
   "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"
  },
  "r229": {
   "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"
  },
  "r230": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-2"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "40",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481746/310-40-50-1"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "SubTopic": "35",
   "Topic": "720",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483406/720-35-50-1"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "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"
  },
  "r244": {
   "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"
  },
  "r245": {
   "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"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(7)(e)(1)(i))",
   "SubTopic": "210",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "606",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//606/tableOfContent"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1403",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(b)",
   "Publisher": "SEC"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(4)",
   "Publisher": "SEC"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(c)",
   "Publisher": "SEC"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1406",
   "Paragraph": "(e)",
   "Publisher": "SEC"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1406",
   "Publisher": "SEC"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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"
  },
  "r270": {
   "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"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "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"
  },
  "r274": {
   "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"
  },
  "r275": {
   "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"
  },
  "r276": {
   "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"
  },
  "r277": {
   "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"
  },
  "r278": {
   "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "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"
  },
  "r282": {
   "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r288": {
   "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"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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"
  },
  "r292": {
   "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"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "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"
  },
  "r299": {
   "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"
  },
  "r300": {
   "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"
  },
  "r301": {
   "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"
  },
  "r302": {
   "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"
  },
  "r303": {
   "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"
  },
  "r304": {
   "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"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "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"
  },
  "r309": {
   "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"
  },
  "r310": {
   "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"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-1"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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"
  },
  "r315": {
   "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"
  },
  "r316": {
   "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"
  },
  "r317": {
   "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"
  },
  "r318": {
   "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"
  },
  "r319": {
   "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"
  },
  "r320": {
   "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"
  },
  "r321": {
   "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"
  },
  "r322": {
   "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"
  },
  "r323": {
   "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"
  },
  "r324": {
   "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"
  },
  "r325": {
   "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"
  },
  "r326": {
   "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"
  },
  "r327": {
   "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"
  },
  "r328": {
   "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"
  },
  "r329": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//260/tableOfContent"
  },
  "r335": {
   "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"
  },
  "r336": {
   "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-22"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-23"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-28A"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "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"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "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"
  },
  "r359": {
   "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"
  },
  "r360": {
   "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"
  },
  "r361": {
   "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"
  },
  "r362": {
   "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"
  },
  "r363": {
   "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"
  },
  "r364": {
   "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"
  },
  "r365": {
   "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"
  },
  "r366": {
   "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"
  },
  "r367": {
   "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"
  },
  "r368": {
   "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"
  },
  "r369": {
   "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"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "36",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-36"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "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"
  },
  "r374": {
   "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"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481598/310-20-45-2"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "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"
  },
  "r380": {
   "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"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "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"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2A"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "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"
  },
  "r395": {
   "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"
  },
  "r396": {
   "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"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "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"
  },
  "r406": {
   "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"
  },
  "r407": {
   "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"
  },
  "r408": {
   "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"
  },
  "r409": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r430": {
   "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"
  },
  "r431": {
   "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"
  },
  "r432": {
   "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"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-5"
  },
  "r434": {
   "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"
  },
  "r435": {
   "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"
  },
  "r436": {
   "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"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r438": {
   "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"
  },
  "r439": {
   "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"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "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"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-16"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-3A"
  },
  "r449": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "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"
  },
  "r452": {
   "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"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-3A"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-3B"
  },
  "r455": {
   "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"
  },
  "r456": {
   "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"
  },
  "r457": {
   "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"
  },
  "r458": {
   "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"
  },
  "r459": {
   "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"
  },
  "r460": {
   "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"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479106/326-30-50-9"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//350-20/tableOfContent"
  },
  "r464": {
   "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"
  },
  "r465": {
   "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"
  },
  "r466": {
   "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"
  },
  "r467": {
   "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"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-1"
  },
  "r473": {
   "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"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-3"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r480": {
   "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"
  },
  "r481": {
   "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"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "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"
  },
  "r489": {
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "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"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-10"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-13"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-15"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-17"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-18"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-18"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-19"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-4"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-9"
  },
  "r512": {
   "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"
  },
  "r513": {
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "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"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480454/718-10-45-1"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "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"
  },
  "r528": {
   "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"
  },
  "r529": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "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"
  },
  "r536": {
   "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"
  },
  "r537": {
   "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"
  },
  "r538": {
   "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"
  },
  "r539": {
   "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"
  },
  "r540": {
   "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"
  },
  "r541": {
   "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"
  },
  "r542": {
   "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"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "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"
  },
  "r552": {
   "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"
  },
  "r553": {
   "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"
  },
  "r554": {
   "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"
  },
  "r555": {
   "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"
  },
  "r556": {
   "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"
  },
  "r557": {
   "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"
  },
  "r558": {
   "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"
  },
  "r559": {
   "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"
  },
  "r560": {
   "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"
  },
  "r561": {
   "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"
  },
  "r562": {
   "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"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//740/tableOfContent"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-10B"
  },
  "r565": {
   "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"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "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"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "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"
  },
  "r586": {
   "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"
  },
  "r587": {
   "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"
  },
  "r588": {
   "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"
  },
  "r589": {
   "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"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "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"
  },
  "r593": {
   "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"
  },
  "r594": {
   "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"
  },
  "r595": {
   "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"
  },
  "r596": {
   "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"
  },
  "r597": {
   "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"
  },
  "r598": {
   "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"
  },
  "r599": {
   "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"
  },
  "r600": {
   "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"
  },
  "r601": {
   "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"
  },
  "r602": {
   "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"
  },
  "r603": {
   "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"
  },
  "r604": {
   "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"
  },
  "r605": {
   "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"
  },
  "r606": {
   "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"
  },
  "r607": {
   "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"
  },
  "r608": {
   "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"
  },
  "r609": {
   "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"
  },
  "r610": {
   "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"
  },
  "r611": {
   "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"
  },
  "r612": {
   "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"
  },
  "r613": {
   "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"
  },
  "r614": {
   "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"
  },
  "r615": {
   "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"
  },
  "r616": {
   "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"
  },
  "r617": {
   "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"
  },
  "r618": {
   "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"
  },
  "r619": {
   "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"
  },
  "r620": {
   "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"
  },
  "r621": {
   "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"
  },
  "r622": {
   "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"
  },
  "r623": {
   "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"
  },
  "r624": {
   "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"
  },
  "r625": {
   "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"
  },
  "r626": {
   "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"
  },
  "r627": {
   "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"
  },
  "r628": {
   "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"
  },
  "r629": {
   "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"
  },
  "r630": {
   "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"
  },
  "r631": {
   "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"
  },
  "r632": {
   "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"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "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"
  },
  "r637": {
   "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"
  },
  "r638": {
   "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"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "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"
  },
  "r648": {
   "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"
  },
  "r649": {
   "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"
  },
  "r650": {
   "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"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "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"
  },
  "r655": {
   "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"
  },
  "r656": {
   "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"
  },
  "r657": {
   "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"
  },
  "r658": {
   "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"
  },
  "r659": {
   "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"
  },
  "r660": {
   "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"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "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"
  },
  "r664": {
   "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"
  },
  "r665": {
   "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"
  },
  "r666": {
   "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"
  },
  "r667": {
   "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"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-4"
  },
  "r669": {
   "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"
  },
  "r670": {
   "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"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r672": {
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r680": {
   "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"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//850/tableOfContent"
  },
  "r682": {
   "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"
  },
  "r683": {
   "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"
  },
  "r684": {
   "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"
  },
  "r685": {
   "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"
  },
  "r686": {
   "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"
  },
  "r687": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//855/tableOfContent"
  },
  "r688": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-2"
  },
  "r689": {
   "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"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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"
  },
  "r692": {
   "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"
  },
  "r693": {
   "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"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "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"
  },
  "r698": {
   "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"
  },
  "r699": {
   "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"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "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"
  },
  "r704": {
   "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"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481260/860-50-45-1"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481260/860-50-45-2"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481260/860-50-45-2"
  },
  "r708": {
   "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"
  },
  "r709": {
   "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"
  },
  "r710": {
   "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"
  },
  "r711": {
   "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"
  },
  "r712": {
   "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"
  },
  "r713": {
   "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"
  },
  "r714": {
   "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"
  },
  "r715": {
   "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"
  },
  "r716": {
   "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"
  },
  "r717": {
   "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"
  },
  "r718": {
   "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"
  },
  "r719": {
   "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"
  },
  "r720": {
   "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"
  },
  "r721": {
   "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"
  },
  "r722": {
   "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"
  },
  "r723": {
   "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"
  },
  "r724": {
   "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"
  },
  "r725": {
   "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"
  },
  "r726": {
   "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"
  },
  "r727": {
   "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"
  },
  "r728": {
   "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"
  },
  "r729": {
   "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"
  },
  "r730": {
   "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"
  },
  "r731": {
   "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"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r733": {
   "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"
  },
  "r734": {
   "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"
  },
  "r735": {
   "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"
  },
  "r736": {
   "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"
  },
  "r737": {
   "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"
  },
  "r738": {
   "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"
  },
  "r739": {
   "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"
  },
  "r740": {
   "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"
  },
  "r741": {
   "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"
  },
  "r742": {
   "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"
  },
  "r743": {
   "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"
  },
  "r744": {
   "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"
  },
  "r745": {
   "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"
  },
  "r746": {
   "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"
  },
  "r747": {
   "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"
  },
  "r748": {
   "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"
  },
  "r749": {
   "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"
  },
  "r750": {
   "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"
  },
  "r751": {
   "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"
  },
  "r752": {
   "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"
  },
  "r753": {
   "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"
  },
  "r754": {
   "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"
  },
  "r755": {
   "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"
  },
  "r756": {
   "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"
  },
  "r757": {
   "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"
  },
  "r758": {
   "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"
  },
  "r759": {
   "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"
  },
  "r760": {
   "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"
  },
  "r761": {
   "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"
  },
  "r762": {
   "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"
  },
  "r763": {
   "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"
  },
  "r764": {
   "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"
  },
  "r765": {
   "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"
  },
  "r766": {
   "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"
  },
  "r767": {
   "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"
  },
  "r768": {
   "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"
  },
  "r769": {
   "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"
  },
  "r770": {
   "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"
  },
  "r771": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r772": {
   "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)(d)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r773": {
   "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)(d)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r774": {
   "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"
  },
  "r775": {
   "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"
  },
  "r776": {
   "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"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r779": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r780": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r781": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r782": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r783": {
   "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"
  },
  "r784": {
   "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"
  },
  "r785": {
   "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"
  },
  "r786": {
   "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"
  },
  "r787": {
   "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"
  },
  "r788": {
   "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"
  },
  "r789": {
   "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"
  },
  "r790": {
   "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"
  },
  "r791": {
   "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"
  },
  "r792": {
   "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"
  },
  "r793": {
   "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"
  },
  "r794": {
   "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"
  },
  "r795": {
   "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"
  },
  "r796": {
   "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"
  },
  "r797": {
   "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"
  },
  "r798": {
   "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"
  },
  "r799": {
   "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"
  },
  "r800": {
   "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"
  },
  "r801": {
   "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"
  },
  "r802": {
   "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"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-9"
  },
  "r804": {
   "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"
  },
  "r805": {
   "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"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r811": {
   "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"
  },
  "r812": {
   "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"
  },
  "r813": {
   "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"
  },
  "r814": {
   "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"
  },
  "r815": {
   "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"
  },
  "r816": {
   "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"
  },
  "r817": {
   "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"
  },
  "r818": {
   "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"
  },
  "r819": {
   "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"
  },
  "r820": {
   "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"
  },
  "r821": {
   "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"
  },
  "r822": {
   "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"
  },
  "r823": {
   "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"
  },
  "r824": {
   "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"
  },
  "r825": {
   "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"
  },
  "r826": {
   "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"
  },
  "r827": {
   "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"
  },
  "r828": {
   "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"
  },
  "r829": {
   "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"
  },
  "r830": {
   "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"
  },
  "r831": {
   "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"
  },
  "r832": {
   "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"
  },
  "r833": {
   "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"
  },
  "r834": {
   "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"
  },
  "r835": {
   "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"
  },
  "r836": {
   "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"
  },
  "r837": {
   "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"
  },
  "r838": {
   "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"
  },
  "r839": {
   "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"
  },
  "r840": {
   "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"
  },
  "r841": {
   "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"
  },
  "r842": {
   "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"
  },
  "r843": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r844": {
   "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"
  },
  "r845": {
   "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"
  },
  "r846": {
   "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"
  },
  "r847": {
   "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"
  },
  "r848": {
   "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"
  },
  "r849": {
   "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"
  },
  "r850": {
   "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"
  },
  "r851": {
   "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"
  },
  "r852": {
   "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"
  },
  "r853": {
   "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"
  },
  "r854": {
   "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"
  },
  "r855": {
   "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"
  },
  "r856": {
   "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"
  },
  "r857": {
   "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"
  },
  "r858": {
   "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"
  },
  "r859": {
   "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"
  },
  "r860": {
   "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"
  },
  "r861": {
   "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"
  },
  "r862": {
   "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"
  },
  "r863": {
   "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"
  },
  "r864": {
   "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"
  },
  "r865": {
   "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"
  },
  "r866": {
   "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"
  },
  "r867": {
   "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"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r869": {
   "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"
  },
  "r870": {
   "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"
  },
  "r871": {
   "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 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r872": {
   "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"
  },
  "r873": {
   "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 C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r874": {
   "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"
  },
  "r875": {
   "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 C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r876": {
   "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"
  },
  "r877": {
   "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"
  },
  "r878": {
   "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 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r879": {
   "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 C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r882": {
   "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"
  },
  "r883": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r884": {
   "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"
  },
  "r885": {
   "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"
  },
  "r886": {
   "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"
  },
  "r887": {
   "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 F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481820/948-310-50-1"
  },
  "r894": {
   "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"
  },
  "r895": {
   "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"
  },
  "r896": {
   "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"
  },
  "r897": {
   "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"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(a)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r900": {
   "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"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r902": {
   "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"
  },
  "r903": {
   "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"
  },
  "r904": {
   "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"
  },
  "r905": {
   "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"
  },
  "r906": {
   "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"
  },
  "r907": {
   "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"
  },
  "r908": {
   "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"
  },
  "r909": {
   "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"
  },
  "r910": {
   "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"
  },
  "r911": {
   "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"
  },
  "r912": {
   "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"
  },
  "r913": {
   "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"
  },
  "r914": {
   "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"
  },
  "r915": {
   "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"
  },
  "r916": {
   "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"
  },
  "r917": {
   "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"
  },
  "r918": {
   "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"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r920": {
   "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"
  },
  "r921": {
   "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"
  },
  "r922": {
   "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"
  },
  "r923": {
   "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"
  },
  "r924": {
   "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"
  },
  "r925": {
   "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"
  },
  "r926": {
   "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"
  },
  "r927": {
   "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"
  },
  "r928": {
   "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"
  },
  "r929": {
   "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"
  },
  "r930": {
   "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"
  },
  "r931": {
   "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"
  },
  "r932": {
   "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"
  },
  "r933": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479401/944-30-55-2"
  },
  "r934": {
   "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"
  },
  "r935": {
   "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"
  },
  "r936": {
   "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"
  },
  "r937": {
   "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"
  },
  "r938": {
   "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"
  },
  "r939": {
   "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"
  },
  "r940": {
   "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"
  },
  "r941": {
   "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"
  },
  "r942": {
   "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"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r944": {
   "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"
  },
  "r945": {
   "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"
  },
  "r946": {
   "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"
  },
  "r947": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r948": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r949": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r953": {
   "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"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r956": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r957": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "323",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "323",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "323",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "323",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2"
  },
  "r963": {
   "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"
  },
  "r964": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481260/860-50-45-2"
  },
  "r965": {
   "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"
  },
  "r966": {
   "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"
  },
  "r967": {
   "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"
  },
  "r968": {
   "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"
  },
  "r969": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4H",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-4H"
  },
  "r970": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r971": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r972": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r973": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(b)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r974": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(i)",
   "Publisher": "SEC"
  },
  "r975": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r976": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(c)",
   "Subparagraph": "(2)(iii)",
   "Publisher": "SEC"
  },
  "r977": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1404",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r978": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r979": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r980": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1405",
   "Paragraph": "(a)",
   "Subparagraph": "(3)",
   "Publisher": "SEC"
  },
  "r981": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r982": {
   "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"
  },
  "r983": {
   "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"
  },
  "r984": {
   "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"
  },
  "r985": {
   "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"
  },
  "r986": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483504/205-10-50-1"
  },
  "r987": {
   "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(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r988": {
   "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"
  },
  "r989": {
   "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"
  },
  "r990": {
   "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"
  },
  "r991": {
   "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"
  },
  "r992": {
   "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"
  },
  "r993": {
   "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"
  },
  "r994": {
   "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"
  },
  "r995": {
   "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"
  },
  "r996": {
   "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"
  },
  "r997": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r998": {
   "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"
  },
  "r999": {
   "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"
  },
  "r1000": {
   "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"
  },
  "r1001": {
   "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"
  },
  "r1002": {
   "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"
  },
  "r1003": {
   "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"
  },
  "r1004": {
   "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"
  },
  "r1005": {
   "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"
  },
  "r1006": {
   "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"
  },
  "r1007": {
   "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"
  },
  "r1008": {
   "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"
  },
  "r1009": {
   "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"
  },
  "r1010": {
   "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"
  },
  "r1011": {
   "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"
  },
  "r1012": {
   "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"
  },
  "r1013": {
   "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"
  },
  "r1014": {
   "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"
  },
  "r1015": {
   "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"
  },
  "r1016": {
   "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"
  },
  "r1017": {
   "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"
  },
  "r1018": {
   "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"
  },
  "r1019": {
   "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"
  },
  "r1020": {
   "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"
  },
  "r1021": {
   "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"
  },
  "r1022": {
   "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"
  },
  "r1023": {
   "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"
  },
  "r1024": {
   "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"
  },
  "r1025": {
   "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"
  },
  "r1026": {
   "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"
  },
  "r1027": {
   "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"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "321",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479536/321-10-50-4"
  },
  "r1029": {
   "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"
  },
  "r1030": {
   "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"
  },
  "r1031": {
   "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"
  },
  "r1032": {
   "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"
  },
  "r1033": {
   "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"
  },
  "r1034": {
   "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"
  },
  "r1035": {
   "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"
  },
  "r1036": {
   "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"
  },
  "r1037": {
   "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"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1040": {
   "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"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1046": {
   "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"
  },
  "r1047": {
   "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"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-2"
  },
  "r1051": {
   "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"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1056": {
   "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"
  },
  "r1057": {
   "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"
  },
  "r1058": {
   "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"
  },
  "r1059": {
   "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"
  },
  "r1060": {
   "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"
  },
  "r1061": {
   "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"
  },
  "r1062": {
   "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"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r1064": {
   "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"
  },
  "r1065": {
   "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"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1089": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1092": {
   "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"
  },
  "r1093": {
   "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"
  },
  "r1094": {
   "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"
  },
  "r1095": {
   "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"
  },
  "r1096": {
   "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"
  },
  "r1097": {
   "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"
  },
  "r1098": {
   "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"
  },
  "r1099": {
   "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"
  },
  "r1100": {
   "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"
  },
  "r1101": {
   "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.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r1102": {
   "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"
  },
  "r1103": {
   "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"
  },
  "r1104": {
   "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"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r1106": {
   "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"
  },
  "r1107": {
   "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"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-3"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1112": {
   "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"
  },
  "r1113": {
   "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"
  },
  "r1114": {
   "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"
  },
  "r1115": {
   "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"
  },
  "r1116": {
   "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"
  },
  "r1117": {
   "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"
  },
  "r1118": {
   "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"
  },
  "r1119": {
   "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"
  },
  "r1120": {
   "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"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481229/860-50-50-4"
  },
  "r1123": {
   "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"
  },
  "r1124": {
   "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"
  },
  "r1125": {
   "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"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1127": {
   "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"
  },
  "r1128": {
   "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"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479432/944-30-50-2B"
  },
  "r1130": {
   "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"
  },
  "r1131": {
   "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"
  },
  "r1132": {
   "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"
  },
  "r1133": {
   "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"
  },
  "r1134": {
   "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"
  },
  "r1135": {
   "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"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1137": {
   "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"
  },
  "r1138": {
   "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"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column E)(Footnote 6)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1140": {
   "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"
  }
 }
}
