{
 "version": "2.2",
 "instance": {
  "mfic-20240930.htm": {
   "nsprefix": "mfic",
   "nsuri": "http://www.midcapfinancialic.com/20240930",
   "dts": {
    "inline": {
     "local": [
      "mfic-20240930.htm"
     ]
    },
    "schema": {
     "local": [
      "mfic-20240930.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/2006/xbrldi-2006.xsd",
      "http://www.xbrl.org/lrr/arcrole/esma-arcrole-2018-11-21.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/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/2023/calculation-1.1.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-roles-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-types-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-types-2024.xsd",
      "https://xbrl.sec.gov/cef/2024/cef-2024.xsd",
      "https://xbrl.sec.gov/cef/2024/cef-2024_pre.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/currency/2024/currency-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024_lab.xsd",
      "https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd",
      "https://xbrl.sec.gov/ecd/2024/ecd-sub-2024.xsd",
      "https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd"
     ]
    }
   },
   "keyStandard": 270,
   "keyCustom": 104,
   "axisStandard": 31,
   "axisCustom": 0,
   "memberStandard": 34,
   "memberCustom": 103,
   "hidden": {
    "total": 23,
    "http://fasb.org/us-gaap/2024": 19,
    "http://xbrl.sec.gov/dei/2024": 4
   },
   "contextCount": 2843,
   "entityCount": 1,
   "segmentCount": 140,
   "elementCount": 956,
   "unitCount": 10,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2024": 8111,
    "http://xbrl.sec.gov/dei/2024": 32,
    "http://fasb.org/srt/2024": 32,
    "http://xbrl.sec.gov/ecd/2024": 4,
    "http://xbrl.sec.gov/cef/2024": 2
   },
   "report": {
    "R1": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "longName": "100000 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "dei:DocumentPeriodEndDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
     "longName": "100010 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES",
     "shortName": "CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:CashHeldInForeignCurrency",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
     "longName": "100020 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES (Parenthetical)",
     "shortName": "CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "mfic:CashHeldInForeignCurrencyAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited",
     "longName": "100050 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)",
     "shortName": "CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:InterestIncomeOperatingPaidInKind",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:GrossInvestmentIncomeOperating",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
     "longName": "100060 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS (Unaudited)",
     "shortName": "CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:NetInvestmentIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:InvestmentCompanyDistributionOrdinaryIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
     "longName": "100070 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)",
     "shortName": "CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
     "longName": "100080 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited)",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_adc03ee6-73fd-4cdb-8628-5b735b2966bf",
      "name": "us-gaap:InvestmentOwnedBalancePrincipalAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
     "longName": "100090 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical) (unaudited)",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical) (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
     "longName": "100100 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Fair Value along with Transactions in Affiliated Investments",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Fair Value along with Transactions in Affiliated Investments",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_04e2ddea-c98d-4b4d-add8-2470168dd272",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R10": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
     "longName": "100110 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Fair Value along with Transactions in Controlled Investments",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Fair Value along with Transactions in Controlled Investments",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "10",
     "firstAnchor": {
      "contextRef": "C_04e2ddea-c98d-4b4d-add8-2470168dd272",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R11": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
     "longName": "100120 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Commitments to Funds",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Commitments to Funds",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "11",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5c57ebf3-1aaf-4cbb-babd-61470dc08ec8",
      "name": "us-gaap:InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
     "longName": "100130 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Commitments to Funds (Parenthetical)",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Commitments to Funds (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "12",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4d9faf34-6f86-499a-a1fd-f9447425fa76",
      "name": "mfic:LettersOfCreditExpirationYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "link:footnote",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
     "longName": "100140 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Acquisition Dates of Restricted Securities",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Acquisition Dates of Restricted Securities",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "13",
     "firstAnchor": {
      "contextRef": "C_22c835db-a955-41d0-ae52-3350efe43b9a",
      "name": "us-gaap:InvestmentAcquisitionDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_22c835db-a955-41d0-ae52-3350efe43b9a",
      "name": "us-gaap:InvestmentAcquisitionDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
     "longName": "100150 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Composition of Portfolio at Cost by Control Designation, Investment Type and Industry",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Composition of Portfolio at Cost by Control Designation, Investment Type and Industry",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "14",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R15": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
     "longName": "100160 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Composition of Portfolio at Fair Value by Control Designation, Investment Type and Industry",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Composition of Portfolio at Fair Value by Control Designation, Investment Type and Industry",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "15",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_04e2ddea-c98d-4b4d-add8-2470168dd272",
      "name": "us-gaap:InvestmentOwnedPercentOfNetAssets",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment",
     "longName": "100170 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Summary of Percentage of Total Investment",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited) - Summary of Percentage of Total Investment",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "16",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "mfic:PercentageOfTotalInvestmentsAtFairValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "mfic:PercentageOfTotalInvestmentsAtFairValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://xbrl.sec.gov/ecd/role/PvpDisclosure",
     "longName": "995410 - Disclosure - Pay vs Performance Disclosure",
     "shortName": "Pay vs Performance Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R18": {
     "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": "18",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganization",
     "longName": "995455 - Disclosure - Organization",
     "shortName": "Organization",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPolicies",
     "longName": "995465 - Disclosure - Significant Accounting Policies",
     "shortName": "Significant Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://xbrl.sec.gov/cef/role/N2",
     "longName": "995470 - Disclosure - N-2",
     "shortName": "N-2",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "dei:EntityFileNumber",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "cef:InvestmentObjectivesAndPracticesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureRelatedPartyAgreementsAndTransactions",
     "longName": "995475 - Disclosure - Related Party Agreements and Transactions",
     "shortName": "Related Party Agreements and Transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShare",
     "longName": "995485 - Disclosure - Earnings Per Share",
     "shortName": "Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestments",
     "longName": "995495 - Disclosure - Investments",
     "shortName": "Investments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslations",
     "longName": "995505 - Disclosure - Debt and Foreign Currency Transactions and Translations",
     "shortName": "Debt and Foreign Currency Transactions and Translations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquity",
     "longName": "995515 - Disclosure - Stockholders' Equity",
     "shortName": "Stockholders' Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingencies",
     "longName": "995525 - Disclosure - Commitments and Contingencies",
     "shortName": "Commitments and Contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlights",
     "longName": "995535 - Disclosure - Financial Highlights",
     "shortName": "Financial Highlights",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAif",
     "longName": "995545 - Disclosure - Mergers with AFT and AIF",
     "shortName": "Mergers with AFT and AIF",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEvents",
     "longName": "995555 - Disclosure - Subsequent Events",
     "shortName": "Subsequent Events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies",
     "longName": "995565 - Disclosure - Significant Accounting Policies (Policies)",
     "shortName": "Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "longName": "995575 - Disclosure - Earnings Per Share (Tables)",
     "shortName": "Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables",
     "longName": "995585 - Disclosure - Investments (Tables)",
     "shortName": "Investments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables",
     "longName": "995595 - Disclosure - Debt and Foreign Currency Transactions and Translations (Tables)",
     "shortName": "Debt and Foreign Currency Transactions and Translations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "34",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityTables",
     "longName": "995605 - Disclosure - Stockholders' Equity (Tables)",
     "shortName": "Stockholders' Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables",
     "longName": "995615 - Disclosure - Commitments and Contingencies (Tables)",
     "shortName": "Commitments and Contingencies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:SummaryOfUnfundedCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:SummaryOfUnfundedCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsTables",
     "longName": "995625 - Disclosure - Financial Highlights (Tables)",
     "shortName": "Financial Highlights (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifTables",
     "longName": "995635 - Disclosure - Mergers with AFT and AIF (Tables)",
     "shortName": "Mergers with AFT and AIF (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
     "longName": "995645 - Disclosure - Organization - Additional Information (Details)",
     "shortName": "Organization - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_bd4ba5b2-1375-415f-aa0c-caa480c5469e",
      "name": "us-gaap:OperationsCommencedDate1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bd4ba5b2-1375-415f-aa0c-caa480c5469e",
      "name": "us-gaap:OperationsCommencedDate1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
     "longName": "995655 - Disclosure - Significant Accounting Policies - Additional Information (Details)",
     "shortName": "Significant Accounting Policies - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "40",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:DerivativeNumberOfInstrumentsHeld",
      "unitRef": "U_Contract",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "mfic:CollateralOnOptionContractsPolicyTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
     "longName": "995665 - Disclosure - Related Party Agreements and Transactions - Additional Information (Details)",
     "shortName": "Related Party Agreements and Transactions - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "41",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:IncentiveFeeExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4923e16c-dcf1-438a-ae50-3d8e8ab0bb2e",
      "name": "us-gaap:EquityMethodInvestmentOwnershipPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
     "longName": "995675 - Disclosure - Earnings Per Share - Schedule of Computation of Earnings (Loss) Per Share (Details)",
     "shortName": "Earnings Per Share - Schedule of Computation of Earnings (Loss) Per Share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "42",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R43": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
     "longName": "995685 - Disclosure - Investments - Schedule of Composition of Investment Portfolio (Detail)",
     "shortName": "Investments - Schedule of Composition of Investment Portfolio (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "43",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:CashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
     "longName": "995695 - Disclosure - Investments - Schedule of Changes in Fair Value of Investments (Detail)",
     "shortName": "Investments - Schedule of Changes in Fair Value of Investments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "44",
     "firstAnchor": {
      "contextRef": "C_164fa661-19c6-4983-9241-25bc73160fdf",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_164fa661-19c6-4983-9241-25bc73160fdf",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail",
     "longName": "995705 - Disclosure - Investments - Schedule of Changes in Fair Value of Investments (Parenthetical) (Detail)",
     "shortName": "Investments - Schedule of Changes in Fair Value of Investments (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "45",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
     "longName": "995715 - Disclosure - Investments - Summary of Unobservable Inputs Used in Fair Value Measurements of Level 3 Investments (Detail)",
     "shortName": "Investments - Summary of Unobservable Inputs Used in Fair Value Measurements of Level 3 Investments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_db9fda44-de03-4107-902d-d8097f2748dd",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_db9fda44-de03-4107-902d-d8097f2748dd",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
     "longName": "995725 - Disclosure - Investments - Additional Information (Details)",
     "shortName": "Investments - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "47",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "mfic:PurchasesOfInvestmentsOnTradeDateBasis",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "mfic:PurchasesOfInvestmentsOnTradeDateBasis",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails",
     "longName": "995735 - Disclosure - Investments - Summary of Change in Capitalized PIK balance (Details)",
     "shortName": "Investments - Summary of Change in Capitalized PIK balance (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_9b3c7355-c6ce-4673-869c-a3e73c1cc42c",
      "name": "mfic:PaidInKindBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ChangeInCapitalizedPikBalanceTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9b3c7355-c6ce-4673-869c-a3e73c1cc42c",
      "name": "mfic:PaidInKindBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ChangeInCapitalizedPikBalanceTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
     "longName": "995745 - Disclosure - Debt and Foreign Currency Transactions and Translations -- Additional Information (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations -- Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d662fdf8-e047-4d71-a14c-c1af94977ad7",
      "name": "us-gaap:AccountsReceivableFromSecuritization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
     "longName": "995755 - Disclosure - Debt and Foreign Currency Transactions and Translations - Schedule of Outstanding Debt Obligations (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Schedule of Outstanding Debt Obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "50",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
     "longName": "995765 - Disclosure - Debt and Foreign Currency Transactions and Translations - Schedule of Outstanding Debt Obligations (Parenthetical) (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Schedule of Outstanding Debt Obligations (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "51",
     "firstAnchor": {
      "contextRef": "C_c58e4460-0431-4be5-98e4-aa7d6266191f",
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R52": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
     "longName": "995775 - Disclosure - Debt and Foreign Currency Transactions and Translations - Summary of Secured and Unsecured Notes Issued (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Summary of Secured and Unsecured Notes Issued (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "52",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:DebtInstrumentCarryingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_10fd88b8-5415-4eb8-b8b3-d3b794ebf18d",
      "name": "us-gaap:DebtInstrumentInterestRateDuringPeriod",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
     "longName": "995785 - Disclosure - Debt and Foreign Currency Transactions and Translations - Summarizes Average and Maximum Debt Outstanding and Interest and Debt Issuance Cost (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Summarizes Average and Maximum Debt Outstanding and Interest and Debt Issuance Cost (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:LongTermDebtAverageAmountOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "mfic:MaximumAmountOfDebtOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
     "longName": "995795 - Disclosure - Debt and Foreign Currency Transactions and Translations - Summarizes Average and Maximum Debt Outstanding and Interest and Debt Issuance Cost (Parenthetical) (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Summarizes Average and Maximum Debt Outstanding and Interest and Debt Issuance Cost (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "C_8226cdc0-d943-491b-9fdf-8c7d2fc76370",
      "name": "us-gaap:LineOfCreditFacilityCommitmentFeeAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8226cdc0-d943-491b-9fdf-8c7d2fc76370",
      "name": "us-gaap:LineOfCreditFacilityCommitmentFeeAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
     "longName": "995805 - Disclosure - Debt and Foreign Currency Transactions and Translations - Summary of Foreign Denominated Debt Outstanding on Senior Secured Facility (Details)",
     "shortName": "Debt and Foreign Currency Transactions and Translations - Summary of Foreign Denominated Debt Outstanding on Senior Secured Facility (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "C_c58e4460-0431-4be5-98e4-aa7d6266191f",
      "name": "mfic:ForeignDenominatedOriginalPrincipalAmountOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c58e4460-0431-4be5-98e4-aa7d6266191f",
      "name": "mfic:ForeignDenominatedOriginalPrincipalAmountOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
     "longName": "995815 - Disclosure - Stockholders' Equity - Additional Information (Details)",
     "shortName": "Stockholders' Equity - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "C_c4215fd7-7bdf-4e88-9024-b0210a4ee5f8",
      "name": "us-gaap:ProceedsFromIssuanceOfCommonStock",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3946e569-30e3-4d0d-ad02-3afc7dd9e927",
      "name": "us-gaap:TreasuryStockSharesAcquired",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails",
     "longName": "995825 - Disclosure - Stockholders' Equity - Schedule of Repurchase Plans (Details)",
     "shortName": "Stockholders' Equity - Schedule of Repurchase Plans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "C_fe4ceb55-4df1-4970-9003-933f6568c5c7",
      "name": "srt:StockRepurchaseProgramAuthorizedAmount1",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_fe4ceb55-4df1-4970-9003-933f6568c5c7",
      "name": "srt:StockRepurchaseProgramAuthorizedAmount1",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails",
     "longName": "995835 - Disclosure - Stockholders' Equity - Summary of Allocated Amounts to be Repurchased (Details)",
     "shortName": "Stockholders' Equity - Summary of Allocated Amounts to be Repurchased (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "C_838c03e8-66f3-474a-a791-a51c6e67785b",
      "name": "srt:StockRepurchaseProgramExpirationDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_838c03e8-66f3-474a-a791-a51c6e67785b",
      "name": "srt:StockRepurchaseProgramExpirationDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
     "longName": "995845 - Disclosure - Commitments and Contingencies - Summary of Unfunded Commitments (Details)",
     "shortName": "Commitments and Contingencies - Summary of Unfunded Commitments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ba99203a-0558-4be7-a75a-cd261fc1d6f3",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
     "longName": "995855 - Disclosure - Commitments and Contingencies - Summary of Unfunded Commitments (Parenthetical) (Details)",
     "shortName": "Commitments and Contingencies - Summary of Unfunded Commitments (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1a29d5f6-ce17-4ae8-8e94-19c81b38460e",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "ix:continuation",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
     "longName": "995865 - Disclosure - Financial Highlights - Schedule of Financial Highlights (Details)",
     "shortName": "Financial Highlights - Schedule of Financial Highlights (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "C_04e2ddea-c98d-4b4d-add8-2470168dd272",
      "name": "us-gaap:NetAssetValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "us-gaap:InvestmentCompanyInvestmentIncomeLossPerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails",
     "longName": "995875 - Disclosure - Financial Highlights - Schedule of Financial Highlights (Parenthetical) (Details)",
     "shortName": "Financial Highlights - Schedule of Financial Highlights (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_35edfeed-d238-4dcf-add0-1d8dab6f4155",
      "name": "mfic:InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
     "longName": "995885 - Disclosure - Mergers with AFT and AIF - Additional Information (Details)",
     "shortName": "Mergers with AFT and AIF - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0e9be5a5-d7c9-4e11-80ee-1cb9da13758b",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
     "longName": "995895 - Disclosure - Mergers with AFT and AIF - Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed (Details)",
     "shortName": "Mergers with AFT and AIF - Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "C_95830e5f-a59b-4696-aff0-ee40e5ea9ecc",
      "name": "us-gaap:BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_95830e5f-a59b-4696-aff0-ee40e5ea9ecc",
      "name": "us-gaap:BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
     "longName": "995905 - Disclosure - Mergers with AFT and AIF - Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed (Parenthetical) (Details)",
     "shortName": "Mergers with AFT and AIF - Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed (Parenthetical) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_516d74f2-278d-47f2-8095-7c86907c7ff1",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_95830e5f-a59b-4696-aff0-ee40e5ea9ecc",
      "name": "us-gaap:CashHeldInForeignCurrencyAcquisitionCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails",
     "longName": "995915 - Disclosure - Subsequent Events - Additional Information (Details)",
     "shortName": "Subsequent Events - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "C_c58e4460-0431-4be5-98e4-aa7d6266191f",
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5014a7ce-ad6a-40ef-b3ca-4d5875064857",
      "name": "us-gaap:LineOfCreditFacilityExpirationDate1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20240930.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "mfic_AFTAndAIFFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AFTAndAIFFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "AFT / AIF",
        "terseLabel": "AFT and AIF First Merger",
        "label": "A F T and A I F First Merger [Member]",
        "documentation": "A F T and A I F first merger."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AFTFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AFTFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFT First Merger.",
        "label": "A F T First Merger [Member]",
        "terseLabel": "AFT First Merger"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AICSPVHoldingsIILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AICSPVHoldingsIILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIC SPV Holdings II, LLC",
        "label": "A I C S P V Holdings I I L L C [Member]",
        "documentation": "AIC SPV Holdings II, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AIFFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AIFFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A I F First Merger.",
        "label": "A I F First Merger [Member]",
        "terseLabel": "AIF First Merger"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsReceivableFromSecuritization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccountsReceivableFromSecuritization",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable from Securitization",
        "terseLabel": "Term debt securitization",
        "documentation": "The amount owed to the reporting entity by counterparties in securitized loan transactions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net amortization of premiums and accretion of discounts on investments",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "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": [
      "r77"
     ]
    },
    "mfic_AccruedAdministrativeServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AccruedAdministrativeServicesExpense",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued administrative services expense",
        "label": "Accrued Administrative Services Expense",
        "documentation": "Accrued administrative services expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities and accrued expenses",
        "label": "Accrued Liabilities and Other Liabilities",
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AcquiredFundFeesAndExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AcquiredFundFeesAndExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r797"
     ]
    },
    "cef_AcquiredFundFeesAndExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AcquiredFundFeesAndExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r798"
     ]
    },
    "cef_AcquiredFundFeesEstimatedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AcquiredFundFeesEstimatedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees Estimated, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r799"
     ]
    },
    "cef_AcquiredFundIncentiveAllocationNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AcquiredFundIncentiveAllocationNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Incentive Allocation, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "cef_AcquiredFundTotalAnnualExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AcquiredFundTotalAnnualExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Total Annual Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r801"
     ]
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure [Text Block]",
        "terseLabel": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r852"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdditionalPaidInCapitalCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid in Capital, Common Stock",
        "terseLabel": "Capital in excess of par value",
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital."
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "dei_AdditionalSecurities462b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AdditionalSecurities462b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities. 462(b)"
       }
      }
     },
     "auth_ref": [
      "r905"
     ]
    },
    "dei_AdditionalSecurities462bFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AdditionalSecurities462bFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities, 462(b), File Number"
       }
      }
     },
     "auth_ref": [
      "r905"
     ]
    },
    "dei_AdditionalSecuritiesEffective413b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AdditionalSecuritiesEffective413b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities Effective, 413(b)"
       }
      }
     },
     "auth_ref": [
      "r904"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Address Type [Domain]",
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation Amount",
        "terseLabel": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]",
        "terseLabel": "Adjustment to Compensation:"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]",
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]",
        "terseLabel": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "mfic_AdjustmentsDueToInvestmentsExitedOrWrittenOff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AdjustmentsDueToInvestmentsExitedOrWrittenOff",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments due to investments exited or written off",
        "label": "Adjustments Due To Investments Exited Or Written Off",
        "documentation": "Adjustments due to investments exited or written off."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AdministrationAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AdministrationAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administration Agreement",
        "label": "Administration Agreement [Member]",
        "documentation": "Administration Agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdministrativeFeesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AdministrativeFeesExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative services expense",
        "label": "Administrative Fees Expense",
        "documentation": "Amount of expense for administrative fee from service provided, including, but not limited to, salary, rent, or overhead cost."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r523",
      "r1046"
     ]
    },
    "mfic_AdvertisingPrintingAndPublishingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AdvertisingPrintingAndPublishingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advertising, Printing &amp; Publishing",
        "label": "Advertising Printing And Publishing [Member]",
        "documentation": "Advertising, printing and publishing."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AffiliatedInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AffiliatedInvestmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Affiliated Investments",
        "label": "Affiliated Investments [Member]",
        "documentation": "Affiliated investments."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtChngPnsnValInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r898"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount",
        "terseLabel": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r751",
      "r762",
      "r842",
      "r876"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]",
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r754",
      "r765",
      "r845",
      "r879"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtPnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Pension Adjustments Service Cost [Member]",
        "terseLabel": "Aggregate Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r899"
     ]
    },
    "mfic_AgreementTerminationFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AgreementTerminationFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agreement termination fee",
        "label": "Agreement Termination Fee",
        "documentation": "Agreement termination fee."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Adjustments to Compensation [Member]",
        "terseLabel": "All Adjustments to Compensation"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "cef_AllCoregistrantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AllCoregistrantsMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Coregistrants [Member]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2024",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Currencies [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Executive Categories [Member]",
        "terseLabel": "All Executive Categories"
       }
      }
     },
     "auth_ref": [
      "r872"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Individuals [Member]",
        "terseLabel": "All Individuals"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r872",
      "r880",
      "r884",
      "r892"
     ]
    },
    "cef_AllRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AllRisksMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Risks:"
       }
      }
     },
     "auth_ref": [
      "r823"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Trading Arrangements [Member]",
        "terseLabel": "All Trading Arrangements"
       }
      }
     },
     "auth_ref": [
      "r890"
     ]
    },
    "mfic_AmendedSeniorSecuredFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AmendedSeniorSecuredFacilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amended Senior Secured Facility",
        "label": "Amended Senior Secured Facility [Member]",
        "documentation": "Amended senior secured facility."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfDebtDiscountPremium": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfDebtDiscountPremium",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Debt Discount (Premium)",
        "terseLabel": "Accretion of discount on notes",
        "documentation": "Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r72",
      "r242",
      "r978"
     ]
    },
    "us-gaap_AmortizationOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AmortizationOfFinancingCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of deferred financing costs",
        "label": "Amortization of Debt Issuance Costs",
        "documentation": "Amount of amortization expense attributable to debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r242",
      "r928",
      "r978"
     ]
    },
    "cef_AnnualCoverageReturnRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualCoverageReturnRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Coverage Return Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r826"
     ]
    },
    "cef_AnnualDividendPayment": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualDividendPayment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "cef_AnnualDividendPaymentCurrent": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualDividendPaymentCurrent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Current"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "cef_AnnualDividendPaymentInitial": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualDividendPaymentInitial",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Initial"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "cef_AnnualExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r805"
     ]
    },
    "cef_AnnualInterestRateCurrentPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualInterestRateCurrentPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Current [Percent]"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "cef_AnnualInterestRateInitialPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualInterestRateInitialPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Initial [Percent]"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "cef_AnnualInterestRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "AnnualInterestRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r825"
     ]
    },
    "mfic_AnnualizedAmortizedDebtIssuanceCostDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AnnualizedAmortizedDebtIssuanceCostDuringPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized amortized debt issuance cost",
        "label": "Annualized Amortized Debt Issuance Cost During Period",
        "documentation": "Annualized amortized debt issuance cost during period."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloInvestmentAdministrationLimitedLiabilityCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ApolloInvestmentAdministrationLimitedLiabilityCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIA",
        "label": "Apollo Investment Administration Limited Liability Company [Member]",
        "documentation": "Apollo Investment Administration, Limited Liability Company."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloInvestmentManagementLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ApolloInvestmentManagementLPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIM",
        "label": "Apollo Investment Management L P [Member]",
        "documentation": "Apollo Investment Management, L.P."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloSeniorFloatingRateFundIncAndApolloTacticalIncomeFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ApolloSeniorFloatingRateFundIncAndApolloTacticalIncomeFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AFT / AIF",
        "label": "Apollo Senior Floating Rate Fund Inc And Apollo Tactical Income Fund Inc. [Member]",
        "documentation": "Apollo Senior Floating Rate Fund Inc. and Apollo Tactical Income Fund Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloSeniorFloatingRateFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ApolloSeniorFloatingRateFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AFT",
        "label": "Apollo Senior Floating Rate Fund Inc [Member]",
        "documentation": "Apollo senior floating rate fund inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloTacticalIncomeFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ApolloTacticalIncomeFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIF",
        "label": "Apollo Tactical Income Fund Inc [Member]",
        "documentation": "Apollo tactical income fund inc."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ApproximateDateOfCommencementOfProposedSaleToThePublic": {
     "xbrltype": "dateOrAsapItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ApproximateDateOfCommencementOfProposedSaleToThePublic",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Approximate Date of Commencement of Proposed Sale to Public",
        "documentation": "The approximate date of a commencement of a proposed sale of securities to the public. This element is disclosed in S-1, S-3, S-4, S-11, F-1, F-3 and F-10 filings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Assets",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Assets",
        "label": "Assets",
        "documentation": "Amount of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r93",
      "r102",
      "r131",
      "r151",
      "r183",
      "r187",
      "r189",
      "r190",
      "r197",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r324",
      "r328",
      "r357",
      "r397",
      "r516",
      "r689",
      "r690",
      "r722",
      "r740",
      "r954",
      "r955",
      "r981"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Fair Value Disclosure",
        "label": "Assets, Fair Value Disclosure",
        "totalLabel": "Assets, Fair Value Disclosure, Total",
        "documentation": "Fair value portion of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r341",
      "r342",
      "r711"
     ]
    },
    "us-gaap_AssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net assets at end of period (in millions)",
        "periodEndLabel": "Net Assets at End of Period",
        "netLabel": "Net Asset Value Per Share",
        "periodStartLabel": "Net assets at beginning of period",
        "label": "Net Assets",
        "totalLabel": "Net Assets",
        "verboseLabel": "Net Assets",
        "documentation": "Amount of net assets (liabilities)."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "mfic_AtTheMarketOfferingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AtTheMarketOfferingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ATM Offering",
        "label": "At The Market Offering [Member]",
        "documentation": "At the market offering."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AutoPoolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AutoPoolMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auto Pool 2023",
        "label": "Auto Pool [Member]",
        "documentation": "Auto pool."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AutomotiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AutomotiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Automotive",
        "label": "Automotive [Member]",
        "documentation": "Automotive."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AverageGrossAssetsMinimumProductPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AverageGrossAssetsMinimumProductPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average gross assets minimum product percentage",
        "label": "Average Gross Assets Minimum Product Percentage",
        "documentation": "Average gross assets minimum product percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AviationAndConsumerTransportMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "AviationAndConsumerTransportMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aviation and Consumer Transport",
        "label": "Aviation And Consumer Transport [Member]",
        "documentation": "Aviation and consumer transport."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r887"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Grant Date Fair Value",
        "terseLabel": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r888"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered [Text Block]",
        "terseLabel": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method [Text Block]",
        "terseLabel": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered [Flag]",
        "terseLabel": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure [Text Block]",
        "terseLabel": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined [Flag]",
        "terseLabel": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r274",
      "r275",
      "r276",
      "r277",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r886"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r885"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures"
       }
      }
     },
     "auth_ref": [
      "r884"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r884"
     ]
    },
    "mfic_BankBillSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BankBillSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank Bill Swap Rate, BBSW",
        "label": "Bank Bill Swap Rate [Member]",
        "documentation": "Bank bill swap rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BaseAmountConsideredForCovenants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BaseAmountConsideredForCovenants",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Base amount considered for covenants.",
        "label": "Base Amount Considered for Covenants",
        "terseLabel": "Base amount considered for covenants"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BaseManagementFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BaseManagementFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Base Management Fee",
        "label": "Base Management Fee [Member]",
        "documentation": "Base management fee."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BaseRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BaseRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Base Rate [Member]",
        "terseLabel": "Alternate Base Rate",
        "documentation": "Minimum rate investor will accept."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of Presentation",
        "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": []
    },
    "cef_BasisOfTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "BasisOfTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r803"
     ]
    },
    "cef_BdcFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "BdcFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BDC File Number"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeverageFoodAndTobaccoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BeverageFoodAndTobaccoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Beverage, Food &amp; Tobacco",
        "label": "Beverage Food And Tobacco [Member]",
        "documentation": "Beverage food and tobacco."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BridgeLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BridgeLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bridge Loan Commitments",
        "label": "Bridge Loan Commitments [Member]",
        "documentation": "Bridge loan commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "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": [
      "r200",
      "r201",
      "r202",
      "r203",
      "r204",
      "r318",
      "r704",
      "r705"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Axis]",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r37",
      "r200",
      "r201",
      "r202",
      "r203",
      "r204",
      "r318",
      "r704",
      "r705"
     ]
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Acquisition [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r318"
     ]
    },
    "mfic_BusinessAcquisitionManagementFeeAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BusinessAcquisitionManagementFeeAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee accrued",
        "label": "Business Acquisition Management Fee Accrued",
        "documentation": "Business acquisition management fee accrued."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessAcquisitionSharePrice",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business acquisition, share price",
        "label": "Business Acquisition, Share Price",
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationAndAssetAcquisitionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationAndAssetAcquisitionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Asset Acquisition, and Joint Venture Formation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationConsiderationTransferred1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Purchase Consideration",
        "label": "Business Combination, Consideration Transferred",
        "documentation": "Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r3",
      "r10"
     ]
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Issuance of common stock",
        "terseLabel": "Common stock issued by the Company",
        "label": "Business Combination, Consideration Transferred, Equity Interests Issued and Issuable",
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r3"
     ]
    },
    "mfic_BusinessCombinationDeemedContributionFromTheInvestmentAdvisor": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BusinessCombinationDeemedContributionFromTheInvestmentAdvisor",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deemed contribution from the Investment Advisor",
        "label": "Business Combination, Deemed Contribution From The Investment Advisor",
        "documentation": "Business combination, deemed contribution from the investment advisor."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAif"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mergers with AFT and AIF",
        "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": [
      "r86",
      "r319"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Assets Acquired",
        "totalLabel": "Total Assets Acquired",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets",
        "documentation": "Amount of assets acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets Acquired:",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash &amp; Cash Equivalent",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions, acquired at the acquisition date. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Assets",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Other",
        "documentation": "Amount of other assets expected to be realized or consumed before one year or the normal operating cycle, if longer, acquired at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "mfic_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments, at fair value",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Investments, at fair value",
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, investments, at fair value."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Liabilities Assumed",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities, Total",
        "documentation": "Amount of liabilities assumed at the acquisition date."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities Assumed:",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Assets Acquired",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net",
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed."
       }
      }
     },
     "auth_ref": [
      "r38",
      "r39"
     ]
    },
    "mfic_BusinessCombinationRelatedAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BusinessCombinationRelatedAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized cost",
        "label": "Business Combination Related Amortized Cost",
        "documentation": "Business combination related amortized cost."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "BusinessCombinationsPolicy",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase Accounting",
        "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": [
      "r87",
      "r88",
      "r89",
      "r90"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r746",
      "r758"
     ]
    },
    "cef_BusinessDevelopmentCompanyFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "BusinessDevelopmentCompanyFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Development Company [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "mfic_BusinessServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "BusinessServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Services",
        "label": "Business Services [Member]",
        "documentation": "Business services."
       }
      }
     },
     "auth_ref": []
    },
    "currency_CAD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2024",
     "localname": "CAD",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Canadian Dollar",
        "label": "Canada, Dollars"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CapitalGainsIncentiveFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CapitalGainsIncentiveFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Capital gains incentive fee.",
        "label": "Capital Gains Incentive Fee",
        "terseLabel": "Capital gains incentive fee"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CapitalStockLongTermDebtAndOtherSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "CapitalStockLongTermDebtAndOtherSecuritiesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock, Long-Term Debt, and Other Securities [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r771"
     ]
    },
    "cef_CapitalStockTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "CapitalStockTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r772"
     ]
    },
    "mfic_CarbonfreeChemicalsSALLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CarbonfreeChemicalsSALLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carbonfree Chemicals S A L L C",
        "label": "Carbonfree Chemicals S A L L C [Member]",
        "documentation": "Carbonfree Chemicals SA LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CashAcquiredInAftAndAifMergers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CashAcquiredInAftAndAifMergers",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash acquired in AFT and AIF Mergers",
        "label": "Cash Acquired in AFT and AIF Mergers",
        "documentation": "Cash acquired in AFT and AIF mergers."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cash Equivalents",
        "terseLabel": "Cash and cash equivalents",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total",
        "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": [
      "r18",
      "r129",
      "r682"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Axis]",
        "documentation": "Information by type of cash and cash equivalent balance."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Cash Equivalents, Fair Value",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "documentation": "Fair value portion 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."
       }
      }
     },
     "auth_ref": [
      "r968",
      "r969"
     ]
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Cash Equivalents",
        "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": [
      "r19"
     ]
    },
    "mfic_CashCashEquivalentsAndForeignCurrenciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CashCashEquivalentsAndForeignCurrenciesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash, Cash Equivalents and Foreign Currencies",
        "label": "Cash Cash Equivalents And Foreign Currencies [Abstract]",
        "documentation": "Cash, cash equivalents and foreign currencies."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Total",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents",
        "periodStartLabel": "Cash, cash equivalents and foreign currencies at beginning of period",
        "periodEndLabel": "Cash, Cash Equivalents and Foreign Currencies at the End of Period",
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r75",
      "r148"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase (decrease) in cash, cash equivalents and foreign currencies during the period",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Excluding Exchange Rate Effect",
        "negatedTotalLabel": "Net increase (decrease) in cash, cash equivalents and foreign currencies during the period",
        "documentation": "Amount of increase (decrease) in cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; excluding effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r75"
     ]
    },
    "us-gaap_CashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Cash Equivalents",
        "label": "Cash Equivalents, at Carrying Value",
        "totalLabel": "Cash Equivalents, at Carrying Value, Total",
        "documentation": "Amount of 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": [
      "r923",
      "r992"
     ]
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Disclosure of Non-Cash Activity",
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashHeldInForeignCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashHeldInForeignCurrency",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currencies (cost - $356 and $28,563, respectively)",
        "label": "Cash and Cash Equivalents, Held in Foreign Currency",
        "documentation": "Amount of cash and cash equivalents held in foreign currency. Excludes cash within disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalents include, but are not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate."
       }
      }
     },
     "auth_ref": [
      "r474",
      "r740"
     ]
    },
    "us-gaap_CashHeldInForeignCurrencyAcquisitionCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CashHeldInForeignCurrencyAcquisitionCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign cash and cash equivalent",
        "label": "Cash and Cash Equivalents, Held in Foreign Currency, Acquisition Cost",
        "documentation": "Amount of acquisition cost for cash and cash equivalents held in foreign currency. Excludes cash within disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalents include, but are not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate."
       }
      }
     },
     "auth_ref": [
      "r474"
     ]
    },
    "mfic_CashHeldInForeignCurrencyAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CashHeldInForeignCurrencyAtCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currencies, cost",
        "label": "Cash Held In Foreign Currency At Cost",
        "documentation": "Cash held in foreign currency at cost."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CatchUpAmountMultiplyingPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CatchUpAmountMultiplyingPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Catch-up amount multiplying percentage",
        "label": "Catch Up Amount Multiplying Percentage",
        "documentation": "Catch-up amount multiplying percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChangeInCapitalizedPikBalanceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ChangeInCapitalizedPikBalanceTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Change in Capitalized PIK balance",
        "label": "Change In Capitalized Pik Balance [Table Text Block]",
        "documentation": "Change in capitalized PIK balance."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote [Text Block]",
        "terseLabel": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r863"
     ]
    },
    "mfic_ChemicalsPlasticsAndRubberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ChemicalsPlasticsAndRubberMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chemicals, Plastics &amp; Rubber",
        "label": "Chemicals Plastics And Rubber [Member]",
        "documentation": "Chemicals, plastics &amp; rubber."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member]",
        "terseLabel": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r860"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member]",
        "terseLabel": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "mfic_ChyronHegoCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ChyronHegoCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ChyronHego Corporation",
        "label": "Chyron Hego Corporation [Member]",
        "documentation": "ChyronHego Corporation.",
        "verboseLabel": "ChyronHego Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "terseLabel": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassAOneNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ClassAOneNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A-1 Notes",
        "label": "Class A One Notes [Member]",
        "documentation": "Class A one notes member"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassATwoNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ClassATwoNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A-2 Notes",
        "label": "Class A Two Notes [Member]",
        "documentation": "Class A two notes member"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock",
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r133",
      "r134",
      "r135",
      "r151",
      "r173",
      "r174",
      "r176",
      "r178",
      "r185",
      "r186",
      "r197",
      "r218",
      "r220",
      "r221",
      "r222",
      "r225",
      "r226",
      "r248",
      "r249",
      "r252",
      "r255",
      "r262",
      "r357",
      "r442",
      "r443",
      "r444",
      "r445",
      "r460",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r475",
      "r503",
      "r528",
      "r560",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r913",
      "r929",
      "r935"
     ]
    },
    "us-gaap_ClassOfStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfStockLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class Of Stock [Line Items]",
        "label": "Class of Stock [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": [
      "r133",
      "r134",
      "r135",
      "r185",
      "r248",
      "r249",
      "r250",
      "r252",
      "r255",
      "r260",
      "r262",
      "r442",
      "r443",
      "r444",
      "r445",
      "r699",
      "r913",
      "r929"
     ]
    },
    "us-gaap_ClassOfTreasuryStockTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfTreasuryStockTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class Of Treasury Stock [Table]",
        "label": "Class of Treasury Stock [Table]",
        "documentation": "Disclosure of information about treasury stock, including, but not limited to, average cost per share, description of share repurchase program, shares repurchased, shares held for each class of treasury stock."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r33",
      "r34",
      "r35"
     ]
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Number of Securities Called by Each Warrant or Right",
        "terseLabel": "Converted into right to receive shares for each outstanding share of common stock",
        "documentation": "Number of securities into which each warrant or right may be converted. For example, but not limited to, each warrant may be converted into two shares."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CoInvestmentHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CoInvestmentHoldingsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Co-Investment Holdings",
        "label": "Co Investment Holdings [Member]",
        "documentation": "Co-investment holdings."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount",
        "terseLabel": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name",
        "terseLabel": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "mfic_CollateralOnOptionContractsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CollateralOnOptionContractsPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral on Option Contracts",
        "label": "Collateral On Option Contracts Policy [Text Block]",
        "documentation": "Collateral on option contracts."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CollateralizedLoanObligationsAndStructuredProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CollateralizedLoanObligationsAndStructuredProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateralized loan obligations and structured products.",
        "label": "Collateralized Loan Obligations and Structured Products [Member]",
        "terseLabel": "CLOs and Standard Products"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and contingencies (Note 8)",
        "label": "Commitments and Contingencies",
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur."
       }
      }
     },
     "auth_ref": [
      "r61",
      "r98",
      "r400",
      "r502"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingencies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and Contingencies",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r79",
      "r209",
      "r210",
      "r677",
      "r941",
      "r946"
     ]
    },
    "mfic_CommitmentsAndContingenciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CommitmentsAndContingenciesLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments And Contingencies [Line Items]",
        "label": "Commitments And Contingencies [Line Items]",
        "documentation": "Commitments and contingencies."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommitmentsAndContingenciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CommitmentsAndContingenciesTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments And Contingencies [Table]",
        "label": "Commitments And Contingencies [Table]",
        "documentation": "Commitments and contingencies."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommonEquityInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CommonEquityInterestsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Equity Interests [Member]",
        "documentation": "Common Equity/Interests.",
        "terseLabel": "Common Equity/Interests",
        "verboseLabel": "Common Equity - Equity Interest"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common Stock",
        "terseLabel": "Common Equity",
        "label": "Common Stock",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r729",
      "r730",
      "r731",
      "r733",
      "r734",
      "r735",
      "r736",
      "r931",
      "r932",
      "r934",
      "r967",
      "r1027",
      "r1051"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, par value",
        "label": "Common Stock, Par or Stated Value Per Share",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares authorized",
        "label": "Common Stock, Shares Authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r503"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock, shares issued",
        "label": "Common Stock, Shares, Issued",
        "periodStartLabel": "Shares issued at beginning of period",
        "periodEndLabel": "Shares Issued at End of Period",
        "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": [
      "r64"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Shares Outstanding at End of Period",
        "periodStartLabel": "Shares outstanding at beginning of period",
        "terseLabel": "Common stock, shares outstanding",
        "label": "Common Stock, Shares, Outstanding",
        "verboseLabel": "Shares outstanding at end of period",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r64",
      "r503",
      "r522",
      "r1051",
      "r1052"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common stock, issued value",
        "terseLabel": "Common stock, $0.001 par value (130,000,000 shares authorized; 93,780,278 and 65,253,275 shares issued and outstanding, respectively)",
        "label": "Common Stock, Value, Issued",
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity."
       }
      }
     },
     "auth_ref": [
      "r64",
      "r401",
      "r722"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r869"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r868"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r870"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r867"
     ]
    },
    "mfic_ConsideredPercentageOfNetProceedsFromSaleOfEquityInterestForCovenantsCalculation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ConsideredPercentageOfNetProceedsFromSaleOfEquityInterestForCovenantsCalculation",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Considered percentage of net proceeds from sale of equity interest for covenants calculation.",
        "label": "Considered Percentage of Net Proceeds from Sale of Equity Interest for Covenants Calculation",
        "terseLabel": "Considered percentage of net proceeds from sale of equity interest for covenants"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation",
        "label": "Consolidation, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting. The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r686"
     ]
    },
    "mfic_ConstructionAndBuildingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ConstructionAndBuildingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Construction &amp; Building",
        "label": "Construction And Building [Member]",
        "documentation": "Construction and Building."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerGoodsDurableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ConsumerGoodsDurableMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consumer Goods - Durable",
        "label": "Consumer Goods Durable [Member]",
        "documentation": "Consumer goods \u2013 durable."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerGoodsNonDurableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ConsumerGoodsNonDurableMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consumer Goods \u2013 Non-durable",
        "label": "Consumer Goods Non Durable [Member]",
        "documentation": "Consumer goods \u2013 non-durable."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ConsumerServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consumer Services",
        "label": "Consumer Services [Member]",
        "documentation": "Consumer services."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ContainersPackagingAndGlassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ContainersPackagingAndGlassMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Containers, Packaging &amp; Glass",
        "label": "Containers, Packaging and Glass [Member]",
        "documentation": "Containers, packaging and glass."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ControlledInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ControlledInvestmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Controlled Investments [Member]",
        "documentation": "Controlled investments member.",
        "terseLabel": "Controlled Investments"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CoregistrantAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "CoregistrantAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coregistrant [Axis]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Axis]",
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution."
       }
      }
     },
     "auth_ref": [
      "r121",
      "r122",
      "r152",
      "r153",
      "r230",
      "r250",
      "r378",
      "r389",
      "r396",
      "r683",
      "r685"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Facility",
        "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": [
      "r217",
      "r952"
     ]
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Facility",
        "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": [
      "r217",
      "r952",
      "r953"
     ]
    },
    "mfic_CumulativePreIncentiveFeeNetReturnDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CumulativePreIncentiveFeeNetReturnDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative pre-Incentive fee net return description",
        "label": "Cumulative Pre Incentive Fee Net Return Description",
        "documentation": "Cumulative pre-Incentive fee net return description."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency [Axis]",
        "documentation": "Information by currency."
       }
      }
     },
     "auth_ref": [
      "r976"
     ]
    },
    "mfic_CurrentFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "CurrentFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current fee [Member].",
        "label": "Current Fee [Member]",
        "terseLabel": "Current Fee"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtAndForeignCurrencyTransactionsAndTranslationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DebtAndForeignCurrencyTransactionsAndTranslationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt And Foreign Currency Transactions And Translations [Abstract]",
        "documentation": "Debt and foreign currency transactions and translations."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt and Foreign Currency Transactions and Translations",
        "label": "Debt And Foreign Currency Transactions And Translations [Text Block]",
        "documentation": "Debt and foreign currency transactions and translations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtConversionConvertedInstrumentAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtConversionConvertedInstrumentAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt conversion, converted into common equity",
        "label": "Debt Conversion, Converted Instrument, Amount",
        "documentation": "The value of the financial instrument(s) that the original debt is being converted into in a noncash (or part noncash) transaction. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r22"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r53",
      "r54",
      "r94",
      "r97",
      "r155",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r721",
      "r930",
      "r942",
      "r943",
      "r944",
      "r977",
      "r979"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowing base interest rate",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "verboseLabel": "Basis spread",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding debt obligations",
        "terseLabel": "Principal Outstanding",
        "verboseLabel": "Principal Amount Outstanding",
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r97",
      "r244"
     ]
    },
    "us-gaap_DebtInstrumentCreditRating": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentCreditRating",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Rating",
        "label": "Debt Instrument, Credit Rating",
        "documentation": "Description of the credit rating indicative of likelihood of repayment of the debt instrument given by a credit rating agency (for example, Standard and Poor's, Moody's, Fitch)."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r28"
     ]
    },
    "us-gaap_DebtInstrumentDateOfFirstRequiredPayment1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentDateOfFirstRequiredPayment1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Date of first required payment to repay",
        "label": "Debt Instrument, Date of First Required Payment",
        "documentation": "Date the debt agreement requires the first payment to be made, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r50"
     ]
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Aggregate principal amount",
        "terseLabel": "Principal Amount Outstanding",
        "label": "Total Aggregate Principal Amount Committed",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r227",
      "r368",
      "r369",
      "r695",
      "r696",
      "r721"
     ]
    },
    "us-gaap_DebtInstrumentFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value of Debt Obligations",
        "label": "Debt Instrument, Fair Value Disclosure",
        "totalLabel": "Debt Instrument, Fair Value Disclosure, Total",
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r356",
      "r695",
      "r696",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973"
     ]
    },
    "us-gaap_DebtInstrumentFrequencyOfPeriodicPayment": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentFrequencyOfPeriodicPayment",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Frequency of periodic payment",
        "label": "Debt Instrument, Frequency of Periodic Payment",
        "documentation": "Description of the frequency of periodic payments (monthly, quarterly, annual)."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r50"
     ]
    },
    "mfic_DebtInstrumentFrontingFeesOnLettersOfCreditIssued": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DebtInstrumentFrontingFeesOnLettersOfCreditIssued",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fronting fees on letters of credit issued",
        "label": "Debt Instrument Fronting Fees On Letters Of Credit Issued",
        "documentation": "Debt instrument fronting fees on letters of credit issued."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentInterestRateDuringPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interest Rate",
        "totalLabel": "Total annualized interest cost",
        "terseLabel": "Total annualized interest cost",
        "label": "Debt Instrument, Interest Rate During Period",
        "documentation": "The average effective interest rate during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r239",
      "r977"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annual interest rate",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r228"
     ]
    },
    "us-gaap_DebtInstrumentIssuanceDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentIssuanceDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Date Issued/ Amended",
        "label": "Debt Instrument, Issuance Date",
        "documentation": "Date the debt instrument was issued, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r956"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument [Line Items]",
        "label": "Debt Instrument [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r721",
      "r930",
      "r977",
      "r979"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Final Maturity Date",
        "label": "Debt Instrument, Maturity Date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r132",
      "r694",
      "r971",
      "r972"
     ]
    },
    "us-gaap_DebtInstrumentMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentMeasurementInput",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Quantitative Information on Unobservable input",
        "label": "Debt Instrument, Measurement Input",
        "documentation": "Value of input used to measure debt instrument, including, but not limited to, convertible and non-convertible debt."
       }
      }
     },
     "auth_ref": [
      "r970",
      "r971",
      "r972"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name",
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r155",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r721",
      "r930",
      "r942",
      "r943",
      "r944",
      "r977",
      "r979"
     ]
    },
    "mfic_DebtInstrumentNumberOfInstallment": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DebtInstrumentNumberOfInstallment",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of installment",
        "label": "Debt Instrument Number Of Installment",
        "documentation": "Debt instrument number of installment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Redemption, Period",
        "label": "Debt Instrument, Redemption, Period [Axis]",
        "documentation": "Information by period of debt redemption feature under terms of debt agreement."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument, Redemption, Period",
        "label": "Debt Instrument, Redemption, Period [Domain]",
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2024",
        "terseLabel": "2023",
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodStartDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodStartDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Redemption period, start date",
        "label": "Debt Instrument, Redemption Period, Start Date",
        "documentation": "Start date of debt instrument redemption period, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodThreeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Debt Instrument, Redemption, Period Three [Member]",
        "documentation": "Period three representing third most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "2025",
        "terseLabel": "2024",
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "mfic_DebtInstrumentRedemptionRatePerNote": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DebtInstrumentRedemptionRatePerNote",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument redemption rate per note",
        "label": "Debt Instrument Redemption Rate Per Note",
        "documentation": "Debt instrument redemption rate per note."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument [Table]",
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "documentation": "Disclosure of information about long-term debt instrument or arrangement."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r28",
      "r31",
      "r49",
      "r82",
      "r83",
      "r155",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r233",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r721",
      "r930",
      "r977",
      "r979"
     ]
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Deferred Financing Costs and Debt Discount",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total",
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r233",
      "r245",
      "r367",
      "r368",
      "r369",
      "r695",
      "r696",
      "r721"
     ]
    },
    "us-gaap_DebtInstrumentVariableInterestRateTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtInstrumentVariableInterestRateTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Variable Interest Rate, Type [Extensible Enumeration]",
        "documentation": "Indicates type of variable interest rate on debt instrument."
       }
      }
     },
     "auth_ref": [
      "r395"
     ]
    },
    "us-gaap_DebtRelatedCommitmentFeesAndDebtIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DebtRelatedCommitmentFeesAndDebtIssuanceCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt related commitment fees",
        "label": "Debt Related Commitment Fees and Debt Issuance Costs",
        "documentation": "Represents the charge against earnings during the period for commitment fees and debt issuance expenses."
       }
      }
     },
     "auth_ref": [
      "r72"
     ]
    },
    "us-gaap_DeferredChargesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredChargesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Charges, Policy [Policy Text Block]",
        "terseLabel": "Financing Costs",
        "documentation": "Disclosure of accounting policy for deferral and amortization of significant deferred charges."
       }
      }
     },
     "auth_ref": [
      "r130"
     ]
    },
    "us-gaap_DeferredCostsCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredCostsCurrentAndNoncurrent",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred financing costs",
        "label": "Deferred Costs",
        "totalLabel": "Deferred Costs, Total",
        "documentation": "The carrying amount of deferred costs."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DelayedOrContinuousOffering": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DelayedOrContinuousOffering",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Delayed or Continuous Offering"
       }
      }
     },
     "auth_ref": [
      "r769",
      "r770",
      "r849"
     ]
    },
    "us-gaap_DerivativeNumberOfInstrumentsHeld": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativeNumberOfInstrumentsHeld",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of derivative contracts held",
        "label": "Derivative, Number of Instruments Held",
        "totalLabel": "Derivative, Number of Instruments Held, Total",
        "documentation": "The number of derivative instruments of a particular group held by the entity."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r44",
      "r488",
      "r623",
      "r624",
      "r625",
      "r731"
     ]
    },
    "us-gaap_DerivativesOffsettingFairValueAmountsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativesOffsettingFairValueAmountsPolicy",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Offsetting Assets and Liabilities",
        "label": "Derivatives, Offsetting Fair Value Amounts, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for offsetting or not offsetting fair value amounts recognized for derivative instruments against such amounts recognized for the right to reclaim cash collateral (a receivable) or the obligation to return cash collateral (a payable) arising from derivative instruments recognized at fair value."
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DerivativesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Instruments",
        "label": "Derivatives, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r41",
      "r42",
      "r45",
      "r46",
      "r154",
      "r169"
     ]
    },
    "mfic_DiscountRateOfAverageNetAssetValuePerShare": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DiscountRateOfAverageNetAssetValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate of average net asset value per share",
        "label": "Discount Rate Of Average Net Asset Value Per Share",
        "documentation": "Discount rate of average net asset value per share."
       }
      }
     },
     "auth_ref": []
    },
    "cef_DistributionServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "DistributionServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution/Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_DistributionsMayReducePrincipalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "DistributionsMayReducePrincipalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distributions May Reduce Principal [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r779"
     ]
    },
    "mfic_DiversifiedInvestmentVehicleBankingFinanceAndRealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DiversifiedInvestmentVehicleBankingFinanceAndRealEstateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diversified Investment Vehicles, Banking, Finance, Real Estate",
        "label": "Diversified Investment Vehicle Banking Finance And Real Estate [Member]",
        "documentation": "Diversified investment vehicle, banking, finance and real estate."
       }
      }
     },
     "auth_ref": []
    },
    "cef_DividendAndInterestExpensesOnShortSalesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "DividendAndInterestExpensesOnShortSalesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend and Interest Expenses on Short Sales [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_DividendExpenseOnPreferredSharesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "DividendExpenseOnPreferredSharesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Expenses on Preferred Shares [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "us-gaap_DividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendIncomeOperating",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend income",
        "label": "Dividend Income, Operating",
        "totalLabel": "Dividend Income, Operating, Total",
        "documentation": "Amount of operating dividend income on securities."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r457",
      "r529",
      "r646",
      "r648",
      "r737",
      "r738",
      "r1059"
     ]
    },
    "dei_DividendOrInterestReinvestmentPlanOnly": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DividendOrInterestReinvestmentPlanOnly",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend or Interest Reinvestment Plan Only"
       }
      }
     },
     "auth_ref": [
      "r769",
      "r770",
      "r849"
     ]
    },
    "us-gaap_DividendPayableDateToBePaidDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendPayableDateToBePaidDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Payable, Date to be Paid",
        "terseLabel": "Dividend payable date",
        "documentation": "Date the declared dividend will be paid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "cef_DividendReinvestmentAndCashPurchaseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "DividendReinvestmentAndCashPurchaseFees",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Reinvestment and Cash Purchase Fees"
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "us-gaap_DividendsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends [Axis]",
        "documentation": "Information by distribution of earnings to shareholder. Includes, but is not limited to, distribution paid and declared."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends [Domain]",
        "documentation": "Distributions of earnings to shareholders including but not limited to cash, property or capital stock."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsPayableAmountPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPayableAmountPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Payable, Amount Per Share",
        "terseLabel": "Dividend declared per share",
        "documentation": "The per share amount of a dividend declared, but not paid, as of the financial reporting date."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_DividendsPayableDateDeclaredDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPayableDateDeclaredDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Payable, Date Declared",
        "terseLabel": "Dividend declared date",
        "documentation": "Date the dividend to be paid was declared, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "us-gaap_DividendsPayableDateOfRecordDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsPayableDateOfRecordDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Payable, Date of Record",
        "terseLabel": "Dividend record date",
        "documentation": "Date the holder must own the stock to be entitled to the dividend, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DividendsReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends receivable",
        "label": "Dividends Receivable",
        "documentation": "Carrying amount as of the balance sheet date of dividends declared but not received."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r1054"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3. 1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2024",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "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/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r745"
     ]
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r741"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r850"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "terseLabel": "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": []
    },
    "mfic_DrawnCommitments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DrawnCommitments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Drawn commitments.",
        "label": "Drawn Commitments",
        "terseLabel": "Drawn Commitment"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member]",
        "terseLabel": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year"
       }
      }
     },
     "auth_ref": [
      "r862"
     ]
    },
    "mfic_DynamicProductTankersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "DynamicProductTankersLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dynamic Product Tankers, LLC",
        "label": "Dynamic Product Tankers L L C [Member]",
        "documentation": "Dynamic Product Tankers, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "currency_EUR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2024",
     "localname": "EUR",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "European Euro",
        "label": "Euro Member Countries, Euro"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Earnings (Loss) Per Share - Basic",
        "terseLabel": "Basic earnings (loss) per share",
        "label": "Earnings Per Share, Basic",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r161",
      "r162",
      "r163",
      "r164",
      "r165",
      "r166",
      "r172",
      "r173",
      "r176",
      "r177",
      "r178",
      "r182",
      "r316",
      "r322",
      "r338",
      "r339",
      "r392",
      "r410",
      "r687"
     ]
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareBasicAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic Earnings Per Share",
        "label": "Earnings Per Share, Basic [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings Per Share",
        "label": "Earnings Per Share [Text Block]",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r171",
      "r179",
      "r180",
      "r181"
     ]
    },
    "mfic_EconomicInterestPercentageOfPreferredSharesOwned": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EconomicInterestPercentageOfPreferredSharesOwned",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Economic interest percentage of preferred shares owned.",
        "label": "Economic Interest Percentage of Preferred Shares Owned",
        "terseLabel": "Economic interest percentage of preferred shares owned"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EconomicOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EconomicOwnershipPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Economic ownership percentage.",
        "label": "Economic Ownership Percentage",
        "terseLabel": "Economic ownership percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Continuing Operations",
        "terseLabel": "Effect of foreign exchange rate changes on cash and cash equivalents",
        "documentation": "Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies. Excludes amounts for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r359"
     ]
    },
    "dei_EffectiveAfter60Days486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveAfter60Days486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective after 60 Days, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r909"
     ]
    },
    "dei_EffectiveOnDate486a": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveOnDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r909"
     ]
    },
    "dei_EffectiveOnDate486b": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveOnDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r910"
     ]
    },
    "dei_EffectiveOnSetDate486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveOnSetDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r909"
     ]
    },
    "dei_EffectiveOnSetDate486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveOnSetDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r910"
     ]
    },
    "dei_EffectiveUponFiling462e": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveUponFiling462e",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Upon Filing, 462(e)"
       }
      }
     },
     "auth_ref": [
      "r908"
     ]
    },
    "dei_EffectiveUponFiling486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveUponFiling486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective upon Filing, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r910"
     ]
    },
    "dei_EffectiveWhenDeclaredSection8c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EffectiveWhenDeclaredSection8c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective when Declared, Section 8(c)"
       }
      }
     },
     "auth_ref": [
      "r912"
     ]
    },
    "cef_EffectsOfLeveragePurposeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "EffectsOfLeveragePurposeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage, Purpose [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_EffectsOfLeverageTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "EffectsOfLeverageTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_EffectsOfLeverageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "EffectsOfLeverageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r824"
     ]
    },
    "mfic_EightPointZeroZeroPercentDueTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EightPointZeroZeroPercentDueTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "8.00% Notes Due 2028",
        "label": "Eight Point Zero Zero Percent Due Two Thousand Twenty Eight [Member]",
        "documentation": "Eight point zero zero percent due two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Employee Stock Option",
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EnergyElectricityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EnergyElectricityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Energy - Electricity",
        "label": "Energy Electricity [Member]",
        "documentation": "Energy \u2013 Electricity."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EnergyOilAndGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EnergyOilAndGasMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy Oil And Gas [Member]",
        "documentation": "Energy oil and gas.",
        "terseLabel": "Energy - Oil &amp; Gas"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine3": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Three",
        "documentation": "Address Line 3 such as an Office Park"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "verboseLabel": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityExTransitionPeriod",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Ex Transition Period",
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards."
       }
      }
     },
     "auth_ref": [
      "r911"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Act File Number",
        "terseLabel": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r902"
     ]
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Inv Company Type",
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product)."
       }
      }
     },
     "auth_ref": [
      "r901"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "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": [
      "r903"
     ]
    },
    "mfic_EnvironmentalIndustriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "EnvironmentalIndustriesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Environmental Industries.",
        "label": "Environmental Industries [Member]",
        "terseLabel": "Environmental Industries"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Footnote [Text Block]",
        "terseLabel": "Equity Awards Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r856"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member]",
        "terseLabel": "Equity Awards Adjustments, Excluding Value Reported in Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r897"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsAdjsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments [Member]",
        "terseLabel": "Equity Awards Adjustments"
       }
      }
     },
     "auth_ref": [
      "r897"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EqtyAwrdsInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r897"
     ]
    },
    "us-gaap_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityClassOfTreasuryStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityClassOfTreasuryStockLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Class Of Treasury Stock [Line Items]",
        "label": "Equity, Class of Treasury Stock [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Component",
        "label": "Equity Component [Domain]",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r127",
      "r139",
      "r140",
      "r141",
      "r156",
      "r157",
      "r158",
      "r160",
      "r165",
      "r167",
      "r169",
      "r184",
      "r198",
      "r199",
      "r205",
      "r263",
      "r310",
      "r311",
      "r313",
      "r314",
      "r315",
      "r317",
      "r321",
      "r322",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r337",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r370",
      "r371",
      "r372",
      "r406",
      "r425",
      "r426",
      "r427",
      "r460",
      "r560"
     ]
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Name",
        "label": "Investment, Name [Domain]",
        "documentation": "Name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r312",
      "r915",
      "r916",
      "r917",
      "r962",
      "r963",
      "r964",
      "r965"
     ]
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment owned, percent of fair value",
        "label": "Equity Method Investment, Ownership Percentage",
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r194"
     ]
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquityMethodInvestmentsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unaudited Summarized Financial Information For Merx",
        "label": "Equity Method Investments [Table Text Block]",
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information."
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "us-gaap_EquitySecuritiesByIndustryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquitySecuritiesByIndustryAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Sector",
        "label": "Industry Sector [Axis]",
        "documentation": "Information by industry sector, examples include but are not limited to, commercial, industrial, agricultural, financial services, technology, healthcare and real estate."
       }
      }
     },
     "auth_ref": [
      "r479",
      "r483",
      "r486",
      "r580",
      "r597",
      "r619",
      "r655",
      "r692",
      "r711",
      "r712",
      "r714",
      "r731"
     ]
    },
    "us-gaap_EquitySecuritiesFvNiMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquitySecuritiesFvNiMeasurementInput",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Quantitative Information on Unobservable input",
        "label": "Equity Securities, FV-NI, Measurement Input",
        "documentation": "Value of input used to measure investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI)."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r344",
      "r345"
     ]
    },
    "us-gaap_EquitySecuritiesIndustryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EquitySecuritiesIndustryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Sector",
        "label": "Industry Sector [Domain]",
        "documentation": "Industry sector consisting of government, private and corporate entities engaged in business activities, including but not limited to, commercial, industrial, agricultural, financial services, technology, healthcare and real estate."
       }
      }
     },
     "auth_ref": [
      "r479",
      "r483",
      "r486",
      "r580",
      "r597",
      "r619",
      "r655",
      "r711",
      "r712",
      "r714",
      "r731"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]",
        "terseLabel": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r866"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis [Text Block]",
        "terseLabel": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r751",
      "r762",
      "r842",
      "r876"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]",
        "terseLabel": "Erroneously Awarded Compensation Recovery"
       }
      }
     },
     "auth_ref": [
      "r748",
      "r759",
      "r839",
      "r873"
     ]
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r872"
     ]
    },
    "dei_ExhibitsOnly462d": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ExhibitsOnly462d",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d)"
       }
      }
     },
     "auth_ref": [
      "r907"
     ]
    },
    "dei_ExhibitsOnly462dFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ExhibitsOnly462dFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d), File Number"
       }
      }
     },
     "auth_ref": [
      "r907"
     ]
    },
    "cef_ExpenseExampleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ExpenseExampleTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "cef_ExpenseExampleYear01": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ExpenseExampleYear01",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Year 01"
       }
      }
     },
     "auth_ref": [
      "r802"
     ]
    },
    "cef_ExpenseExampleYears1to10": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ExpenseExampleYears1to10",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 10"
       }
      }
     },
     "auth_ref": [
      "r802"
     ]
    },
    "cef_ExpenseExampleYears1to3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ExpenseExampleYears1to3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 3"
       }
      }
     },
     "auth_ref": [
      "r802"
     ]
    },
    "cef_ExpenseExampleYears1to5": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ExpenseExampleYears1to5",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 5"
       }
      }
     },
     "auth_ref": [
      "r802"
     ]
    },
    "mfic_ExpensesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ExpensesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses",
        "label": "Expenses Policy [Policy Text Block]",
        "documentation": "Expenses, policy."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes unrealized gain (loss) from asset measured at fair value using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r350",
      "r353",
      "r713"
     ]
    },
    "mfic_FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value assets liabilities transfer between levels 1 to level 2.",
        "label": "Fair Value Assets Liabilities Transfer Between Levels 1 to Level 2",
        "terseLabel": "Fair value assets liabilities transfer between levels 1 to level 2"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Net change in unrealized gains (losses) on Level 3 investments still held",
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held."
       }
      }
     },
     "auth_ref": [
      "r350",
      "r353",
      "r712",
      "r713"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Unobservable Inputs Used in Fair Value Measurements of Level 3 Investments",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset."
       }
      }
     },
     "auth_ref": [
      "r346",
      "r350",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r340",
      "r342",
      "r343",
      "r344",
      "r345",
      "r351",
      "r352",
      "r354",
      "r383",
      "r384",
      "r385",
      "r695",
      "r696",
      "r701",
      "r702",
      "r703",
      "r711",
      "r714"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 1",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r265",
      "r270",
      "r342",
      "r352",
      "r383",
      "r701",
      "r702",
      "r703",
      "r711"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 2",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r265",
      "r270",
      "r342",
      "r343",
      "r352",
      "r384",
      "r695",
      "r696",
      "r701",
      "r702",
      "r703",
      "r711"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 3",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r342",
      "r343",
      "r344",
      "r345",
      "r352",
      "r385",
      "r695",
      "r696",
      "r701",
      "r702",
      "r703",
      "r711",
      "r714"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Investments Entities That Calculate Net Asset Value Per Share [Line Items]",
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share [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": [
      "r340",
      "r354",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerSharePercentEquitySecurities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerSharePercentEquitySecurities",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of Total Investments (at Fair Value)",
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share, Percent Equity Securities",
        "documentation": "The percentage of the total value of investments that are equity securities for a given category of investments for which net asset value per share is calculated."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Investments Entities That Calculate Net Asset Value Per Share [Table]",
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share [Table]",
        "documentation": "Disclosure of information about investments in certain entities that calculate net asset value per share or equivalent measured at fair value on a recurring or nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r340",
      "r354",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Unfunded commitments measured at fair value",
        "terseLabel": "Unfunded commitments measured at fair value",
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share, Unfunded Commitments",
        "documentation": "The amount of unfunded commitments for which the entity is obligated, to those certain investments for which net asset value per share is calculated (including by unit, membership interest, or other equity (ownership interest) unit measure) (alternative investments)."
       }
      }
     },
     "auth_ref": [
      "r355",
      "r715"
     ]
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Measurements",
        "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_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "terseLabel": "Net realized gains (losses)",
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r347",
      "r353",
      "r712",
      "r713"
     ]
    },
    "mfic_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetAmortizationOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetAmortizationOnInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Amortization on Investments",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Amortization on Investments",
        "terseLabel": "Net amortization on investments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetChangeInUnrealizedGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetChangeInUnrealizedGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis asset net change in unrealized gains (losses).",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Change In Unrealized Gains (Losses)",
        "terseLabel": "Net change in unrealized gains (losses)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "terseLabel": "Purchases, including capitalized PIK",
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r348",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "negatedLabel": "Sales",
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r348",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "terseLabel": "Transfers into Level 3",
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r349",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "negatedLabel": "Transfers out of Level 3",
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r349",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodStartLabel": "Fair value, Beginning balance",
        "periodEndLabel": "Fair value, Ending balance",
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r346",
      "r353",
      "r712"
     ]
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value Hierarchy and NAV",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r340",
      "r342",
      "r343",
      "r344",
      "r345",
      "r351",
      "r352",
      "r354",
      "r383",
      "r384",
      "r385",
      "r695",
      "r696",
      "r701",
      "r702",
      "r703",
      "r711",
      "r714"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Changes in Fair Value of Investments",
        "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": [
      "r346",
      "r350",
      "r353"
     ]
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Asset, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from asset measured at fair value using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r347",
      "r353"
     ]
    },
    "mfic_FeeOffsetAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FeeOffsetAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee Offset Agreement",
        "label": "Fee Offset Agreement [Member]",
        "documentation": "Fee offset agreement."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FeeOffsetPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee offset period",
        "label": "Fee Offset Period",
        "documentation": "Fee offset period."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetPeriodDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FeeOffsetPeriodDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee Offset Period Description",
        "documentation": "Fee offset period description.",
        "terseLabel": "Fee offset period description"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetStepDownPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FeeOffsetStepDownPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee offset step down percentage",
        "label": "Fee Offset Step Down Percentage",
        "documentation": "Fee offset step down percentage."
       }
      }
     },
     "auth_ref": []
    },
    "cef_FeeTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "FeeTableAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "cef_FinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "FinancialHighlightsAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Highlights [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r810"
     ]
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialSupportToNonconsolidatedLegalEntityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Support to Nonconsolidated Legal Entity [Axis]",
        "documentation": "Information by financial support arrangement provided to a nonconsolidated legal entity that is required to comply with or operate in accordance with requirements that are similar to those included in Rule 2a-7 of the Investment Company Act of 1940 for registered money market funds."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r450",
      "r451"
     ]
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "FinancialSupportToNonconsolidatedLegalEntityDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Support to Nonconsolidated Legal Entity [Domain]",
        "documentation": "Financial support arrangement provided to a nonconsolidated legal entity that is required to comply with or operate in accordance with requirements that are similar to those included in Rule 2a-7 of the Investment Company Act of 1940 for registered money market funds."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r450",
      "r451"
     ]
    },
    "mfic_FirstLienSecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FirstLienSecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "First Lien Secured Debt",
        "label": "First Lien Secured Debt [Member]",
        "documentation": "First lien secured debt."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FirstLienSecuredDebtOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FirstLienSecuredDebtOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "First Lien Secured Debt One [Member]",
        "documentation": "First lien secured debt one.",
        "terseLabel": "First Lien Secured Debt"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FirstLienSecuredRevolverMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FirstLienSecuredRevolverMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "First Lien Secured Revolver",
        "label": "First Lien Secured Revolver [Member]",
        "documentation": "First lien secured revolver."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignCurrencyTransactionGainLossRealized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ForeignCurrencyTransactionGainLossRealized",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currency transactions",
        "label": "Realized Gain (Loss), Foreign Currency Transaction, before Tax",
        "documentation": "Amount, before tax, of realized gain (loss) from foreign currency transaction."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r738",
      "r974",
      "r975",
      "r1048"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionGainLossUnrealized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ForeignCurrencyTransactionGainLossUnrealized",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currency translations",
        "label": "Unrealized Gain (Loss), Foreign Currency Transaction, before Tax",
        "verboseLabel": "Unrealized Gain/(Loss)",
        "documentation": "Amount, before tax, of unrealized gain (loss) from foreign currency transaction."
       }
      }
     },
     "auth_ref": [
      "r77",
      "r525",
      "r738",
      "r974",
      "r975",
      "r1049"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Currency Translations",
        "label": "Foreign Currency Transactions and Translations Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for (1) transactions denominated in a currency other than the reporting enterprise's functional currency, (2) translating foreign currency financial statements that are incorporated into the financial statements of the reporting enterprise by consolidation, combination, or the equity method of accounting, and (3) remeasurement of the financial statements of a foreign reporting enterprise in a hyperinflationary economy."
       }
      }
     },
     "auth_ref": [
      "r358"
     ]
    },
    "mfic_ForeignDenominatedDebtsResetDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ForeignDenominatedDebtsResetDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reset Date",
        "label": "Foreign Denominated Debts Reset Date",
        "documentation": "Foreign Denominated Debts Reset Date"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ForeignDenominatedOriginalPrincipalAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ForeignDenominatedOriginalPrincipalAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign denominated original principal amount outstanding.",
        "label": "Foreign Denominated Original Principal Amount Outstanding",
        "terseLabel": "Original Principal Amount"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ForeignDenominatedPrincipalAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ForeignDenominatedPrincipalAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign denominated principal amount outstanding.",
        "label": "Foreign Denominated Principal Amount Outstanding",
        "terseLabel": "Principal Amount Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r880"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount",
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r880"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r880"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]",
        "terseLabel": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r880"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r880"
     ]
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member]",
        "terseLabel": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year"
       }
      }
     },
     "auth_ref": [
      "r861"
     ]
    },
    "mfic_FractionalSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "FractionalSharesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fractional Shares",
        "label": "Fractional Shares [Member]",
        "documentation": "Fractional shares."
       }
      }
     },
     "auth_ref": []
    },
    "currency_GBP": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2024",
     "localname": "GBP",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "United Kingdom, Pounds",
        "terseLabel": "British Pound"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GeneralAndAdministrativeExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GeneralAndAdministrativeExpenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative Service Expense",
        "label": "General and Administrative Expense [Member]",
        "documentation": "Primary financial statement caption encompassing general and administrative expense."
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "cef_GeneralDescriptionOfRegistrantAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "GeneralDescriptionOfRegistrantAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General Description of Registrant [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r821"
     ]
    },
    "mfic_GlacierOilAndGasCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "GlacierOilAndGasCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Glacier Oil And Gas Corp [Member]",
        "documentation": "Glacier Oil And Gas Corp.",
        "terseLabel": "Glacier Oil &amp; Gas Corp. (f/k/a Miller Energy Resources, Inc.)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoldenBear2016RLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "GoldenBear2016RLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Golden Bear 2016-R, LLC",
        "label": "Golden Bear2016 R L L C [Member]",
        "documentation": "Golden bear 2016-R, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GrossInvestmentIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "GrossInvestmentIncomeOperating",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interest/ Dividend/ Other Income",
        "label": "Gross Investment Income, Operating",
        "terseLabel": "Total Investment Income",
        "totalLabel": "Total Investment Income",
        "documentation": "Amount, before investment expense, of income earned from investments in securities and real estate. Includes, but is not limited to, real estate investment, policy loans, dividends, and interest. Excludes realized gain (loss) on investments."
       }
      }
     },
     "auth_ref": [
      "r407",
      "r738",
      "r1044"
     ]
    },
    "mfic_HealthcareAndPharmaceuticalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "HealthcareAndPharmaceuticalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Healthcare And Pharmaceuticals [Member]",
        "documentation": "Healthcare and Pharmaceuticals.",
        "terseLabel": "Healthcare &amp; Pharmaceuticals"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HighTechIndustriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "HighTechIndustriesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "High Tech Industries",
        "label": "High Tech Industries [Member]",
        "documentation": "High Tech Industries."
       }
      }
     },
     "auth_ref": []
    },
    "cef_HighestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "HighestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r828"
     ]
    },
    "cef_HighestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "HighestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r832"
     ]
    },
    "cef_HighestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "HighestPriceOrBidPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r833"
     ]
    },
    "mfic_HotelGamingLeisureRestaurantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "HotelGamingLeisureRestaurantsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hotel Gaming Leisure Restaurants [Member]",
        "documentation": "Hotel, Gaming, Leisure, Restaurants.",
        "terseLabel": "Hotel, Gaming, Leisure, Restaurants"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "IncentiveAllocationMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "cef_IncentiveAllocationMinimumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "IncentiveAllocationMinimumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Minimum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "cef_IncentiveAllocationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "IncentiveAllocationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r800"
     ]
    },
    "mfic_IncentiveFeeBasedOnCumulativeNetRealizedGainsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncentiveFeeBasedOnCumulativeNetRealizedGainsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fee Based On Cumulative Net Realized Gains [Member]",
        "documentation": "Incentive Fee Based on Cumulative Net Realized Gains.",
        "terseLabel": "Incentive Fee based on Cumulative Net Realized Gains"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IncentiveFeeBasedOnIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncentiveFeeBasedOnIncomeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fee Based On Income [Member]",
        "documentation": "Incentive fee based on income.",
        "terseLabel": "Incentive Fee based on Income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncentiveFeeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncentiveFeeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance-based incentive fees",
        "label": "Incentive Fee Expense",
        "documentation": "Amount of expense for incentive fee based on performance under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r1046"
     ]
    },
    "us-gaap_IncentiveFeePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncentiveFeePayable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance-based incentive fees payable",
        "label": "Incentive Fee Payable",
        "documentation": "Amount of fee payable for management of operations based on performance under arrangement, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_IncentiveFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "IncentiveFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "mfic_IncentiveFeesWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncentiveFeesWaived",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive fees waived",
        "label": "Incentive Fees Waived",
        "documentation": "Incentive fees waived."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementLocationAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement Location",
        "label": "Statement of Income Location, Balance [Axis]",
        "documentation": "Information by location in statement of income where disaggregated amount has been reported."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r207",
      "r208",
      "r347",
      "r350",
      "r353",
      "r422",
      "r424",
      "r538",
      "r680",
      "r713",
      "r994"
     ]
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeStatementLocationDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Statement Location",
        "label": "Statement of Income Location, Balance [Domain]",
        "documentation": "Location in statement of income where disaggregated amount has been reported."
       }
      }
     },
     "auth_ref": [
      "r207",
      "r208",
      "r347",
      "r350",
      "r353",
      "r422",
      "r424",
      "r538",
      "r680",
      "r713",
      "r994"
     ]
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal and State Income Taxes",
        "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": [
      "r138",
      "r302",
      "r303",
      "r306",
      "r307",
      "r308",
      "r309",
      "r437"
     ]
    },
    "mfic_IncreaseDecreaseInAccruedAdministrativeServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncreaseDecreaseInAccruedAdministrativeServicesExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in accrued administrative services expense",
        "label": "Increase Decrease In Accrued Administrative Services Expense",
        "documentation": "Increase (decrease) in accrued administrative services expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Accrued Interest Receivable, Net",
        "negatedLabel": "Decrease (increase) in interest receivable",
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInDividendsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInDividendsReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Decrease (increase) in dividends receivable",
        "label": "Increase (Decrease) in Dividends Receivable",
        "terseLabel": "Decrease (increase) in dividends receivable",
        "documentation": "The increase (decrease) during the reporting period in cash disbursements due from investments, representing the shareholders' portion of profits."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in interest payable",
        "label": "Increase (Decrease) in Interest Payable, Net",
        "documentation": "The increase (decrease) during the reporting period in interest payable, which represents the amount owed to note holders, bond holders, and other parties for interest earned on loans or credit extended to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInManagementAndIncentiveFeesPayable",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Management and Incentive Fees Payable",
        "terseLabel": "Increase (decrease) in management and performance-based incentive fees payable",
        "documentation": "Amount of increase (decrease) in fees payable for management of fund or trust and management of operations based on performance under arrangement, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in operating assets and liabilities:",
        "label": "Increase (Decrease) in Operating Capital [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IncreaseDecreaseInOtherLiabilitiesAndAccruedExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncreaseDecreaseInOtherLiabilitiesAndAccruedExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in other liabilities and accrued expenses",
        "label": "Increase Decrease In Other Liabilities And Accrued Expenses",
        "documentation": "Increase (decrease) in other liabilities and accrued expenses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Decrease (increase) in prepaid expenses and other assets",
        "label": "Increase (Decrease) in Prepaid Expense and Other Assets",
        "terseLabel": "Decrease (increase) in prepaid expenses and other assets",
        "documentation": "Amount of increase (decrease) in prepaid expenses, and assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "mfic_IncreaseInGainsLossesFromForeignCurrencyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "IncreaseInGainsLossesFromForeignCurrencyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in gains/(losses) from foreign currency transactions",
        "label": "Increase In Gains Losses From Foreign Currency Transactions",
        "documentation": "Increase in gains/(losses) from foreign currency transactions."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]",
        "terseLabel": "Individual:"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r872",
      "r880",
      "r884",
      "r892"
     ]
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r890"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r747",
      "r896"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted [Flag]",
        "terseLabel": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r747",
      "r896"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]",
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r747",
      "r896"
     ]
    },
    "mfic_InsuranceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InsuranceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance",
        "label": "Insurance [Member]",
        "documentation": "Insurance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeOperatingPaidInKind": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestAndDividendIncomeOperatingPaidInKind",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "PIK interest and dividends capitalized",
        "terseLabel": "PIK interest and dividends capitalized",
        "label": "Interest and Dividend Income, Operating, Paid in Kind",
        "documentation": "Amount of interest and dividend income from investment paid in kind, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r1044"
     ]
    },
    "us-gaap_InterestExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense [Member]",
        "terseLabel": "Interest Expense",
        "documentation": "Primary financial statement caption encompassing interest expense."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_InterestExpenseOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestExpenseOperating",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest and other debt expenses",
        "label": "Interest Expense, Operating",
        "totalLabel": "Interest Expense, Operating, Total",
        "documentation": "Amount of interest expense classified as operating."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r393",
      "r926"
     ]
    },
    "cef_InterestExpensesOnBorrowingsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "InterestExpensesOnBorrowingsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expenses on Borrowings [Percent]"
       }
      }
     },
     "auth_ref": [
      "r808"
     ]
    },
    "us-gaap_InterestIncomeOperatingPaidInCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeOperatingPaidInCash",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income, Operating, Paid in Cash",
        "terseLabel": "Interest income (excluding Payment-in-kind (\"PIK\") interest income)",
        "documentation": "Amount of interest income from investment paid in cash, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r531",
      "r646",
      "r649"
     ]
    },
    "us-gaap_InterestIncomeOperatingPaidInKind": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestIncomeOperatingPaidInKind",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Paid in kind income earned",
        "label": "Interest Income, Operating, Paid in Kind",
        "terseLabel": "PIK interest income",
        "negatedLabel": "PIK interest and dividends capitalized",
        "documentation": "Amount of interest income from investment paid in kind, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r531",
      "r646",
      "r649",
      "r651"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash interest paid",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount."
       }
      }
     },
     "auth_ref": [
      "r143",
      "r146",
      "r147"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable",
        "label": "Interest Payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r989"
     ]
    },
    "us-gaap_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Risk [Member]",
        "documentation": "The risk associated with changes in interest rates that effect the value of an interest-bearing asset or liability, and a servicing asset or liability."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest receivable",
        "label": "Interest Receivable",
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r1054"
     ]
    },
    "cef_IntervalFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "IntervalFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interval Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "us-gaap_InvestmentAcquisitionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentAcquisitionDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisition Date",
        "label": "Investment, Acquisition Date",
        "documentation": "Date when investment is acquired, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r582",
      "r592",
      "r610",
      "r654"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerControlledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentAffiliatedIssuerControlledMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Affiliated Issuer, Controlled [Member]",
        "terseLabel": "Controlled Investments",
        "documentation": "Controlled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r457",
      "r497",
      "r499",
      "r506",
      "r521",
      "r531",
      "r532",
      "r649"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentAffiliatedIssuerNoncontrolledMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Affiliated Issuer, Noncontrolled [Member]",
        "terseLabel": "Non-controlled/Affiliated Investments",
        "documentation": "Noncontrolled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r457",
      "r498",
      "r500",
      "r507",
      "r521",
      "r531",
      "r532",
      "r629",
      "r640",
      "r641",
      "r643",
      "r644",
      "r648",
      "r649",
      "r653",
      "r654",
      "r655"
     ]
    },
    "us-gaap_InvestmentBasisSpreadVariableRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentBasisSpreadVariableRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Basis Spread, Variable Rate",
        "terseLabel": "Spread",
        "documentation": "Percentage added to reference rate used to compute variable rate on investment."
       }
      }
     },
     "auth_ref": [
      "r575",
      "r596",
      "r600",
      "r637"
     ]
    },
    "dei_InvestmentCompanyActFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "InvestmentCompanyActFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act File Number"
       }
      }
     },
     "auth_ref": [
      "r770",
      "r836",
      "r837",
      "r838"
     ]
    },
    "dei_InvestmentCompanyActRegistration": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "InvestmentCompanyActRegistration",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act Registration"
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfInterestAndOtherDebtExpensesToAverageNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAnnualizedRatioOfInterestAndOtherDebtExpensesToAverageNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company annualized ratio of interest and other debt expenses to average net assets.",
        "label": "Investment Company Annualized Ratio Of Interest And Other Debt Expenses To Average Net Assets",
        "terseLabel": "Annualized ratio of interest and other debt expenses to average net assets"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company annualized ratio of operating expenses to average net assets.",
        "label": "Investment Company Annualized Ratio Of Operating Expenses To Average Net Assets",
        "terseLabel": "Annualized ratio of operating expenses to average net assets"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company annualized ratio of operating expenses to average net assets excluding voluntary fee waivers.",
        "label": "Investment Company Annualized Ratio Of Operating Expenses To Average Net Assets Excluding Voluntary Fee Waivers",
        "terseLabel": "Annualized ratio of operating expenses to average net assets without voluntary fee waivers"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfTotalExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAnnualizedRatioOfTotalExpensesToAverageNetAssetsExcludingVoluntaryFeeWaivers",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company annualized ratio of total expenses to average net assets excluding voluntary fee waivers.",
        "label": "Investment Company Annualized Ratio Of Total Expenses To Average Net Assets Excluding Voluntary Fee Waivers",
        "terseLabel": "Annualized ratio of total expenses to average net assets without voluntary fee waivers"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAssetCoveragePerUnit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAssetCoveragePerUnit",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company asset coverage per unit.",
        "label": "Investment Company Asset Coverage Per Unit",
        "terseLabel": "Asset coverage per unit"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAverageDebtPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyAverageDebtPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company average debt per share.",
        "label": "Investment Company Average Debt Per Share",
        "terseLabel": "Average debt per share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyCapitalShareTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyCapitalShareTransactionsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital Share Transactions",
        "label": "Investment Company, Capital Share Transaction, Increase (Decrease) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyCapitalShareTransactionsStockIssuedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyCapitalShareTransactionsStockIssuedAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Capital Share Transactions, Stock Issued [Abstract]",
        "terseLabel": "Capital Share Activity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyDistributionOrdinaryIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDistributionOrdinaryIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Distribution of net investment income",
        "label": "Investment Company, Distribution, Ordinary Income",
        "terseLabel": "Distribution of net investment income",
        "documentation": "Amount of dividend distribution by investment company from ordinary income."
       }
      }
     },
     "auth_ref": [
      "r456",
      "r669"
     ]
    },
    "us-gaap_InvestmentCompanyDistributionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDistributionPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends and Distributions",
        "label": "Investment Company, Distribution [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for distribution to ownership interest holder. Includes, but is not limited to, dividend distribution and tax return of capital."
       }
      }
     },
     "auth_ref": [
      "r447"
     ]
    },
    "us-gaap_InvestmentCompanyDistributionToShareholdersAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDistributionToShareholdersAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distributions to Stockholders",
        "label": "Investment Company, Distribution to Shareholders [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyDistributionToShareholdersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDistributionToShareholdersPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Distribution to Shareholders, Per Share",
        "terseLabel": "Distribution of net investment income",
        "negatedLabel": "Distribution of net investment income",
        "documentation": "Per share or unit amount of distribution to shareholders. Includes, but is not limited to, dividend and capital gain. Excludes distribution for tax return of capital."
       }
      }
     },
     "auth_ref": [
      "r456",
      "r470"
     ]
    },
    "us-gaap_InvestmentCompanyDividendDistribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyDividendDistribution",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Net Decrease in Net Assets Resulting from Distributions to Stockholders",
        "negatedTerseLabel": "Net Decrease in Net Assets Resulting from Distributions to Shareholders",
        "label": "Investment Company, Dividend Distribution",
        "terseLabel": "Distribution of net investment income",
        "negatedLabel": "Distribution of net investment income",
        "totalLabel": "Net Decrease in Net Assets Resulting from Distributions to Shareholders",
        "documentation": "Amount of dividend distribution from ordinary income and capital gain. Excludes distribution for tax return of capital."
       }
      }
     },
     "auth_ref": [
      "r456",
      "r459",
      "r460",
      "r558"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Expense, after Reduction of Fee Waiver and Reimbursement",
        "totalLabel": "Net Expenses",
        "documentation": "Amount, after reimbursement and fee waiver, of expense for generation of investment income classified as operating."
       }
      }
     },
     "auth_ref": [
      "r1045"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseOffsetArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyExpenseOffsetArrangement",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Performance-based incentive fee offset",
        "label": "Investment Company, Expense Offset Arrangement",
        "terseLabel": "Performance-based incentive fee offset",
        "documentation": "Amount of expense reduction under arrangement in which third party explicitly reduces its fee by specified amount for service provided in exchange for use of investment company's assets."
       }
      }
     },
     "auth_ref": [
      "r446",
      "r532",
      "r533",
      "r534",
      "r535",
      "r538"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseRatioIncludingIncentiveFee": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyExpenseRatioIncludingIncentiveFee",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized ratio of total expenses to average net assets",
        "label": "Investment Company, Expense Ratio, after Fee Waiver and Incentive Fee Deduction",
        "totalLabel": "Annualized ratio of total expenses to average net assets",
        "documentation": "Percentage, after deduction of fee waiver and incentive fee, of expense to average net assets."
       }
      }
     },
     "auth_ref": [
      "r1029"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Support to Investee Contractually Required, Not Provided, Amount",
        "verboseLabel": "Unfunded commitments",
        "terseLabel": "Letter of Credit / Undrawn Commitment",
        "documentation": "Amount of financial support committed by investment company to investee that is contractually required but not provided."
       }
      }
     },
     "auth_ref": [
      "r451"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialHighlightsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Highlights [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialHighlightsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Financial Highlights",
        "label": "Investment Company, Financial Highlights [Table Text Block]",
        "documentation": "Tabular disclosure of financial highlights. Includes, but is not limited to, per share information, income and expense ratios, total return, capital commitment and fee waiver."
       }
      }
     },
     "auth_ref": [
      "r461"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialHighlightsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlights"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Highlights",
        "label": "Investment Company, Financial Highlights [Text Block]",
        "documentation": "The entire disclosure of financial highlights reported by investment company."
       }
      }
     },
     "auth_ref": [
      "r455",
      "r461",
      "r464",
      "r468"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Support to Investee Contractually Required, Amount",
        "terseLabel": "Total Commitment",
        "documentation": "Amount of financial support committed by investment company to investee that is contractually required."
       }
      }
     },
     "auth_ref": [
      "r449",
      "r450"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialSupportToInvesteeDiscretionaryAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyFinancialSupportToInvesteeDiscretionaryAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Support to Investee, Discretionary, Amount",
        "terseLabel": "Unfunded commitments",
        "documentation": "Amount of financial support committed by investment company to investee that is discretionary."
       }
      }
     },
     "auth_ref": [
      "r450",
      "r1023"
     ]
    },
    "us-gaap_InvestmentCompanyGainLossOnInvestmentPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyGainLossOnInvestmentPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net realized and change in unrealized gains (losses)",
        "label": "Investment Company, Gain (Loss) on Investment, Per Share",
        "documentation": "Per share or unit amount of realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r468"
     ]
    },
    "us-gaap_InvestmentCompanyIncreaseDecreaseFromShareTransaction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyIncreaseDecreaseFromShareTransaction",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Increase (Decrease) in Net Assets Resulting from Capital Share Transactions",
        "label": "Investment Company, Capital Share Transaction, Increase (Decrease)",
        "totalLabel": "Net Increase (Decrease) in Net Assets Resulting from Capital Share Transactions",
        "documentation": "Amount of increase (decrease) in equity from change in number of shares or units by investment company."
       }
      }
     },
     "auth_ref": [
      "r559",
      "r739"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Investment Income (Loss) from Operations, Per Share",
        "totalLabel": "Net increase in net assets resulting from operations",
        "documentation": "Per share or unit amount of investment income (loss) and realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r469"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyInvestmentIncomeLossPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net investment income",
        "label": "Investment Company, Investment Income (Loss), Per Share",
        "documentation": "Per share or unit amount, after investment expense, of dividend and interest investment income (loss)."
       }
      }
     },
     "auth_ref": [
      "r467"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyInvestmentIncomeLossRatio",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Investment Income (Loss) Ratio",
        "terseLabel": "Annualized ratio of net investment income to average net assets",
        "documentation": "Percentage of investment income (loss) to average net assets."
       }
      }
     },
     "auth_ref": [
      "r1028"
     ]
    },
    "mfic_InvestmentCompanyManagementFeeOffset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentCompanyManagementFeeOffset",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment company, management fee offset.",
        "label": "Investment Company, Management Fee Offset",
        "terseLabel": "Management fee offset"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyMarketValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyMarketValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Market Value, Per Share",
        "terseLabel": "Per share market value at end of period",
        "documentation": "Market value per share of investment portfolio by investment company. Includes, but is not limited to, per unit, membership interest, or other ownership interest."
       }
      }
     },
     "auth_ref": [
      "r1031"
     ]
    },
    "us-gaap_InvestmentCompanyNetAssetsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyNetAssetsRollForward",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Net Assets [Roll Forward]",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyPortfolioTurnover": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyPortfolioTurnover",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Portfolio Turnover",
        "terseLabel": "Annualized portfolio turnover rate",
        "documentation": "Percentage of lesser of purchase or sale of portfolio securities to average value of portfolio securities owned."
       }
      }
     },
     "auth_ref": [
      "r1030"
     ]
    },
    "us-gaap_InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss), Investment and Derivative, Operating, and Foreign Currency Transaction, before Tax",
        "totalLabel": "Net Realized and Change in Unrealized Gains (Losses)",
        "documentation": "Amount, before tax, of realized and unrealized gain (loss) on investment and derivative, classified as operating, and foreign currency transaction. Investment includes, but is not limited to, debt and equity securities, security sold short, real estate, and commodity."
       }
      }
     },
     "auth_ref": [
      "r526",
      "r672",
      "r738",
      "r1050"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "InvestmentCompanyRegistrationAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment"
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "InvestmentCompanyRegistrationAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment Number"
       }
      }
     },
     "auth_ref": [
      "r851"
     ]
    },
    "us-gaap_InvestmentCompanyRepurchaseOfSharesPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyRepurchaseOfSharesPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Share Repurchase, Per Share",
        "terseLabel": "Accretion due to share repurchases",
        "documentation": "Per share amount of share repurchase by investment company. Includes, but is not limited to, per unit, membership interest, or other ownership interest."
       }
      }
     },
     "auth_ref": [
      "r1032"
     ]
    },
    "us-gaap_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset coverage",
        "label": "Investment Company, Senior Security, Indebtedness, Asset Coverage Ratio",
        "documentation": "Percentage of total assets less all liabilities and indebtedness not represented by senior security, to senior security representing indebtedness."
       }
      }
     },
     "auth_ref": [
      "r920"
     ]
    },
    "us-gaap_InvestmentCompanyTaxReturnOfCapitalDistribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyTaxReturnOfCapitalDistribution",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distribution of return of capital",
        "label": "Investment Company, Tax Return of Capital Distribution",
        "documentation": "Amount of distribution in excess of tax-basis earnings and profit of investment company."
       }
      }
     },
     "auth_ref": [
      "r456",
      "r459",
      "r557",
      "r670"
     ]
    },
    "us-gaap_InvestmentCompanyTaxReturnOfCapitalDistributionPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyTaxReturnOfCapitalDistributionPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distribution of return of capital",
        "label": "Investment Company, Tax Return of Capital Distribution, Per Share",
        "documentation": "Per share or unit amount of capital distribution in excess of tax basis earnings."
       }
      }
     },
     "auth_ref": [
      "r456",
      "r470"
     ]
    },
    "us-gaap_InvestmentCompanyTotalReturn": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyTotalReturn",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total return",
        "label": "Investment Company, Total Return",
        "documentation": "Percentage increase (decrease) in fund net asset value, assuming reinvestment of dividends and capital gain distributions."
       }
      }
     },
     "auth_ref": [
      "r452",
      "r462",
      "r465"
     ]
    },
    "us-gaap_InvestmentHoldingsScheduleOfInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Composition of Investment Portfolio",
        "label": "Investment Holdings, Schedule of Investments [Table Text Block]",
        "documentation": "Tabular disclosure of data and information required in the supplementary schedule applicable to management investment companies listing holdings of unaffiliated investments."
       }
      }
     },
     "auth_ref": [
      "r1033",
      "r1034",
      "r1035",
      "r1036",
      "r1037",
      "r1038"
     ]
    },
    "us-gaap_InvestmentHoldingsScheduleOfInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentHoldingsScheduleOfInvestmentsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Schedule of Investments [Text Block]",
        "documentation": "The entire disclosure for investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r476",
      "r569",
      "r570",
      "r571",
      "r588",
      "r606",
      "r616",
      "r654"
     ]
    },
    "us-gaap_InvestmentIdentifierAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentIdentifierAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Identifier [Axis]",
        "documentation": "Identification of investment in security, including, but not limited to, name, title, and other identifying information."
       }
      }
     },
     "auth_ref": [
      "r477",
      "r478",
      "r479",
      "r484",
      "r485",
      "r486",
      "r490",
      "r491",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r588",
      "r589",
      "r590",
      "r592",
      "r594",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r616",
      "r617",
      "r618",
      "r621",
      "r622",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r647",
      "r649",
      "r650",
      "r651",
      "r652",
      "r654",
      "r656",
      "r657",
      "r658",
      "r731",
      "r1024",
      "r1025"
     ]
    },
    "us-gaap_InvestmentIncomeNonoperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentIncomeNonoperatingAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Income, Nonoperating [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentInterestDividendAndOtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentInterestDividendAndOtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment interest dividend and other income.",
        "label": "Investment Interest Dividend And Other Income",
        "terseLabel": "Interest/ Dividend/ Other Income"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentInterestRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate",
        "label": "Investment Interest Rate",
        "documentation": "Rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r574",
      "r575",
      "r595",
      "r596",
      "r600",
      "r601",
      "r636",
      "r637",
      "r731",
      "r937",
      "r939"
     ]
    },
    "us-gaap_InvestmentInterestRateFloor": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentInterestRateFloor",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Floor",
        "terseLabel": "Interest Rate",
        "label": "Investment, Interest Rate, Floor",
        "documentation": "Minimum rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r1055",
      "r1056",
      "r1057",
      "r1058"
     ]
    },
    "us-gaap_InvestmentInterestRatePaidInCash": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentInterestRatePaidInCash",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate, Cash",
        "label": "Investment, Interest Rate, Paid in Cash",
        "documentation": "Rate of interest paid in cash on investment."
       }
      }
     },
     "auth_ref": [
      "r1055",
      "r1056",
      "r1057",
      "r1058"
     ]
    },
    "us-gaap_InvestmentInterestRatePaidInKind": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentInterestRatePaidInKind",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Interest Rate, Paid in Kind",
        "terseLabel": "Interest Rate, Paid in Kind",
        "documentation": "Rate of interest paid in kind on investment."
       }
      }
     },
     "auth_ref": [
      "r575",
      "r596",
      "r600",
      "r637"
     ]
    },
    "us-gaap_InvestmentIssuerAffiliationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentIssuerAffiliationAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Affiliation [Axis]",
        "documentation": "Information by affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r457",
      "r482",
      "r492",
      "r506",
      "r507",
      "r531",
      "r532",
      "r534",
      "r535",
      "r541",
      "r542",
      "r547",
      "r548",
      "r580",
      "r581",
      "r587",
      "r615",
      "r619",
      "r620",
      "r640",
      "r641",
      "r643",
      "r644",
      "r648",
      "r649",
      "r653",
      "r654",
      "r655"
     ]
    },
    "us-gaap_InvestmentIssuerAffiliationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentIssuerAffiliationDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Affiliation [Domain]",
        "documentation": "Affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r457",
      "r482",
      "r492",
      "r506",
      "r507",
      "r531",
      "r532",
      "r534",
      "r535",
      "r541",
      "r542",
      "r547",
      "r548",
      "r580",
      "r581",
      "r587",
      "r615",
      "r619",
      "r620",
      "r640",
      "r641",
      "r643",
      "r644",
      "r648",
      "r649",
      "r653",
      "r654",
      "r655"
     ]
    },
    "us-gaap_InvestmentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentMaturityDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity Date",
        "label": "Investment Maturity Date",
        "documentation": "Maturity date of investment, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r574",
      "r575",
      "r595",
      "r596",
      "r600",
      "r601",
      "r636",
      "r637",
      "r731",
      "r938",
      "r940"
     ]
    },
    "cef_InvestmentObjectivesAndPracticesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "InvestmentObjectivesAndPracticesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objectives and Practices [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r822"
     ]
    },
    "us-gaap_InvestmentOwnedAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentOwnedAtCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortized cost",
        "verboseLabel": "Investment Cost",
        "terseLabel": "Investment cost",
        "documentation": "Cost of the investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r484",
      "r485",
      "r584",
      "r594",
      "r612",
      "r654",
      "r731",
      "r740",
      "r1036"
     ]
    },
    "mfic_InvestmentOwnedAtCostAfterCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentOwnedAtCostAfterCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Investments after Cash Equivalents",
        "terseLabel": "Total Investments after Cash Equivalents",
        "label": "Investment Owned at Cost After Cash Equivalents",
        "documentation": "Investment owned at cost after cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentOwnedAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Investments in and Advances to Affiliates, at Fair Value, Beginning Balance",
        "periodEndLabel": "Investments in and Advances to Affiliates, at Fair Value, Ending Balance",
        "verboseLabel": "Investments at fair value",
        "terseLabel": "Total investments at fair value",
        "label": "Fair Value",
        "documentation": "Fair value of investment in security owned."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r477",
      "r478",
      "r479",
      "r481",
      "r483",
      "r484",
      "r485",
      "r487",
      "r492",
      "r494",
      "r506",
      "r507",
      "r571",
      "r580",
      "r581",
      "r590",
      "r604",
      "r605",
      "r619",
      "r620",
      "r621",
      "r631",
      "r634",
      "r653",
      "r655",
      "r658",
      "r731",
      "r740",
      "r1036"
     ]
    },
    "mfic_InvestmentOwnedAtFairValueAfterCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentOwnedAtFairValueAfterCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Investments after Cash Equivalents, Fair Value",
        "terseLabel": "Total Investments after Cash Equivalents, Fair Value",
        "label": "Investment Owned at Fair Value After Cash Equivalents",
        "documentation": "Investment owned at fair value after cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedBalancePrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentOwnedBalancePrincipalAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Balance of debt amount",
        "terseLabel": "Par",
        "label": "Investment Owned, Balance, Principal Amount",
        "documentation": "Amount of principal of investment owned."
       }
      }
     },
     "auth_ref": [
      "r477",
      "r487",
      "r578",
      "r609",
      "r639",
      "r731"
     ]
    },
    "us-gaap_InvestmentOwnedBalanceShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentOwnedBalanceShares",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares",
        "label": "Investment Owned, Balance, Shares",
        "documentation": "Number of shares of investment owned."
       }
      }
     },
     "auth_ref": [
      "r477",
      "r487",
      "r578",
      "r609",
      "r639",
      "r731"
     ]
    },
    "mfic_InvestmentOwnedPercentAtCost": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentOwnedPercentAtCost",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment owned percent at cost",
        "label": "Investment Owned Percent At Cost",
        "documentation": "Investment owned percent at cost."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedPercentOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentOwnedPercentOfNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "% of Net Assets",
        "label": "Investment Owned, Net Assets, Percentage",
        "verboseLabel": "Investment owned, percent of net assets",
        "documentation": "Percentage of investment owned to net assets."
       }
      }
     },
     "auth_ref": [
      "r480",
      "r484",
      "r485",
      "r580",
      "r604",
      "r619",
      "r622",
      "r655",
      "r731",
      "r1036"
     ]
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Transactions",
        "label": "Investment, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for investment in financial asset."
       }
      }
     },
     "auth_ref": [
      "r412",
      "r433",
      "r434",
      "r435",
      "r436",
      "r591",
      "r593"
     ]
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Type",
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r478",
      "r480",
      "r481",
      "r484",
      "r487",
      "r571",
      "r580",
      "r597",
      "r605",
      "r619",
      "r626",
      "r655",
      "r659",
      "r660",
      "r661",
      "r662",
      "r731"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments",
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r478",
      "r480",
      "r481",
      "r484",
      "r487",
      "r571",
      "r580",
      "r597",
      "r605",
      "r619",
      "r626",
      "r655",
      "r659",
      "r660",
      "r661",
      "r662",
      "r731"
     ]
    },
    "us-gaap_InvestmentTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Type [Extensible Enumeration]",
        "documentation": "Indicates type of investment. Includes, but is not limited to, common stock, preferred stock, convertible security, fixed income security, government security, option purchased, warrant, loan participation and assignment, commercial paper, bankers' acceptance, certificates of deposit, short-term security, repurchase agreement, and other investment company."
       }
      }
     },
     "auth_ref": [
      "r478",
      "r484",
      "r572",
      "r580",
      "r595",
      "r597",
      "r598",
      "r619",
      "r636",
      "r655"
     ]
    },
    "us-gaap_InvestmentUnaffiliatedIssuerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentUnaffiliatedIssuerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Unaffiliated Issuer [Member]",
        "terseLabel": "Non-controlled/Non-affiliated Investments",
        "documentation": "Unaffiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r492",
      "r521",
      "r531",
      "r532",
      "r534",
      "r541",
      "r547",
      "r571",
      "r576",
      "r580",
      "r581",
      "r587",
      "r607",
      "r615",
      "r619",
      "r620"
     ]
    },
    "mfic_InvestmentValuationProcessPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "InvestmentValuationProcessPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment Valuation Process",
        "label": "Investment Valuation Process [Policy Text Block]",
        "documentation": "Investment valuation process."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments, fair value",
        "label": "Investments, Fair Value Disclosure",
        "totalLabel": "Investments, Fair Value Disclosure, 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": [
      "r968",
      "r969",
      "r973"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross Additions",
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Additions",
        "documentation": "Gross additions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r632"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gross Reductions",
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Reductions",
        "documentation": "Gross reductions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r633"
     ]
    },
    "cef_LatestPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LatestPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r834"
     ]
    },
    "mfic_LegacyFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LegacyFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Legacy fee [Member].",
        "label": "Legacy Fee [Member]",
        "terseLabel": "Legacy Fee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LetterOfCreditExpirationYear": {
     "xbrltype": "gYearListItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LetterOfCreditExpirationYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of credit expiration year",
        "label": "Letter Of Credit Expiration Year",
        "documentation": "Letter of credit expiration year."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LetterOfCreditExpireInTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LetterOfCreditExpireInTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of Credit Expire in 2024",
        "label": "Letter of Credit Expire in Two Thousand Twenty Four [Member]",
        "documentation": "Letter of credit expire in two thousand twenty four."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LetterOfCreditExpireInTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LetterOfCreditExpireInTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of Credit Expire in 2023",
        "label": "Letter of Credit Expire in Two Thousand Twenty Three [Member]",
        "documentation": "Letter of credit expire in two thousand twenty three."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LetterOfCreditIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LetterOfCreditIssued",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of credit issued",
        "label": "Letter Of Credit Issued",
        "documentation": "Letter of credit issued."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LetterOfCreditMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of Credit",
        "label": "Letter of Credit [Member]",
        "documentation": "A document typically issued by a financial institution which acts as a guarantee of payment to a beneficiary, or as the source of payment for a specific transaction (for example, wiring funds to a foreign exporter if and when specified merchandise is accepted pursuant to the terms of the letter of credit)."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LetterOfCreditOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LetterOfCreditOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letter of credit outstanding",
        "label": "Letter Of Credit Outstanding",
        "documentation": "Letter of credit outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LettersOfCreditExpirationYear": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LettersOfCreditExpirationYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Letters of credit expiration year.",
        "label": "Letters of Credit Expiration Year",
        "terseLabel": "Letters of credit expiration year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "Liabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Liabilities",
        "label": "Liabilities",
        "documentation": "Amount of liability recognized for present obligation requiring transfer or otherwise providing economic benefit to others."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r53",
      "r54",
      "r55",
      "r59",
      "r60",
      "r61",
      "r62",
      "r151",
      "r197",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r325",
      "r328",
      "r329",
      "r357",
      "r501",
      "r688",
      "r740",
      "r954",
      "r981",
      "r982"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities",
        "label": "Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of credit",
        "label": "Long-Term Line of Credit",
        "totalLabel": "Long-Term Line of Credit, Total",
        "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": [
      "r14",
      "r97",
      "r990"
     ]
    },
    "us-gaap_LineOfCreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lender Name [Axis]",
        "documentation": "Information by name of lender, which may be a single entity (for example, but not limited to, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58",
      "r930",
      "r952",
      "r953"
     ]
    },
    "us-gaap_LineOfCreditFacilityCommitmentFeeAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityCommitmentFeeAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Commitment Fee Amount",
        "terseLabel": "Commitment fee for unused portion of facility",
        "documentation": "Amount of the fee for available but unused credit capacity under the credit facility."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58",
      "r217"
     ]
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Current Borrowing Capacity",
        "terseLabel": "Commitment of Merx revolver",
        "documentation": "Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58"
     ]
    },
    "us-gaap_LineOfCreditFacilityExpirationDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityExpirationDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit facility expiration date",
        "label": "Line of Credit Facility, Expiration Date",
        "documentation": "Date the credit facility terminates, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58"
     ]
    },
    "us-gaap_LineOfCreditFacilityFrequencyOfPaymentAndPaymentTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityFrequencyOfPaymentAndPaymentTerms",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Frequency of payment and payment terms",
        "label": "Line of Credit Facility, Frequency of Payment and Payment Terms",
        "documentation": "Description of the frequency of the required periodic payments of interest, principal, or both, and the amount, if set, or a description of a formula upon which payment is based."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58"
     ]
    },
    "us-gaap_LineOfCreditFacilityLenderDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityLenderDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Lender [Domain]",
        "documentation": "Identification of the lender, which may be a single entity (for example, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit, including a letter of credit facility."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58",
      "r930",
      "r952"
     ]
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum borrowing capacity",
        "label": "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": [
      "r52",
      "r58"
     ]
    },
    "mfic_LineOfCreditFacilityMaximumBorrowingCapacityUnderAccordionFeature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacityUnderAccordionFeature",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum borrowing capacity under accordian feature",
        "label": "Line Of Credit Facility Maximum Borrowing Capacity Under Accordion Feature",
        "documentation": "Line of credit facility maximum borrowing capacity under accordion feature."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available remaining capacity",
        "label": "Line of Credit Facility, Remaining Borrowing Capacity",
        "documentation": "Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding)."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r58",
      "r217"
     ]
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitment fee per annum",
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "cef_LoanServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LoanServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LockUpPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "LockUpPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lock up period.",
        "label": "Lock Up Period",
        "terseLabel": "Lock up period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Bethesda CLO 1 Notes",
        "terseLabel": "Debt",
        "verboseLabel": "Total Bethesda CLO 1 Notes",
        "label": "Long-Term Debt",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r97",
      "r234",
      "r246",
      "r695",
      "r696",
      "r721",
      "r990"
     ]
    },
    "us-gaap_LongTermDebtAverageAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtAverageAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average debt outstanding (in millions)",
        "label": "Long-Term Debt, Average Amount Outstanding",
        "documentation": "Average amount outstanding of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r109",
      "r539"
     ]
    },
    "cef_LongTermDebtDividendsAndCovenantsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtDividendsAndCovenantsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Dividends and Covenants [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r786"
     ]
    },
    "cef_LongTermDebtIssuanceAndSubstitutionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtIssuanceAndSubstitutionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Issuance and Substitution [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r787"
     ]
    },
    "cef_LongTermDebtPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtPrincipal",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Principal"
       }
      }
     },
     "auth_ref": [
      "r784"
     ]
    },
    "cef_LongTermDebtRightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtRightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r788"
     ]
    },
    "cef_LongTermDebtStructuringTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtStructuringTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Structuring [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r785"
     ]
    },
    "cef_LongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r784"
     ]
    },
    "cef_LongTermDebtTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LongTermDebtTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r784"
     ]
    },
    "us-gaap_LongTermDebtWeightedAverageInterestRateOverTime": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LongTermDebtWeightedAverageInterestRateOverTime",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average annualized interest cost",
        "label": "Long-Term Debt, Weighted Average Interest Rate, over Time",
        "documentation": "Weighted average interest rate of long-term debt outstanding calculated over time."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LossContingenciesByNatureOfContingencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LossContingenciesByNatureOfContingencyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss Contingency Nature",
        "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": [
      "r211",
      "r212",
      "r213",
      "r216",
      "r300",
      "r430",
      "r693",
      "r947",
      "r948"
     ]
    },
    "us-gaap_LossContingencyNatureDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "LossContingencyNatureDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss Contingency, Nature",
        "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": [
      "r211",
      "r212",
      "r213",
      "r216",
      "r300",
      "r430",
      "r693",
      "r947",
      "r948"
     ]
    },
    "cef_LowestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LowestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r828"
     ]
    },
    "cef_LowestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LowestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r832"
     ]
    },
    "cef_LowestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "LowestPriceOrBidPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r833"
     ]
    },
    "mfic_MSEATankersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MSEATankersLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSEA Tankers LLC",
        "label": "M S E A Tankers L L C [Member]",
        "documentation": "MSEA Tankers LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManagementAndPerformanceBasedIncentiveFeesWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementAndPerformanceBasedIncentiveFeesWaived",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Management and performance-based incentive fees waived",
        "label": "Management And Performance Based Incentive Fees Waived",
        "documentation": "Management and performance-based incentive fees waived."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ManagementAndServiceFeesBaseRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ManagementAndServiceFeesBaseRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management and Service Fees, Base Rate",
        "terseLabel": "Management fee annual rate percentage",
        "documentation": "Base rate for management and service fees under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1047"
     ]
    },
    "mfic_ManagementFeeAnnualRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementFeeAnnualRatePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee annual rate percentage",
        "label": "Management Fee Annual Rate Percentage",
        "documentation": "Management fee annual rate percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManagementFeeAnnualRatePercentageOfAverageGrossAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementFeeAnnualRatePercentageOfAverageGrossAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee annual rate percentage of average gross assets",
        "label": "Management Fee Annual Rate Percentage Of Average Gross Assets",
        "documentation": "Management fee annual rate percentage of average gross assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ManagementFeeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ManagementFeeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fees",
        "label": "Management Fee Expense",
        "verboseLabel": "Management fees recognized",
        "documentation": "Amount of expense for investment management fee, including, but not limited to, expense in connection with research, selection, supervision, and custody of investment."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r532",
      "r738",
      "r1041"
     ]
    },
    "cef_ManagementFeeNotBasedOnNetAssetsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ManagementFeeNotBasedOnNetAssetsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fee not based on Net Assets, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r807"
     ]
    },
    "us-gaap_ManagementFeePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ManagementFeePayable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Management fees, accrued",
        "terseLabel": "Management fees payable",
        "label": "Management Fee Payable",
        "documentation": "Amount of fee payable for management of fund or trust."
       }
      }
     },
     "auth_ref": [
      "r495"
     ]
    },
    "mfic_ManagementFeeQuarterRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementFeeQuarterRatePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee quarter rate percentage",
        "label": "Management Fee Quarter Rate Percentage",
        "documentation": "Management fee quarter rate percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManagementFeeQuarterRatePercentageOfAverageGrossAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementFeeQuarterRatePercentageOfAverageGrossAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee quarter rate percentage of average gross assets",
        "label": "Management Fee Quarter Rate Percentage Of Average Gross Assets",
        "documentation": "Management fee quarter rate percentage of average gross assets."
       }
      }
     },
     "auth_ref": []
    },
    "cef_ManagementFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ManagementFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r806"
     ]
    },
    "mfic_ManagementFeesWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementFeesWaived",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fees waived",
        "label": "Management Fees Waived",
        "documentation": "Management fees waived."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManagementServicesAnnualFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManagementServicesAnnualFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management services annual fee",
        "label": "Management Services Annual Fee",
        "documentation": "Management services annual fee."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MannkindCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MannkindCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mannkind corporation.",
        "label": "Mannkind Corporation [Member]",
        "terseLabel": "Mannkind Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManufacturingCapitalEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ManufacturingCapitalEquipmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Manufacturing, Capital Equipment",
        "label": "Manufacturing Capital Equipment [Member]",
        "documentation": "Manufacturing Capital Equipment."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MaximumAmountOfDebtOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MaximumAmountOfDebtOutstanding",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum amount of debt outstanding.",
        "label": "Maximum Amount of Debt Outstanding",
        "terseLabel": "Maximum amount of debt outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r126",
      "r212",
      "r213",
      "r214",
      "r215",
      "r272",
      "r300",
      "r345",
      "r390",
      "r421",
      "r423",
      "r430",
      "r488",
      "r489",
      "r574",
      "r595",
      "r601",
      "r602",
      "r636",
      "r678",
      "r679",
      "r691",
      "r699",
      "r706",
      "r714",
      "r715",
      "r719",
      "r720",
      "r725",
      "r956",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988"
     ]
    },
    "mfic_MaximumOfferingPriceThroughEquityFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MaximumOfferingPriceThroughEquityFinancing",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate maximum offering price through equity financing",
        "label": "Maximum Offering Price Through Equity Financing",
        "documentation": "Maximum offering price through equity financing."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "mfic_MeasurementInputComparableMultipleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputComparableMultipleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Comparable Multiple",
        "label": "Measurement Input Comparable Multiple [Member]",
        "documentation": "Measurement input comparable multiple."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputDiscountRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount Rate",
        "label": "Measurement Input, Discount Rate [Member]",
        "documentation": "Measurement input using interest rate to determine present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r970",
      "r971",
      "r972"
     ]
    },
    "mfic_MeasurementInputEstimatedProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputEstimatedProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated Proceeds",
        "label": "Measurement Input Estimated Proceeds [Member]",
        "documentation": "Measurement input estimated proceeds."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputExpectedVolatilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputExpectedVolatilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected Volatility",
        "label": "Measurement Input Expected Volatility [Member]",
        "documentation": "Measurement input expected volatility."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputRecentTransactionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputRecentTransactionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recent Transaction",
        "label": "Measurement Input Recent Transaction [Member]",
        "documentation": "Measurement input recent transaction."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputRecoverableAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputRecoverableAmountMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoverable Amount",
        "label": "Measurement Input Recoverable Amount [Member]",
        "documentation": "Measurement input recoverable amount."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputResidualValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputResidualValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residual Value",
        "label": "Measurement Input Residual Value [Member]",
        "documentation": "Measurement input residual value."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputSaleProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MeasurementInputSaleProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale Proceeds",
        "label": "Measurement Input Sale Proceeds [Member]",
        "documentation": "Measurement input, sale proceeds."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Input Type",
        "label": "Measurement Input Type [Axis]",
        "documentation": "Information by type of measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r344",
      "r345",
      "r714"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement Input Type",
        "label": "Measurement Input Type [Domain]",
        "documentation": "Measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r344",
      "r345",
      "r714"
     ]
    },
    "mfic_MediaDiversifiedAndProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MediaDiversifiedAndProductionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Media - Diversified &amp; Production",
        "label": "Media - Diversified and Production [Member]",
        "documentation": "Media - diversified and production."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAdministrationAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MerxAdministrationAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Merx Administration Agreement",
        "label": "Merx Administration Agreement [Member]",
        "documentation": "Merx administration agreement."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAndApolloMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MerxAndApolloMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Merx and Apollo",
        "label": "Merx and Apollo [Member]",
        "documentation": "Merx and Apollo."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAviationFinanceLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MerxAviationFinanceLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Merx Aviation Finance, LLC",
        "label": "Merx Aviation Finance L L C [Member]",
        "documentation": "Merx Aviation Finance, LLC.",
        "verboseLabel": "Merx Aviation Finance, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAviationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MerxAviationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Merx Aviation",
        "label": "Merx Aviation [Member]",
        "documentation": "Merx aviation."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MficbethesdacloonellcdebtsecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MficbethesdacloonellcdebtsecuritizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MFIC Bethesda CLO 1 LLC Debt Securitization",
        "label": "MficBethesdaCloOneLlcDebtSecuritization[Member]",
        "documentation": "Mfic Bethesda Clo one Llc debt securitization member."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MiddleMarketInvestmentCompaniesEbidta": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MiddleMarketInvestmentCompaniesEbidta",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Middle market investment companies EBIDTA",
        "label": "Middle Market Investment Companies EBIDTA",
        "documentation": "Middle market investment companies EBIDTA."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MinimumCapitalGainsDistributionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MinimumCapitalGainsDistributionPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum capital gains distribution percentage",
        "label": "Minimum Capital Gains Distribution Percentage",
        "documentation": "Minimum capital gains distribution percentage."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum",
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r126",
      "r212",
      "r213",
      "r214",
      "r215",
      "r272",
      "r300",
      "r345",
      "r390",
      "r421",
      "r423",
      "r430",
      "r488",
      "r489",
      "r574",
      "r595",
      "r601",
      "r602",
      "r636",
      "r678",
      "r679",
      "r691",
      "r699",
      "r706",
      "r714",
      "r715",
      "r719",
      "r725",
      "r956",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988"
     ]
    },
    "mfic_MinimumOrdinaryIncomeDistributionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "MinimumOrdinaryIncomeDistributionPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum ordinary income distribution percentage",
        "documentation": "Minimum ordinary income distribution percentage.",
        "label": "Minimum Ordinary Income Distribution Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]",
        "terseLabel": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r883"
     ]
    },
    "us-gaap_MoneyMarketFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "MoneyMarketFundsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Money Market Fund",
        "label": "Money Market Funds [Member]",
        "documentation": "Fund that invests in short-term money-market instruments, for example, but not limited to, commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and other highly liquid securities."
       }
      }
     },
     "auth_ref": [
      "r961"
     ]
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement [Text Block]",
        "terseLabel": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r891"
     ]
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote [Text Block]",
        "terseLabel": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "us-gaap_NetAssetValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetAssetValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NAV Per Share",
        "periodEndLabel": "Net asset value at end of period",
        "periodStartLabel": "Net asset value at beginning of period",
        "terseLabel": "Net asset value per share",
        "verboseLabel": "Net Asset Value Per Share",
        "documentation": "Net asset value per share or per unit of investments in certain entities that calculate net asset value per share. Includes, but is not limited to, by unit, membership interest, or other ownership interest. Investment includes, but is not limited to, investment in certain hedge funds, venture capital funds, private equity funds, real estate partnerships or funds. Excludes fair value disclosure."
       }
      }
     },
     "auth_ref": [
      "r466",
      "r473",
      "r475",
      "r505",
      "r522",
      "r664",
      "r740"
     ]
    },
    "mfic_NetAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NetAssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Assets",
        "label": "Net Assets [Abstract]",
        "documentation": "Net assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Cash Used in/Provided by Financing Activities",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r145"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Activities",
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Cash Used in/Provided by Operating Activities",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r75",
      "r76",
      "r77"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating Activities",
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NetChangeInUnrealizedGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NetChangeInUnrealizedGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net change in unrealized gains (losses):",
        "label": "Net Change In Unrealized Gains Losses [Abstract]",
        "documentation": "Net change in unrealized gains (losses)."
       }
      }
     },
     "auth_ref": []
    },
    "cef_NetExpenseOverAssetsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "NetExpenseOverAssetsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Expense over Assets [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss)",
        "terseLabel": "Net Income (Loss)",
        "totalLabel": "Net Increase (Decrease) in Net Assets Resulting from Operations",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r70",
      "r77",
      "r100",
      "r128",
      "r136",
      "r137",
      "r141",
      "r151",
      "r159",
      "r161",
      "r162",
      "r163",
      "r164",
      "r165",
      "r168",
      "r169",
      "r175",
      "r197",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r316",
      "r322",
      "r339",
      "r357",
      "r405",
      "r527",
      "r553",
      "r556",
      "r738",
      "r954"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToReportingEntityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLossAttributableToReportingEntityAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operations",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetInvestmentIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetInvestmentIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Investment Income",
        "totalLabel": "Net Investment Income",
        "terseLabel": "Net investment income",
        "documentation": "Amount, after investment expense, of income earned from investments in securities and real estate. Includes, but is not limited to, real estate investment, policy loans, dividends, and interest. Excludes realized gain (loss) on investments."
       }
      }
     },
     "auth_ref": [
      "r103",
      "r408",
      "r409",
      "r540",
      "r738"
     ]
    },
    "mfic_NetRealizedAndChangeInUnrealizedGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NetRealizedAndChangeInUnrealizedGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Realized and Change in Unrealized Gains (Losses)",
        "label": "Net Realized And Change In Unrealized Gains Losses [Abstract]",
        "documentation": "Net realized and change in unrealized gains (losses)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recent Accounting Pronouncements",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NewAircraftFundorNewManagedAccounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NewAircraftFundorNewManagedAccounts",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "New aircraft fundor new managed accounts.",
        "label": "New Aircraft Fundor New Managed Accounts",
        "terseLabel": "Aggregate capital of New Aircraft Funds and New Balance Sheet Investments"
       }
      }
     },
     "auth_ref": []
    },
    "cef_NewCefOrBdcRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "NewCefOrBdcRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New CEF or BDC Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "dei_NewEffectiveDateForPreviousFiling": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "NewEffectiveDateForPreviousFiling",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Effective Date for Previous Filing"
       }
      }
     },
     "auth_ref": [
      "r770",
      "r836",
      "r837",
      "r838"
     ]
    },
    "cef_NoPublicTradingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "NoPublicTradingTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Public Trading [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r831"
     ]
    },
    "dei_NoSubstantiveChanges462c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "NoSubstantiveChanges462c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c)"
       }
      }
     },
     "auth_ref": [
      "r906"
     ]
    },
    "dei_NoSubstantiveChanges462cFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "NoSubstantiveChanges462cFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c), File Number"
       }
      }
     },
     "auth_ref": [
      "r906"
     ]
    },
    "cef_NoTradingHistoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "NoTradingHistoryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading History [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r835"
     ]
    },
    "mfic_NonCashActivityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NonCashActivityAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Cash Activity",
        "label": "Non Cash Activity [Abstract]",
        "documentation": "Non-Cash activity."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NonExtendingLendersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NonExtendingLendersMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-extending Lenders",
        "label": "Non-extending Lenders [Member]",
        "documentation": "Non-extending lenders."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description [Text Block]",
        "terseLabel": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r755",
      "r766",
      "r846",
      "r872",
      "r880"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount",
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r854"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO [Member]",
        "terseLabel": "Non-PEO NEO"
       }
      }
     },
     "auth_ref": [
      "r872"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r891"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r891"
     ]
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionDebtAssumed1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashOrPartNoncashAcquisitionDebtAssumed1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Debt assumed",
        "terseLabel": "Debt assumed from AFT and AIF",
        "label": "Noncash or Part Noncash Acquisition, Debt Assumed",
        "documentation": "The amount of debt that an Entity assumes in acquiring a business or in consideration for an asset received in a noncash (or part noncash) acquisition. Noncash is defined as transactions during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r21",
      "r22"
     ]
    },
    "mfic_NoncashOrPartNoncashAcquisitionDeemedContributionFromInvestmentAdvisor": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NoncashOrPartNoncashAcquisitionDeemedContributionFromInvestmentAdvisor",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deemed contribution from the Investment Advisor",
        "label": "Noncash Or Part Noncash Acquisition, Deemed Contribution From Investment Advisor",
        "documentation": "Noncash or part noncash acquisition deemed contribution from investment advisor."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashOrPartNoncashAcquisitionInvestmentsAcquired1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NoncashOrPartNoncashAcquisitionInvestmentsAcquired1",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases of investments",
        "label": "Noncash or Part Noncash Acquisition, Investments Acquired",
        "documentation": "The amount of investments that an Entity acquires in a noncash (or part noncash) acquisition. Noncash is defined as information about all investing and financing activities of an enterprise during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r21",
      "r22"
     ]
    },
    "mfic_NoncashOrPartNoncashAcquisitionIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NoncashOrPartNoncashAcquisitionIssuanceOfCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of common stock",
        "label": "Noncash or Part Noncash Acquisition Issuance of Common Stock",
        "documentation": "Noncash or part noncash acquisition issuance of common stock."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NumberOfComponentsConsistsInIncentiveFee": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "NumberOfComponentsConsistsInIncentiveFee",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of components consists in incentive fee.",
        "label": "Number of Components Consists In Incentive Fee",
        "terseLabel": "Number of components consists in incentive fee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_O2024Q3DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "O2024Q3DividendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "O2024Q3Dividends",
        "documentation": "O 2024 Q3 Dividends."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OfferingCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OfferingCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Offering cost.",
        "label": "Offering Cost",
        "terseLabel": "Offering cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthCorraInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OneMonthCorraInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1 Month CORRA",
        "label": "One Month CORRA Interest Rate [Member]",
        "documentation": "One month CORRA interest rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthEuriborInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OneMonthEuriborInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1 month EURIBOR",
        "label": "One Month Euribor Interest Rate [Member]",
        "documentation": "One month euribor interest rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthLondonInterbankOfferedRateLIBORMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OneMonthLondonInterbankOfferedRateLIBORMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One month London interbank offered rate LIBOR.",
        "terseLabel": "1 Month LIBOR",
        "label": "One Month London Interbank Offered Rate L I B O R [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OneMonthSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One month secured overnight financing rate SOFR overnight index swap rate.",
        "terseLabel": "1 Month SOFR",
        "label": "One Month Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total expenses",
        "label": "Operating Expenses",
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperatingExpensesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses",
        "label": "Operating Expenses [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperationsCommencedDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OperationsCommencedDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operations commenced date",
        "label": "Operations Commenced Date",
        "documentation": "Date the operations of the entity commenced, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganization"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Organization",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r92",
      "r431",
      "r432"
     ]
    },
    "mfic_OrganizationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OrganizationLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization [Line Items]",
        "documentation": "Organization [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OrganizationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OrganizationTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization [Table]",
        "documentation": "Organization."
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherAnnualExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherAnnualExpense1Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 1 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_OtherAnnualExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherAnnualExpense2Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 2 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_OtherAnnualExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherAnnualExpense3Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": "cef_OtherAnnualExpensesPercent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expense 3 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_OtherAnnualExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherAnnualExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_OtherAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherAnnualExpensesPercent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Ae": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "cef_OtherExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r805"
     ]
    },
    "cef_OtherFeederFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherFeederFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Feeder Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "us-gaap_OtherGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other general and administrative expenses",
        "label": "Other General and Administrative Expense",
        "documentation": "Amount of general and administrative expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r71",
      "r1046"
     ]
    },
    "us-gaap_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income",
        "label": "Other Income",
        "documentation": "Amount of revenue and income classified as other."
       }
      }
     },
     "auth_ref": [
      "r413",
      "r530",
      "r647",
      "r648",
      "r650"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities",
        "totalLabel": "Other Liabilities, Total",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r96",
      "r398",
      "r497",
      "r498",
      "r740",
      "r991",
      "r1040"
     ]
    },
    "us-gaap_OtherLiabilityRelatedPartyTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OtherLiabilityRelatedPartyTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liability, Related Party [Extensible Enumeration]",
        "documentation": "Indicates status and type of related party for liability classified as other."
       }
      }
     },
     "auth_ref": [
      "r980",
      "r991"
     ]
    },
    "cef_OtherMasterFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherMasterFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Master Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount",
        "terseLabel": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r864"
     ]
    },
    "cef_OtherSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_OtherSecurityDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherSecurityDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_OtherSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_OtherTransactionExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionExpense1Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 1 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionExpense2Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 2 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionExpense3Percent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": "cef_OtherTransactionExpensesPercent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expense 3 [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionExpensesPercent",
     "calculation": {
      "http://xbrl.sec.gov/cef/role/Item3Te": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionFeesBasisMaximum",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionFeesBasisMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionFeesBasisNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionFeesBasisNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "cef_OtherTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OtherTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount",
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r753",
      "r764",
      "r844",
      "r878"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r756",
      "r767",
      "r847",
      "r881"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r756",
      "r767",
      "r847",
      "r881"
     ]
    },
    "cef_OutstandingSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OutstandingSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r790"
     ]
    },
    "cef_OutstandingSecurityAuthorizedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OutstandingSecurityAuthorizedShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Authorized [Shares]"
       }
      }
     },
     "auth_ref": [
      "r792"
     ]
    },
    "cef_OutstandingSecurityHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OutstandingSecurityHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r793"
     ]
    },
    "cef_OutstandingSecurityNotHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OutstandingSecurityNotHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Not Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r794"
     ]
    },
    "cef_OutstandingSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "OutstandingSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r791"
     ]
    },
    "us-gaap_OverAllotmentOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "OverAllotmentOptionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Over-allotment Option",
        "label": "Over-Allotment Option [Member]",
        "documentation": "Right given to the underwriter to sell additional shares over the initial allotment."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OwnershipPercentageOfOutstandingVotingSecuritiesOfInvestment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "OwnershipPercentageOfOutstandingVotingSecuritiesOfInvestment",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ownership percentage of outstanding voting securities of investment",
        "label": "Ownership Percentage Of Outstanding Voting Securities Of Investment",
        "documentation": "Ownership percentage of outstanding voting securities of investment."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaidInKindBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PaidInKindBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "PIK balance at beginning of period",
        "periodEndLabel": "PIK balance at end of period",
        "label": "Paid In Kind Balance",
        "documentation": "Paid in kind balance."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaidInKindIncomeCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PaidInKindIncomeCapitalized",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PIK income capitalized",
        "label": "Paid In Kind Income Capitalized",
        "documentation": "Paid-in-kind income capitalized."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaidInKindIncomeReceivedInCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PaidInKindIncomeReceivedInCash",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PIK income received in cash",
        "label": "Paid In Kind Income Received In Cash",
        "documentation": "Paid-in-kind income received in cash."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaidInKindInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaidInKindInterest",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PIK income",
        "label": "Paid-in-Kind Interest",
        "documentation": "Interest paid other than in cash for example by issuing additional debt securities. As a noncash item, it is added to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r853"
     ]
    },
    "us-gaap_PayableInvestmentPurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PayableInvestmentPurchase",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payable for investments purchased",
        "label": "Payable, Investment, Purchase",
        "documentation": "Amount of payable for purchase of investment."
       }
      }
     },
     "auth_ref": [
      "r493",
      "r663",
      "r740"
     ]
    },
    "us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForPurchaseOfInvestmentOperatingActivity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment for Purchase, Investment, Operating Activity",
        "negatedLabel": "Purchases of investments",
        "documentation": "Amount of cash outflow for acquisition of investment, classified as operating activity. Includes, but is not limited to, funding, origination, drawdown, and participation in investment."
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repurchase of common stock",
        "label": "Payments for Repurchase of Common Stock",
        "terseLabel": "Repurchased common stock value",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "us-gaap_PaymentsOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfDividends",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments of Dividends, Total",
        "label": "Payments of Dividends",
        "negatedLabel": "Distributions paid",
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests."
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "us-gaap_PaymentsOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsOfFinancingCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payments of Financing Costs, Total",
        "label": "Payments of Financing Costs",
        "negatedLabel": "Financing costs paid and deferred",
        "documentation": "The cash outflow for loan and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PaymentsToAcquireBusinessesGross",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash paid",
        "label": "Payments to Acquire Businesses, Gross",
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price."
       }
      }
     },
     "auth_ref": [
      "r15",
      "r320"
     ]
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote [Text Block]",
        "terseLabel": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r863"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount",
        "terseLabel": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r863"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount",
        "terseLabel": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r872"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r865"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount",
        "terseLabel": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r854"
     ]
    },
    "mfic_PercentageOfCumulativePreIncentiveFeeNetReturn": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfCumulativePreIncentiveFeeNetReturn",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of cumulative pre-Incentive fee net return",
        "label": "Percentage Of Cumulative Pre Incentive Fee Net Return",
        "documentation": "Percentage of cumulative pre-Incentive fee net return."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfEquityOwnershipInterest": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfEquityOwnershipInterest",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of equity ownership interest.",
        "label": "Percentage of Equity Ownership Interest",
        "terseLabel": "Investment, ownership percentage"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfFederalExciseTaxOnIncomeWhereDistributionRequirementsNotMet": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfFederalExciseTaxOnIncomeWhereDistributionRequirementsNotMet",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment company, pay excise tax equal to percentage of amount of annual income and capital gains exceed distribution from taxable income",
        "documentation": "Percentage of federal excise tax on income where distribution requirements not met.",
        "label": "Percentage Of Federal Excise Tax On Income Where Distribution Requirements Not Met"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfManagementFeeRevenueEarnedAndIncentiveFeeRevenueOffset": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfManagementFeeRevenueEarnedAndIncentiveFeeRevenueOffset",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of management fee revenue earned and incentive fee revenue offset",
        "label": "Percentage Of Management Fee Revenue Earned And Incentive Fee Revenue Offset",
        "documentation": "Percentage of management fee revenue earned and incentive fee revenue offset."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfNonQualifyingAssetsRepresentingCompanyAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfNonQualifyingAssetsRepresentingCompanyAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of non-qualifying assets",
        "label": "Percentage Of Non Qualifying Assets Representing Company Assets",
        "documentation": "Percentage of non qualifying assets representing company assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfNonQualifyingAssetsRepresentingCompanyTotalAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfNonQualifyingAssetsRepresentingCompanyTotalAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of non qualifying assets representing company total assets.",
        "label": "Percentage Of Non Qualifying Assets Representing Company Total Assets",
        "terseLabel": "Percentage of non-qualifying assets"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfPreIncentiveFeeNetInvestmentIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfPreIncentiveFeeNetInvestmentIncome",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of pre-incentive fee net investment income",
        "label": "Percentage Of Pre Incentive Fee Net Investment Income",
        "documentation": "Percentage of pre-incentive fee net investment income."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfPreferredSharesOwned": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfPreferredSharesOwned",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of preferred shares owned",
        "label": "Percentage Of Preferred Shares Owned",
        "documentation": "Percentage of preferred shares owned."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfQualifyingAssetsRepresentingCompanyTotalAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfQualifyingAssetsRepresentingCompanyTotalAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of qualifying assets",
        "label": "Percentage Of Qualifying Assets Representing Company Total Assets",
        "documentation": "Percentage of qualifying assets representing company total assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfSalesAgentCommission": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfSalesAgentCommission",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of sales agent receive commission",
        "label": "Percentage Of Sales Agent Commission",
        "documentation": "Percentage of sales agent commission."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfTotalInvestmentsAtFairValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOfTotalInvestmentsAtFairValue",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of total investments at fair value.",
        "label": "Percentage of Total Investments at Fair Value",
        "terseLabel": "Percentage of Total Investments (at Fair Value)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOnInvestmentsOnNonAccrualAtAmortizedCost": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOnInvestmentsOnNonAccrualAtAmortizedCost",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage on investments on non-accrual at amortized cost",
        "label": "Percentage on Investments On Non-Accrual at Amortized Cost",
        "documentation": "Percentage on investments on non-accrual at amortized cost."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOnInvestmentsOnNonAccrualAtFairValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PercentageOnInvestmentsOnNonAccrualAtFairValue",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage on investments on non-accrual at fair value",
        "label": "Percentage on Investments On Non-Accrual at Fair Value",
        "documentation": "Percentage on investments on non-accrual at fair value."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PerformanceBasedIncentiveFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PerformanceBasedIncentiveFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance-based incentive fee.",
        "label": "Performance-based Incentive Fee [Member]",
        "terseLabel": "Performance-based Incentive Fee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PerformanceBasedIncentiveFeesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PerformanceBasedIncentiveFeesPayable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance-based incentive fees payable",
        "label": "Performance-based Incentive Fees Payable",
        "documentation": "Performance-based incentive fees payable."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PledgingPurposeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PledgingPurposeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pledging Purpose",
        "label": "Pledging Purpose [Axis]",
        "documentation": "Information by pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r387",
      "r708",
      "r723",
      "r919"
     ]
    },
    "us-gaap_PledgingPurposeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PledgingPurposeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pledging Purpose",
        "label": "Pledging Purpose [Domain]",
        "documentation": "Pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r387",
      "r708",
      "r723",
      "r919"
     ]
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnAdjsPrrSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Prior Service Cost [Member]",
        "terseLabel": "Pension Adjustments Prior Service Cost"
       }
      }
     },
     "auth_ref": [
      "r856"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Service Cost [Member]",
        "terseLabel": "Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r900"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Benefits Adjustments, Footnote [Text Block]",
        "terseLabel": "Pension Benefits Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "dei_PostEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PostEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r741"
     ]
    },
    "dei_PostEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PostEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment Number",
        "documentation": "Amendment number to registration statement under the Securities Act of 1933 after the registration becomes effective."
       }
      }
     },
     "auth_ref": [
      "r741"
     ]
    },
    "dei_PreEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PreEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r741"
     ]
    },
    "dei_PreEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PreEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment Number",
        "documentation": "Amendment number to registration statement under the Securities Act of 1933 before the registration becomes effective."
       }
      }
     },
     "auth_ref": [
      "r741"
     ]
    },
    "mfic_PreIncentiveFeeNetInvestmentIncomeDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PreIncentiveFeeNetInvestmentIncomeDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pre-incentive fee net investment income description",
        "label": "Pre Incentive Fee Net Investment Income Description",
        "documentation": "pre-incentive fee net investment income description."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PreferredReturnMultiplyingNetAssetPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PreferredReturnMultiplyingNetAssetPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred return multiplying net asset percentage",
        "label": "Preferred Return Multiplying Net Asset Percentage",
        "documentation": "Preferred return multiplying net asset percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PreferredReturnMultiplyingNetAssetsPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PreferredReturnMultiplyingNetAssetsPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred return multiplying net assets percentage",
        "documentation": "Preferred return multiplying net assets percentage."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockLiquidationPreference",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Liquidating Preference",
        "documentation": "The per share liquidation preference (or restrictions) of nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share."
       }
      }
     },
     "auth_ref": [
      "r28",
      "r29",
      "r63",
      "r929",
      "r957"
     ]
    },
    "us-gaap_PreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PreferredStockMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Preferred Equity",
        "label": "Preferred Stock [Member]",
        "verboseLabel": "Preferred Equity - Preferred Stock",
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company."
       }
      }
     },
     "auth_ref": [
      "r729",
      "r730",
      "r733",
      "r734",
      "r735",
      "r736",
      "r1027",
      "r1051"
     ]
    },
    "cef_PreferredStockRestrictionsArrearageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "PreferredStockRestrictionsArrearageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Arrearage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r780"
     ]
    },
    "cef_PreferredStockRestrictionsOtherTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "PreferredStockRestrictionsOtherTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Other [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r781"
     ]
    },
    "us-gaap_PrepaidExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PrepaidExpenseAndOtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses and other assets",
        "label": "Prepaid Expense and Other Assets",
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets."
       }
      }
     },
     "auth_ref": []
    },
    "cef_PrimaryShelfFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "PrimaryShelfFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "cef_PrimaryShelfQualifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "PrimaryShelfQualifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf Qualified [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "us-gaap_PrimeRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "PrimeRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prime Rate",
        "label": "Prime Rate [Member]",
        "documentation": "Interest rate charged by financial institutions to their most creditworthy borrowers."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromDispositionOfInvestmentOperatingActivity",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Disposition of Investment, Operating Activity",
        "terseLabel": "Proceeds from sales and repayments of investments",
        "documentation": "Amount of cash inflow from sale of investment, classified as operating activity. Includes, but is not limited to, repayment, principal payment, paydown, and maturity of investment."
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "us-gaap_ProceedsFromIssuanceInitialPublicOffering": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceInitialPublicOffering",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from initial public offering",
        "label": "Proceeds from Issuance Initial Public Offering",
        "documentation": "The cash inflow associated with the amount received from entity's first offering of stock to the public."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity offerings of common stock",
        "terseLabel": "Net proceeds from the issuance of common stock",
        "label": "Net proceeds from additional offerings of common stock",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceOfDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuances of debt",
        "label": "Proceeds from Issuance of Debt",
        "documentation": "The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt."
       }
      }
     },
     "auth_ref": [
      "r927"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net proceeds from senior unsecured notes",
        "label": "Proceeds from Issuance of Unsecured Debt",
        "documentation": "The cash inflow from the issuance of long-term debt that is not secured by collateral. Excludes proceeds from tax exempt unsecured debt."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service",
        "label": "Product and Service [Axis]",
        "documentation": "Information by product and service, or group of similar products and similar services."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r123",
      "r191",
      "r391",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r681",
      "r700",
      "r724",
      "r725",
      "r726",
      "r727",
      "r728",
      "r922",
      "r949",
      "r950",
      "r959",
      "r993",
      "r995",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service",
        "label": "Product and Service [Domain]",
        "documentation": "Product or service, or a group of similar products or similar services."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r123",
      "r191",
      "r391",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r420",
      "r681",
      "r700",
      "r724",
      "r725",
      "r726",
      "r727",
      "r728",
      "r922",
      "r949",
      "r950",
      "r959",
      "r993",
      "r995",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net profit (loss)",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total",
        "verboseLabel": "Net increase (decrease) in net assets resulting from operations",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r128",
      "r136",
      "r137",
      "r144",
      "r151",
      "r159",
      "r165",
      "r168",
      "r169",
      "r197",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r316",
      "r322",
      "r323",
      "r326",
      "r327",
      "r339",
      "r357",
      "r394",
      "r404",
      "r458",
      "r527",
      "r553",
      "r556",
      "r709",
      "r710",
      "r739",
      "r925",
      "r954"
     ]
    },
    "cef_ProspectusLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ProspectusLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "cef_ProspectusTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ProspectusTable",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus:"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "mfic_PurchasesOfInvestmentsOnTradeDateBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "PurchasesOfInvestmentsOnTradeDateBasis",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases of investments on trade date basis",
        "label": "Purchases Of Investments On Trade Date Basis",
        "documentation": "Purchases of investments on trade date basis."
       }
      }
     },
     "auth_ref": []
    },
    "cef_PurposeOfFeeTableNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "PurposeOfFeeTableNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose of Fee Table , Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r796"
     ]
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r853"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance [Table Text Block]",
        "terseLabel": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r853"
     ]
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement",
        "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": [
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r126",
      "r212",
      "r213",
      "r214",
      "r215",
      "r264",
      "r272",
      "r296",
      "r297",
      "r298",
      "r300",
      "r345",
      "r386",
      "r388",
      "r390",
      "r421",
      "r423",
      "r430",
      "r488",
      "r489",
      "r574",
      "r595",
      "r601",
      "r602",
      "r636",
      "r678",
      "r679",
      "r691",
      "r699",
      "r706",
      "r714",
      "r715",
      "r719",
      "r720",
      "r725",
      "r731",
      "r945",
      "r956",
      "r971",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RangeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statistical Measurement",
        "label": "Statistical Measurement [Domain]",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r126",
      "r212",
      "r213",
      "r214",
      "r215",
      "r264",
      "r272",
      "r296",
      "r297",
      "r298",
      "r300",
      "r345",
      "r386",
      "r388",
      "r390",
      "r421",
      "r423",
      "r430",
      "r488",
      "r489",
      "r574",
      "r595",
      "r601",
      "r602",
      "r636",
      "r678",
      "r679",
      "r691",
      "r699",
      "r706",
      "r714",
      "r715",
      "r719",
      "r720",
      "r725",
      "r731",
      "r945",
      "r956",
      "r971",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988"
     ]
    },
    "us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net realized gains (losses)",
        "verboseLabel": "Net realized gains (losses)",
        "negatedLabel": "Net realized (gains) losses",
        "terseLabel": "Net realized (gains) losses",
        "label": "Realized Gain (Loss), Investment, Derivative, and Foreign Currency Transaction Price Change, Operating, after Tax",
        "documentation": "Amount, after tax, of realized gain (loss) on investment, derivative, and foreign currency transaction on investment and derivative from change in market price, classified as operating. Investment includes, but is not limited to, debt and equity securities, security sold short, real estate, and commodity."
       }
      }
     },
     "auth_ref": [
      "r458",
      "r554",
      "r673",
      "r1042"
     ]
    },
    "mfic_RealizedGainsOrLossesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RealizedGainsOrLossesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Realized Gains or Losses",
        "label": "Realized Gains Or Losses Policy [Policy Text Block]",
        "documentation": "Realized gains or losses, policy."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealizedInvestmentGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net realized (gains) losses",
        "terseLabel": "Net realized gains (losses)",
        "label": "Realized Investment Gains (Losses)",
        "totalLabel": "Net realized gains (losses)",
        "documentation": "Amount of realized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r411"
     ]
    },
    "us-gaap_RealizedInvestmentGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealizedInvestmentGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net realized gains (losses):",
        "label": "Realized Investment Gains (Losses) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivableInvestmentSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ReceivableInvestmentSale",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivable, Investment, Sale",
        "terseLabel": "Receivable for investments sold",
        "documentation": "Amount of receivable from sale of investment."
       }
      }
     },
     "auth_ref": [
      "r511",
      "r567",
      "r740"
     ]
    },
    "us-gaap_RecoveryOfDirectCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RecoveryOfDirectCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expense reimbursements",
        "terseLabel": "Administrative service expense reimbursements",
        "label": "Recovery of Direct Costs",
        "documentation": "Return of or reimbursements received in relation to direct costs and expenses previously paid or incurred."
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r748",
      "r759",
      "r839",
      "r873"
     ]
    },
    "cef_RegisteredClosedEndFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RegisteredClosedEndFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registered Closed-End Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r770"
     ]
    },
    "us-gaap_RelatedPartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party",
        "label": "Related and Nonrelated Parties [Domain]",
        "documentation": "Related and nonrelated parties. Related party includes, but is not limited to, affiliate, other entity for which investment is accounted for under equity method, trust for benefit of employee, principal owner, management, and member of immediate family, and other party that may be prevented from pursuing separate interests because of control, significant influence, or ownership interest."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r271",
      "r376",
      "r377",
      "r399",
      "r403",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r521",
      "r523",
      "r568"
     ]
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction",
        "label": "Related Party Transaction [Axis]",
        "documentation": "Information by type of related party transaction."
       }
      }
     },
     "auth_ref": [
      "r376",
      "r377",
      "r980"
     ]
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction",
        "label": "Related Party Transaction [Domain]",
        "documentation": "Transaction between related party."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Transaction [Line Items]",
        "label": "Related Party Transaction [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": [
      "r192",
      "r534",
      "r535",
      "r538"
     ]
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party",
        "label": "Related and Nonrelated Parties [Axis]",
        "documentation": "Information by related and nonrelated parties. Related party includes, but is not limited to, affiliate, other entity for which investment is accounted for under equity method, trust for benefit of employee, principal owner, management, and member of immediate family, and other party that may be prevented from pursuing separate interests because of control, significant influence, or ownership interest."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r271",
      "r376",
      "r377",
      "r399",
      "r403",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r521",
      "r523",
      "r568",
      "r980"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureRelatedPartyAgreementsAndTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party Agreements and Transactions",
        "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": [
      "r373",
      "r374",
      "r375",
      "r377",
      "r379",
      "r452",
      "r453",
      "r454",
      "r536",
      "r537",
      "r538",
      "r564",
      "r566"
     ]
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RepaymentsOfLongTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Repayments of Long-Term Debt, Total",
        "label": "Repayments of Long-Term Debt",
        "negatedLabel": "Payments of debt",
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r445"
     ]
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Domain]",
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution."
       }
      }
     },
     "auth_ref": [
      "r121",
      "r122",
      "r152",
      "r153",
      "r230",
      "r250",
      "r378",
      "r389",
      "r396",
      "r684",
      "r685"
     ]
    },
    "mfic_RequiredAssetsCoverageRatioPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RequiredAssetsCoverageRatioPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Required Assets Coverage Percentage",
        "terseLabel": "Required assets coverage percentage",
        "documentation": "Required assets coverage percentage."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RequiredIndebtednessRatioForCovenants": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RequiredIndebtednessRatioForCovenants",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Required indebtedness ratio for covenants.",
        "label": "Required Indebtedness Ratio for Covenants",
        "terseLabel": "Required indebtedness ratio for covenants"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RequiredMinimumPercentageOfEquityToAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RequiredMinimumPercentageOfEquityToAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Required minimum percentage of equity to assets.",
        "label": "Required Minimum Percentage of Equity to Assets",
        "terseLabel": "Required minimum percentage of equity to assets"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]",
        "terseLabel": "Restatement Determination Date:"
       }
      }
     },
     "auth_ref": [
      "r749",
      "r760",
      "r840",
      "r874"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r750",
      "r761",
      "r841",
      "r875"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Does Not Require Recovery [Text Block]",
        "terseLabel": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r757",
      "r768",
      "r848",
      "r882"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Domain]",
        "documentation": "Type of cash and cash equivalent. Cash is 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."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "us-gaap_RestrictedInvestmentsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedInvestmentsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted securities fair value",
        "label": "Restricted Investments, at Fair Value",
        "documentation": "The aggregate value of all restricted investments."
       }
      }
     },
     "auth_ref": [
      "r587",
      "r615",
      "r654",
      "r675",
      "r676"
     ]
    },
    "us-gaap_RestrictedInvestmentsPercentOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RestrictedInvestmentsPercentOfNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted securities percent of net assets",
        "label": "Restricted Investments, Percent of Net Assets",
        "documentation": "The percent of net assets of the aggregate value of all restricted investments."
       }
      }
     },
     "auth_ref": [
      "r587",
      "r615",
      "r654"
     ]
    },
    "mfic_RestrictedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RestrictedSecuritiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Securities",
        "label": "Restricted Securities [Member]",
        "documentation": "Restricted Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetailMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retail",
        "label": "Retail [Member]",
        "documentation": "Sale of product directly to consumer."
       }
      }
     },
     "auth_ref": [
      "r960"
     ]
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated under-distributed (over-distributed) earnings",
        "label": "Retained Earnings (Accumulated Deficit)",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r66",
      "r84",
      "r402",
      "r428",
      "r429",
      "r448",
      "r504",
      "r722"
     ]
    },
    "cef_ReturnAtMinusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ReturnAtMinusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_ReturnAtMinusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ReturnAtMinusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_ReturnAtPlusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ReturnAtPlusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_ReturnAtPlusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ReturnAtPlusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "cef_ReturnAtZeroPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ReturnAtZeroPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Zero [Percent]"
       }
      }
     },
     "auth_ref": [
      "r827"
     ]
    },
    "us-gaap_RevenueRecognitionInterest": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RevenueRecognitionInterest",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue Recognition, Interest [Policy Text Block]",
        "terseLabel": "Investment Valuation Process",
        "verboseLabel": "Investment Income Recognition",
        "documentation": "Disclosure of accounting policy for recognition of interest revenue. Disclosure may include the method of recognizing interest income on loan and trade receivables, the method of amortizing premiums or accreting discounts, and a statement about the policy for the treatment of related fees and costs, including the method of amortizing net deferred fees and costs."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RicIncomeDistributionRequirement": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RicIncomeDistributionRequirement",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RIC Income Distribution Requirement.",
        "label": "RIC Income Distribution Requirement",
        "terseLabel": "Investment company taxable income percentage"
       }
      }
     },
     "auth_ref": []
    },
    "cef_RightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r783"
     ]
    },
    "cef_RightsSubjectToOtherThanMajorityVoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RightsSubjectToOtherThanMajorityVoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Subject to Other than Majority Vote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r782"
     ]
    },
    "cef_RiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RiskAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Axis]"
       }
      }
     },
     "auth_ref": [
      "r823"
     ]
    },
    "cef_RiskFactorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RiskFactorsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk Factors [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r823"
     ]
    },
    "cef_RiskTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "RiskTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r823"
     ]
    },
    "mfic_RisksRelatingToTheMergersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "RisksRelatingToTheMergersMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risks relating to the mergers.",
        "label": "Risks Relating to the Mergers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r891"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r891"
     ]
    },
    "mfic_SECRule10b51RepurchasePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SECRule10b51RepurchasePlanMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "10b5-1 Repurchase Plans",
        "label": "S E C Rule10b51 Repurchase Plan [Member]",
        "documentation": "SEC rule 10b5-1 repurchase plan."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SHDOilGasLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SHDOilGasLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "SHD Oil &amp; Gas, LLC (f/k/a Spotted Hawk Development LLC)",
        "label": "S H D Oil Gas L L C [Member]",
        "documentation": "SHD Oil &amp; Gas, LLC.",
        "terseLabel": "SHD Oil &amp; Gas, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SONIAInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SONIAInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SONIA",
        "label": "S O N I A Interest Rate [Member]",
        "documentation": "SONIA Interest Rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SaleOfStockNameOfTransactionDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sale of Stock [Domain]",
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SalesAndRepaymentOfInvestmentsOnTradeDateBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SalesAndRepaymentOfInvestmentsOnTradeDateBasis",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sales and repayment of investments on trade date basis.",
        "label": "Sales and Repayment of Investments on Trade Date Basis"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SalesLoadPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SalesLoadPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Percent]"
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forecast",
        "label": "Forecast [Member]",
        "documentation": "Information reported for future period. Excludes information expected to be reported in future period for effect on historical fact."
       }
      }
     },
     "auth_ref": [
      "r273",
      "r921",
      "r933"
     ]
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Scenario",
        "label": "Scenario [Domain]",
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r170",
      "r273",
      "r914",
      "r933"
     ]
    },
    "mfic_ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Allocated Amounts to be Repurchased",
        "label": "Schedule Of Allocated Amounts To Be Repurchase Plans Table [Text Block]",
        "documentation": "Summary of allocated amounts to be repurchase plans."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]",
        "documentation": "Disclosure of information about business combination. Includes, but is not limited to, recognized asset and liability."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r37",
      "r318"
     ]
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfDebtTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Outstanding Debt Obligations",
        "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_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Computation of Earnings (Loss) Per Share",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r936"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, Name",
        "label": "Investment, Name [Axis]",
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r312",
      "r915",
      "r916",
      "r917",
      "r962",
      "r963",
      "r964",
      "r965"
     ]
    },
    "mfic_ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of foreign-denominated debt outstanding.",
        "label": "Schedule of Foreign-denominated Debt Outstanding [Table Text Block]",
        "terseLabel": "Schedule of Foreign-denominated Debt Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfInvestmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfInvestmentsLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Investments [Line Items]",
        "label": "Schedule of Investments [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": [
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r592",
      "r594",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfInvestmentsTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Investments [Table]",
        "label": "Schedule of Investments [Table]",
        "documentation": "Disclosure of information about investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r581",
      "r582",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r592",
      "r594",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r627",
      "r628",
      "r629",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658"
     ]
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed",
        "label": "Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]",
        "documentation": "Tabular disclosure of the amounts recognized as of the acquisition date for each major class of assets acquired and liabilities assumed. May include but not limited to the following: (a) acquired receivables; (b) contingencies recognized at the acquisition date; and (c) the fair value of noncontrolling interests in the acquiree."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]",
        "label": "Related Party Transaction [Table]",
        "documentation": "Disclosure of information about related party transaction."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r48",
      "r534",
      "r535",
      "r538"
     ]
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfStockByClassTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule Of Stock By Class [Table]",
        "label": "Stock, Class of Stock [Table]",
        "documentation": "Disclosure of information about stock by class. Includes, but is not limited to, common, convertible, and preferred stocks."
       }
      }
     },
     "auth_ref": [
      "r26",
      "r27",
      "r28",
      "r29",
      "r30",
      "r31",
      "r80",
      "r82",
      "r83",
      "r84",
      "r133",
      "r134",
      "r135",
      "r185",
      "r248",
      "r249",
      "r250",
      "r252",
      "r255",
      "r260",
      "r262",
      "r442",
      "r443",
      "r444",
      "r445",
      "r699",
      "r913",
      "r929"
     ]
    },
    "us-gaap_ScheduleOfTreasuryStockByClassTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ScheduleOfTreasuryStockByClassTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Repurchase Plans",
        "label": "Class of Treasury Stock [Table Text Block]",
        "documentation": "Tabular disclosure of treasury stock, including, but not limited to, average cost per share, description of share repurchase program, shares repurchased, shares held for each class of treasury stock."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r33",
      "r34",
      "r35"
     ]
    },
    "mfic_SecondLienSecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SecondLienSecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Second Lien Secured Debt",
        "label": "Second Lien Secured Debt [Member]",
        "documentation": "Second lien secured debt."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR",
        "label": "Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [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) with no additional spread over SOFR on variable-rate leg."
       }
      }
     },
     "auth_ref": [
      "r966"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "terseLabel": "Security 12b Title",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r742"
     ]
    },
    "cef_SecurityDividendsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityDividendsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Dividends [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r773"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r744"
     ]
    },
    "cef_SecurityLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityLiabilitiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liabilities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r776"
     ]
    },
    "cef_SecurityLiquidationRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityLiquidationRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liquidation Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r775"
     ]
    },
    "cef_SecurityObligationsOfOwnershipTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityObligationsOfOwnershipTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Obligations of Ownership [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r778"
     ]
    },
    "cef_SecurityPreemptiveAndOtherRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityPreemptiveAndOtherRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Preemptive and Other Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r777"
     ]
    },
    "cef_SecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r772"
     ]
    },
    "cef_SecurityVotingRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SecurityVotingRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Voting Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r774"
     ]
    },
    "mfic_SeniorSecuredFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorSecuredFacilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Second Lien Secured Debt",
        "label": "Senior Secured Facility [Member]",
        "documentation": "Senior secured facility.",
        "verboseLabel": "Senior Secured Facility"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SeniorSecuritiesAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Amount"
       }
      }
     },
     "auth_ref": [
      "r815"
     ]
    },
    "cef_SeniorSecuritiesAverageMarketValuePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesAverageMarketValuePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Average Market Value per Unit"
       }
      }
     },
     "auth_ref": [
      "r817"
     ]
    },
    "cef_SeniorSecuritiesAveragingMethodNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesAveragingMethodNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Averaging Method, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r819"
     ]
    },
    "cef_SeniorSecuritiesCvgPerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesCvgPerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Coverage per Unit"
       }
      }
     },
     "auth_ref": [
      "r816"
     ]
    },
    "cef_SeniorSecuritiesHeadingsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesHeadingsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Headings, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r820"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAnnualizedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesHighlightsAnnualizedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Annualized, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r812",
      "r818"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAuditedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesHighlightsAuditedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Audited, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r813",
      "r818"
     ]
    },
    "cef_SeniorSecuritiesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r811",
      "r818"
     ]
    },
    "cef_SeniorSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SeniorSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r814"
     ]
    },
    "mfic_SeniorUnsecuredBethesdaCloOneClassAOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorUnsecuredBethesdaCloOneClassAOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bethesda CLO 1 Class A-1",
        "label": "Senior Unsecured Bethesda Clo One Class A One [Member]",
        "documentation": "Senior unsecured bethesda clo one class a one member."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredMficBethesdaCloIllcClassAOneNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorUnsecuredMficBethesdaCloIllcClassAOneNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior unsecured MFIC Bethesda CLO ILLC class A one notes member.",
        "label": "Senior Unsecured MFIC Bethesda CLO ILLC Class A One Notes [Member]",
        "terseLabel": "MFIC Bethesda CLO I LLC Class A-1 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028 Notes",
        "label": "Senior Unsecured Notes Two Thousand Twenty Eight [Member]",
        "documentation": "Senior unsecured 2028 notes."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Unsecured Notes Two Thousand Twenty Five [Member]",
        "documentation": "Senior unsecured 2025 note.",
        "terseLabel": "2025 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentySixMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026 Notes",
        "label": "Senior Unsecured Notes Two Thousand Twenty Six [Member]",
        "documentation": "Senior unsecured 2026 notes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "All Award Types",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r274",
      "r275",
      "r276",
      "r277",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299"
     ]
    },
    "us-gaap_SharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SharePrice",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price",
        "terseLabel": "Share price",
        "documentation": "Price of a single share of a number of saleable stocks of a company."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SharePriceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SharePriceTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r829"
     ]
    },
    "cef_SharePricesNotActualTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "SharePricesNotActualTransactionsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Prices Not Actual Transactions [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r830"
     ]
    },
    "srt_ShareRepurchaseProgramAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ShareRepurchaseProgramAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share Repurchase Program",
        "label": "Share Repurchase Program [Axis]",
        "documentation": "Information by share repurchase program."
       }
      }
     },
     "auth_ref": [
      "r958"
     ]
    },
    "srt_ShareRepurchaseProgramDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "ShareRepurchaseProgramDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share Repurchase Program",
        "label": "Share Repurchase Program [Domain]",
        "documentation": "Name of share repurchase program."
       }
      }
     },
     "auth_ref": [
      "r958"
     ]
    },
    "mfic_ShareRepurchasesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ShareRepurchasesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share Repurchases",
        "label": "Share Repurchases [Policy Text Block]",
        "documentation": "Share repurchases."
       }
      }
     },
     "auth_ref": []
    },
    "cef_ShareholderTransactionExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "ShareholderTransactionExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Transaction Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r795"
     ]
    },
    "us-gaap_SharesIssuedPricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SharesIssuedPricePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock issued, price per share",
        "label": "Shares Issued, Price Per Share",
        "verboseLabel": "Share purchase price par value",
        "documentation": "Per share or per unit amount of equity securities issued."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SharesIssuedPricePerShareAdjustedForReverseStockSplits": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SharesIssuedPricePerShareAdjustedForReverseStockSplits",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares issued price per share adjusted for reverse stock split",
        "label": "Shares Issued Price Per Share Adjusted for Reverse Stock Splits",
        "documentation": "Shares issued price per share adjusted for reverse stock splits."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Accounting Policies [Line Items]",
        "label": "Significant Accounting Policies [Line Items]",
        "documentation": "Significant accounting policies."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SignificantAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SignificantAccountingPoliciesTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Accounting Policies [Table]",
        "label": "Significant Accounting Policies [Table]",
        "documentation": "Significant accounting policies."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant Accounting Policies",
        "label": "Significant Accounting Policies [Text Block]",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r149"
     ]
    },
    "mfic_SixMonthsEuriborInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SixMonthsEuriborInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6 Months EURIBOR",
        "label": "Six Months EURIBOR Interest Rate [member]",
        "documentation": "Six Months EURIBOR Interest Rate [member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SixMonthsLondonInterbankOfferedRateLIBORMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SixMonthsLondonInterbankOfferedRateLIBORMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6 Month LIBOR",
        "label": "Six Months London Interbank Offered Rate L I B O R [Member]",
        "documentation": "Six months London interbank offered rate LIBOR."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SixMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SixMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Six months secured overnight financing rate SOFR overnight index swap rate.",
        "terseLabel": "6 Month SOFR",
        "label": "Six Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SonarEntertainmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SonarEntertainmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sonar Entertainment",
        "label": "Sonar Entertainment [Member]",
        "documentation": "Sonar Entertainment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StandbyLettersOfCreditMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Standby Letters of Credit Issued and Outstanding",
        "label": "Standby Letters of Credit [Member]",
        "verboseLabel": "Standby Letters of Credit",
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r951",
      "r1024",
      "r1025"
     ]
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock",
        "documentation": "Information by the different classes of stock of the entity."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r133",
      "r134",
      "r135",
      "r151",
      "r173",
      "r174",
      "r176",
      "r178",
      "r185",
      "r186",
      "r197",
      "r218",
      "r220",
      "r221",
      "r222",
      "r225",
      "r226",
      "r248",
      "r249",
      "r252",
      "r255",
      "r262",
      "r357",
      "r442",
      "r443",
      "r444",
      "r445",
      "r460",
      "r463",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r475",
      "r503",
      "r528",
      "r560",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r913",
      "r929",
      "r935"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Components",
        "label": "Equity Components [Axis]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r64",
      "r67",
      "r68",
      "r127",
      "r139",
      "r140",
      "r141",
      "r156",
      "r157",
      "r158",
      "r160",
      "r165",
      "r167",
      "r169",
      "r184",
      "r198",
      "r199",
      "r205",
      "r263",
      "r310",
      "r311",
      "r313",
      "r314",
      "r315",
      "r317",
      "r321",
      "r322",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r337",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r370",
      "r371",
      "r372",
      "r406",
      "r425",
      "r426",
      "r427",
      "r460",
      "r560"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Line Items]",
        "label": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r156",
      "r157",
      "r158",
      "r184",
      "r371",
      "r391",
      "r433",
      "r475",
      "r492",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r503",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r512",
      "r513",
      "r514",
      "r515",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r523",
      "r531",
      "r532",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r560",
      "r732"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Scenario",
        "label": "Scenario [Axis]",
        "documentation": "Information by scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r170",
      "r273",
      "r914",
      "r918",
      "r933"
     ]
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StatementTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [Table]",
        "label": "Statement [Table]",
        "documentation": "Disclosure of information about statement of comprehensive income, income, other comprehensive income, financial position, cash flows, and shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r156",
      "r157",
      "r158",
      "r184",
      "r192",
      "r371",
      "r391",
      "r433",
      "r475",
      "r492",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r503",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r512",
      "r513",
      "r514",
      "r515",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r523",
      "r531",
      "r532",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r560",
      "r732"
     ]
    },
    "mfic_SterlingOvernightIndexAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SterlingOvernightIndexAverageMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sterling overnight index.",
        "label": "Sterling Overnight Index Average [Member]",
        "terseLabel": "Sterling Overnight Index Average",
        "verboseLabel": "SONIA"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method [Text Block]",
        "terseLabel": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r752",
      "r763",
      "r843",
      "r877"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "terseLabel": "Stock Appreciation Rights (SARs)",
        "documentation": "Right to receive cash or shares equal to appreciation of predetermined number of grantor's shares during predetermined time period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock shares issued",
        "label": "Stock Issued During Period, Shares, New Issues",
        "verboseLabel": "Shares issued during the period",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r63",
      "r64",
      "r84",
      "r442",
      "r560",
      "r665"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesReverseStockSplits": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodSharesReverseStockSplits",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stock issued, reverse stock splits",
        "label": "Stock Issued During Period, Shares, Reverse Stock Splits",
        "verboseLabel": "Number of shares, reverse stock splits",
        "documentation": "Reduction in the number of shares during the period as a result of a reverse stock split."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Aggregate offering price of shares issued",
        "label": "Stock Issued During Period, Value, New Issues",
        "terseLabel": "Net proceeds from the issuance of common stock",
        "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": [
      "r11",
      "r63",
      "r64",
      "r84",
      "r460",
      "r560",
      "r665",
      "r739"
     ]
    },
    "srt_StockRepurchaseProgramAuthorizedAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum Cost of Shares That May Be Repurchased",
        "label": "Share Repurchase Program, Authorized, Amount",
        "documentation": "Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership."
       }
      }
     },
     "auth_ref": [
      "r958"
     ]
    },
    "srt_StockRepurchaseProgramExpirationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "StockRepurchaseProgramExpirationDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Termination Date",
        "label": "Share Repurchase Program, Expiration Date",
        "documentation": "Expiration date for purchase of share under share repurchase plan, in YYYY-MM-DD format. Includes, but is not limited to, repurchase of stock and unit of ownership."
       }
      }
     },
     "auth_ref": [
      "r958"
     ]
    },
    "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Remaining Cost of Shares That May Be Repurchased",
        "label": "Share Repurchase Program, Remaining Authorized, Amount",
        "documentation": "Amount remaining authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockRepurchasedAndRetiredDuringPeriodValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchasedAndRetiredDuringPeriodValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Repurchased and Retired During Period, Value",
        "terseLabel": "Cost of Shares Repurchased",
        "documentation": "Equity impact of the value of stock that has been repurchased and retired during the period. The excess of the purchase price over par value can be charged against retained earnings (once the excess is fully allocated to additional paid in capital)."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r63",
      "r64",
      "r84"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchasedDuringPeriodShares",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Repurchased During Period, Shares",
        "terseLabel": "Shares repurchased during the period",
        "negatedLabel": "Shares repurchased during the period",
        "documentation": "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r63",
      "r64",
      "r84",
      "r445",
      "r560",
      "r667"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockRepurchasedDuringPeriodValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase of common stock",
        "label": "Stock Repurchased During Period, Value",
        "negatedLabel": "Repurchase of common stock",
        "documentation": "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r63",
      "r64",
      "r84",
      "r460",
      "r560",
      "r667",
      "r739"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Assets",
        "label": "Equity, Attributable to Parent [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stockholders' Equity",
        "label": "Equity [Text Block]",
        "documentation": "The entire disclosure for equity."
       }
      }
     },
     "auth_ref": [
      "r81",
      "r150",
      "r247",
      "r249",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r261",
      "r263",
      "r336",
      "r562",
      "r565",
      "r671"
     ]
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reverse stock split, conversion ratio",
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio",
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one."
       }
      }
     },
     "auth_ref": [
      "r85"
     ]
    },
    "us-gaap_StockholdersEquityPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityPeriodIncreaseDecrease",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net increase (decrease) in net assets during the period",
        "label": "Stockholders' Equity, Period Increase (Decrease)",
        "totalLabel": "Stockholders' Equity, Period Increase (Decrease), Total",
        "documentation": "The increase (decrease) in stockholders' equity during the period."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r84",
      "r561",
      "r668",
      "r739",
      "r1026"
     ]
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retroactive Adjustments for Common Stock Reverse Split",
        "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": [
      "r8",
      "r563"
     ]
    },
    "us-gaap_StockholdersEquityReverseStockSplit": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "StockholdersEquityReverseStockSplit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reverse stock split, description",
        "label": "Stockholders' Equity, Reverse Stock Split",
        "documentation": "Description of the reverse stock split arrangement. Also provide the retroactive effect given by the reverse split that occurs after the balance sheet date but before the release of financial statements."
       }
      }
     },
     "auth_ref": [
      "r85"
     ]
    },
    "mfic_StructuredProductsAndOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "StructuredProductsAndOtherMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured Products And Other",
        "label": "Structured Products And Other [Member]",
        "documentation": "Structured products and other."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_StructuredProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "StructuredProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured Products",
        "label": "Structured Products [Member]",
        "documentation": "Structured products."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SubServicingAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SubServicingAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management services annual fee",
        "label": "Sub-servicing Agreement [Member]",
        "documentation": "Sub-servicing agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubordinatedDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubordinatedDebt",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated Notes",
        "label": "Subordinated Debt",
        "periodEndLabel": "Subordinated Debt, Ending Balance",
        "periodStartLabel": "Subordinated Debt, Beginning Balance",
        "totalLabel": "Subordinated Debt, Total",
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of subordinated debt (with initial maturities beyond one year or beyond the operating cycle if longer). Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r53",
      "r97",
      "r990"
     ]
    },
    "us-gaap_SubsequentEventLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event [Line Items]",
        "label": "Subsequent Event [Line Items]",
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event."
       }
      }
     },
     "auth_ref": [
      "r366",
      "r381"
     ]
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Events",
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r366",
      "r381"
     ]
    },
    "us-gaap_SubsequentEventTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Event [Table]",
        "label": "Subsequent Event [Table]",
        "documentation": "Disclosure of information about significant event or transaction occurring between statement of financial position date and date when financial statements were issued."
       }
      }
     },
     "auth_ref": [
      "r366",
      "r381"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Axis]",
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r366",
      "r381"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Domain]",
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r366",
      "r381"
     ]
    },
    "us-gaap_SubsequentEventsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsequentEventsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Events",
        "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": [
      "r380",
      "r382"
     ]
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SubsidiarySaleOfStockAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sale of Stock [Axis]",
        "documentation": "Information by type of sale of the entity's stock."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of average and maximum debt outstanding, interest and debt issuance cost.",
        "label": "Summary of Average and Maximum Debt Outstanding, Interest and Debt Issuance Cost [Table Text Block]",
        "terseLabel": "Summary of Average and Maximum Debt Outstanding, Interest and Debt Issuance Cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfSecuredAndUnsecuredNotesIssuedTabletextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SummaryOfSecuredAndUnsecuredNotesIssuedTabletextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Secured and Unsecured Notes Issued",
        "label": "Summary Of Secured And Unsecured Notes Issued [TableText Block]",
        "documentation": "Summary of secured and unsecured notes issued table text block."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfUnauditedSummarizedFinancialInformationOfSubsidiaryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SummaryOfUnauditedSummarizedFinancialInformationOfSubsidiaryTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of unaudited summarized financial information of subsidiary.",
        "label": "Summary of Unaudited Summarized Financial Information of Subsidiary [Table Text Block]",
        "terseLabel": "Summary of Unaudited Summarized Financial Information of Subsidiary"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfUnfundedCommitmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "SummaryOfUnfundedCommitmentsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Unfunded Commitments",
        "label": "Summary Of Unfunded Commitments [Table Text Block]",
        "documentation": "Summary of unfunded commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Disclosure of Cash Flow Information",
        "label": "Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List [Table Text Block]",
        "terseLabel": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r871"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TaxBasisOfInvestmentsCostForIncomeTaxPurposes",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate cost of federal income tax",
        "label": "Investment, Tax Basis, Cost",
        "documentation": "Amount of cost of investment for federal income tax purpose."
       }
      }
     },
     "auth_ref": [
      "r441"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Tax Basis, Unrealized Gain",
        "terseLabel": "Aggregate gross unrealized gain of federal income tax",
        "documentation": "Amount of cumulative increase in investment from unrealized gain when value exceeds cost for federal income tax purpose."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TaxBasisOfInvestmentsGrossUnrealizedDepreciation",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Tax Basis, Unrealized Loss",
        "terseLabel": "Aggregate gross unrealized loss of federal income tax",
        "documentation": "Amount of cumulative decrease in investment from unrealized loss when cost for federal income tax purpose exceeds value."
       }
      }
     },
     "auth_ref": [
      "r439"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Tax Basis of Investments, Unrealized Appreciation (Depreciation), Net, Total",
        "label": "Investment, Tax Basis, Unrealized Gain (Loss)",
        "terseLabel": "Aggregate net unrealized loss of federal income tax",
        "documentation": "Amount of cumulative increase (decrease) in investment from unrealized gain (loss) when value exceeds (is less than) cost for federal income tax purpose."
       }
      }
     },
     "auth_ref": [
      "r440"
     ]
    },
    "mfic_TaxBasisOfNetUnrealizedLossForIncomeTaxPurposes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TaxBasisOfNetUnrealizedLossForIncomeTaxPurposes",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate net unrealized loss of federal income tax",
        "label": "Tax Basis Of Net Unrealized Loss For Income Tax Purposes",
        "documentation": "Tax basis of net unrealized loss for income tax purposes."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TelecommunicationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TelecommunicationsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Telecommunications",
        "label": "Telecommunications [Member]",
        "documentation": "Telecommunications."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeMonthsEuriborInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ThreeMonthsEuriborInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3 month EURIBOR",
        "label": "Three Months EURIBOR Interest Rate [Member]",
        "documentation": "Three Months EURIBOR Interest Rate"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ThreeMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Three months secured overnight financing rate SOFR overnight index swap rate.",
        "terseLabel": "3 Month SOFR",
        "label": "Three Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreesMonthsLondonInterbankOfferedRateLIBORMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ThreesMonthsLondonInterbankOfferedRateLIBORMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3 Month LIBOR",
        "label": "Threes Months London Interbank Offered Rate L I B O R [Member]",
        "documentation": "Three months London interbank offered rate LIBOR."
       }
      }
     },
     "auth_ref": []
    },
    "cef_TotalAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "TotalAnnualExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r808"
     ]
    },
    "mfic_TotalCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TotalCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Commitments",
        "label": "Total Commitments [Member]",
        "documentation": "Total commitments."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount",
        "terseLabel": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r863"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group [Text Block]",
        "terseLabel": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r870"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r890"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]",
        "terseLabel": "Trading Arrangements, by Individual"
       }
      }
     },
     "auth_ref": [
      "r892"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TransportationCargoDistributionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TransportationCargoDistributionsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transportation - Cargo, Distribution",
        "label": "Transportation Cargo Distributions [Member]",
        "documentation": "Transportation - cargo, distributions."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r893"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r894"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Expiration Date",
        "terseLabel": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r894"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r892"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r892"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Securities Aggregate Available Amount",
        "terseLabel": "Aggregate Available"
       }
      }
     },
     "auth_ref": [
      "r895"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r893"
     ]
    },
    "mfic_TreaceMedicalConceptsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TreaceMedicalConceptsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Treace Medical Concepts, Inc.",
        "label": "Treace Medical Concepts Inc [Member]",
        "terseLabel": "Treace Medical Concepts Inc"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TreasuryStockAcquiredAverageCostPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockAcquiredAverageCostPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted-average price per share",
        "label": "Shares Acquired, Average Cost Per Share",
        "documentation": "Total cost of shares repurchased divided by the total number of shares repurchased."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_TreasuryStockCommonValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockCommonValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Amount Allocated to 10b5-1 Repurchase Plans",
        "label": "Treasury Stock, Common, Value",
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r35",
      "r67"
     ]
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockSharesAcquired",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Shares repurchased",
        "label": "Treasury Stock, Shares, Acquired",
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r64",
      "r84"
     ]
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost of Shares Repurchased",
        "label": "Treasury Stock, Value, Acquired, Cost Method",
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r32",
      "r84"
     ]
    },
    "mfic_TreasuryStockValueAcquiredCostMethodIncludingCommissions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TreasuryStockValueAcquiredCostMethodIncludingCommissions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Treasury stock value acquired cost method including commissions.",
        "label": "Treasury Stock Value Acquired Cost Method Including Commissions",
        "terseLabel": "Cost of Shares Repurchased inclusive commissions"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TwelveMonthsLondonInterbankOfferedRateLIBORMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TwelveMonthsLondonInterbankOfferedRateLIBORMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "12 Month LIBOR",
        "label": "Twelve Months London Interbank Offered Rate L I B O R [Member]",
        "documentation": "Twelve months London interbank offered rate LIBOR."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TwelveMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TwelveMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Twelve months secured overnight financing rate sofr overnight index swap rate.",
        "label": "Twelve Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]",
        "terseLabel": "12 Month SOFR"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TwoThousandTwentyThreeDebtSecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "TwoThousandTwentyThreeDebtSecuritizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand twenty three debt securitization.",
        "label": "Two Thousand Twenty Three Debt Securitization [Member]",
        "terseLabel": "2023 Debt Securitization"
       }
      }
     },
     "auth_ref": []
    },
    "cef_UnderwritersCompensationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "UnderwritersCompensationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underwriters Compensation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r804"
     ]
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change, Percent",
        "terseLabel": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r889"
     ]
    },
    "mfic_UnfundedDelayedDrawLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UnfundedDelayedDrawLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unfunded Delayed Draw Loan Commitments",
        "terseLabel": "Unfunded Delayed Draw Loan Commitments (Including Commitments with Performance thresholds Not Met)",
        "label": "Unfunded Delayed Draw Loan Commitments [Member]",
        "documentation": "Unfunded delayed draw loan commitments."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnfundedRevolverCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UnfundedRevolverCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unfunded Revolver Commitments",
        "label": "Unfunded Revolver Commitments [Member]",
        "documentation": "Unfunded revolver commitments."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnfundedRevolverObligationsAndBridgeLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UnfundedRevolverObligationsAndBridgeLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unfunded Revolver Obligations and Bridge Loan Commitments",
        "label": "Unfunded Revolver Obligations And Bridge Loan Commitments [Member]",
        "documentation": "Unfunded revolver obligations and bridge loan commitments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net change in unrealized gains (losses)",
        "negatedLabel": "Net change in unrealized (gains) losses",
        "terseLabel": "Net change in unrealized gains (losses)",
        "label": "Unrealized Gain (Loss), Investment, Derivative, and Foreign Currency Transaction Price Change, Operating, after Tax",
        "documentation": "Amount, after tax, of unrealized gain (loss) on investment, derivative, and foreign currency transaction on investment and derivative from change in market price, classified as operating. Investment includes, but is not limited to, debt and equity securities, security sold short, real estate, and commodity."
       }
      }
     },
     "auth_ref": [
      "r458",
      "r555",
      "r674",
      "r1043"
     ]
    },
    "us-gaap_UnrealizedGainLossOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrealizedGainLossOnInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net change in unrealized (gains) losses",
        "terseLabel": "Net change in unrealized gains (losses)",
        "label": "Unrealized Gain (Loss) on Investments",
        "totalLabel": "Net change in unrealized gains (losses)",
        "documentation": "Amount of unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "mfic_UnrealizedGainLossesOnForeignDenominatedDebtTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UnrealizedGainLossesOnForeignDenominatedDebtTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized gain losses on foreign denominated debt transactions.",
        "label": "Unrealized Gain Losses on Foreign Denominated Debt Transactions",
        "terseLabel": "Unrealized Gain/(Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrecognizedTaxBenefits",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Uncertain tax positions",
        "label": "Unrecognized Tax Benefits",
        "periodStartLabel": "Unrecognized Tax Benefits, Beginning Balance",
        "periodEndLabel": "Unrecognized Tax Benefits, Ending Balance",
        "documentation": "Amount of unrecognized tax benefits."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r305",
      "r707"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest and penalties accrued",
        "label": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued",
        "totalLabel": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued, Total",
        "documentation": "Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return."
       }
      }
     },
     "auth_ref": [
      "r304",
      "r707"
     ]
    },
    "us-gaap_UnsecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UnsecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsecured Debt",
        "label": "Unsecured Debt [Member]",
        "documentation": "Debt obligation not collateralized by pledge of, mortgage of or other lien on the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnsuccessfulInOriginatingLoansRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UnsuccessfulInOriginatingLoansRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsuccessful in Originating Loans Risk.",
        "label": "Unsuccessful in Originating Loans Risk [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Use of Estimates",
        "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": [
      "r23",
      "r24",
      "r25",
      "r104",
      "r105",
      "r106",
      "r107"
     ]
    },
    "mfic_UtilitiesElectricMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "UtilitiesElectricMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Utilities - Electric",
        "label": "Utilities Electric [Member]",
        "documentation": "Utilities - Electric."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationOfOtherFinancialAssetsAndFinancialLiabilitiesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationOfOtherFinancialAssetsAndFinancialLiabilitiesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation of Other Financial Assets and Financial Liabilities",
        "label": "Valuation Of Other Financial Assets And Financial Liabilities Policy [Policy Text Block]",
        "documentation": "Valuation of other financial assets and financial liabilities, policy."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique",
        "label": "Valuation Approach and Technique [Axis]",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r344",
      "r714",
      "r972"
     ]
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discounted Cash Flow",
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "documentation": "Valuation technique calculating present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r714",
      "r970",
      "r971",
      "r972"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Valuation Approach and Technique",
        "label": "Valuation Approach and Technique [Domain]",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r343",
      "r344",
      "r714",
      "r972"
     ]
    },
    "mfic_ValuationTechniqueEstimatedProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueEstimatedProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated Proceeds",
        "label": "Valuation Technique Estimated Proceeds [Member]",
        "documentation": "Valuation technique estimated proceeds."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueMarketComparableTechniqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueMarketComparableTechniqueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Market Comparable Technique",
        "label": "Valuation Technique Market Comparable Technique [Member]",
        "documentation": "Valuation technique market comparable technique."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueOptionPricingModelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ValuationTechniqueOptionPricingModelMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Option Pricing Model",
        "label": "Valuation Technique, Option Pricing Model [Member]",
        "documentation": "Valuation technique calculating price of option."
       }
      }
     },
     "auth_ref": [
      "r714",
      "r970",
      "r971",
      "r972"
     ]
    },
    "mfic_ValuationTechniqueRecentTransactionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueRecentTransactionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recent Transaction",
        "label": "Valuation Technique Recent Transaction [Member]",
        "documentation": "Valuation technique recent transaction ."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueRecoveryAnalysisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueRecoveryAnalysisMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recovery Analysis",
        "label": "Valuation Technique Recovery Analysis [Member]",
        "documentation": "Valuation technique recovery analysis."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueRecoveryAnalysisOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueRecoveryAnalysisOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recovery Analysis",
        "label": "Valuation Technique Recovery Analysis One [Member]",
        "documentation": "Valuation technique recovery analysis one."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueResidualValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueResidualValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Residual Value",
        "label": "Valuation Technique Residual Value [Member]",
        "documentation": "Valuation technique residual value."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueSaleProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueSaleProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale Proceeds",
        "label": "Valuation Technique Sale Proceeds [Member]",
        "documentation": "Valuation technique sale proceeds."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueYieldAnalysisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "ValuationTechniqueYieldAnalysisMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Yield Analysis",
        "label": "Valuation Technique Yield Analysis [Member]",
        "documentation": "Valuation technique yield analysis."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate",
        "label": "Variable Rate [Axis]",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfSecuredAndUnsecuredNotesIssuedDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate",
        "label": "Variable Rate [Domain]",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member]",
        "terseLabel": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r859"
     ]
    },
    "cef_WaiversAndReimbursementsOfFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "WaiversAndReimbursementsOfFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Waivers and Reimbursements of Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r809"
     ]
    },
    "us-gaap_WarrantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WarrantMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrant [Member]",
        "terseLabel": "Warrants - Warrants",
        "documentation": "Security that gives the holder the right to purchase shares of stock in accordance with the terms of the instrument, usually upon payment of a specified amount."
       }
      }
     },
     "auth_ref": [
      "r729",
      "r730",
      "r733",
      "r734",
      "r735",
      "r736"
     ]
    },
    "cef_WarrantsOrRightsCalledAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "WarrantsOrRightsCalledAmount",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Amount"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_WarrantsOrRightsCalledPeriodDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "WarrantsOrRightsCalledPeriodDate",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Period [Date]"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_WarrantsOrRightsCalledTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "WarrantsOrRightsCalledTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Title"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "cef_WarrantsOrRightsExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2024",
     "localname": "WarrantsOrRightsExercisePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r789"
     ]
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2024",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted Average",
        "label": "Weighted Average [Member]",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r345",
      "r388",
      "r678",
      "r679",
      "r714",
      "r983",
      "r985",
      "r988"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average shares outstanding",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r178"
     ]
    },
    "mfic_WholesaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20240930",
     "localname": "WholesaleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20240930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wholesale",
        "label": "Wholesale [Member]",
        "documentation": "Wholesale."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member]",
        "terseLabel": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r857"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "15",
   "Paragraph": "12",
   "Subparagraph": "(f)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481410/810-10-15-12"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "15",
   "Paragraph": "12",
   "Subparagraph": "(f)(2)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481410/810-10-15-12"
  },
  "r2": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "7",
   "SubTopic": "30",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479637/805-30-30-7"
  },
  "r3": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "30",
   "Paragraph": "8",
   "SubTopic": "30",
   "Topic": "805",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479637/805-30-30-8"
  },
  "r4": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477401/830-230-45-1"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-14"
  },
  "r6": {
   "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"
  },
  "r7": {
   "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"
  },
  "r8": {
   "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"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479910/205-30-50-1"
  },
  "r10": {
   "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"
  },
  "r11": {
   "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"
  },
  "r12": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-2"
  },
  "r13": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r14": {
   "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"
  },
  "r15": {
   "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"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-14"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r18": {
   "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"
  },
  "r19": {
   "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"
  },
  "r20": {
   "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"
  },
  "r21": {
   "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"
  },
  "r22": {
   "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"
  },
  "r23": {
   "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"
  },
  "r24": {
   "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"
  },
  "r25": {
   "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"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481142/505-10-45-2"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-10"
  },
  "r28": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-3"
  },
  "r29": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-4"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-5"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-8"
  },
  "r32": {
   "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"
  },
  "r33": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481520/505-30-50-2"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481520/505-30-50-3"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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"
  },
  "r37": {
   "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"
  },
  "r38": {
   "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"
  },
  "r39": {
   "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"
  },
  "r40": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r43": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r44": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-1"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-3"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205/tableOfContent"
  },
  "r52": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r53": {
   "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"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r56": {
   "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(22)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r57": {
   "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(22)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r58": {
   "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(22)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r63": {
   "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"
  },
  "r64": {
   "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"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r66": {
   "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"
  },
  "r67": {
   "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"
  },
  "r68": {
   "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"
  },
  "r69": {
   "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(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r70": {
   "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"
  },
  "r71": {
   "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"
  },
  "r72": {
   "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(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-15"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/235/tableOfContent"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/440/tableOfContent"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/505/tableOfContent"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-6"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-7"
  },
  "r84": {
   "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"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SAB Topic 4.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480008/505-10-S99-4"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/805/tableOfContent"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r91": {
   "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"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/810/tableOfContent"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r98": {
   "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(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478546/942-210-S99-1"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "SubTopic": "220",
   "Topic": "946",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-5"
  },
  "r104": {
   "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"
  },
  "r105": {
   "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"
  },
  "r106": {
   "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"
  },
  "r107": {
   "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"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12A",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column A",
   "Subparagraph": "(a)",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column A",
   "Subparagraph": "(b)",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "14",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column A",
   "Publisher": "SEC"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "4",
   "Subsection": "08",
   "Paragraph": "m",
   "Subparagraph": "(1)(iii)",
   "Publisher": "SEC"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "4",
   "Subsection": "08",
   "Paragraph": "m",
   "Subparagraph": "(2)(ii)",
   "Publisher": "SEC"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "L",
   "Publisher": "SEC"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "M",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 4",
   "Publisher": "SEC"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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"
  },
  "r129": {
   "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"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "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(22)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r133": {
   "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(27)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r134": {
   "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(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r135": {
   "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(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "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"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-2"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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(e)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r153": {
   "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)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r154": {
   "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(n))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r155": {
   "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"
  },
  "r156": {
   "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"
  },
  "r157": {
   "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"
  },
  "r158": {
   "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"
  },
  "r159": {
   "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"
  },
  "r160": {
   "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"
  },
  "r161": {
   "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"
  },
  "r162": {
   "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"
  },
  "r163": {
   "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"
  },
  "r164": {
   "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"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r166": {
   "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"
  },
  "r167": {
   "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"
  },
  "r168": {
   "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"
  },
  "r169": {
   "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"
  },
  "r170": {
   "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"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/260/tableOfContent"
  },
  "r172": {
   "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"
  },
  "r173": {
   "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"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-3"
  },
  "r175": {
   "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"
  },
  "r176": {
   "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"
  },
  "r177": {
   "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"
  },
  "r178": {
   "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"
  },
  "r179": {
   "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"
  },
  "r180": {
   "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"
  },
  "r181": {
   "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"
  },
  "r182": {
   "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"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "270",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482964/270-10-50-1"
  },
  "r184": {
   "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"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482987/272-10-50-1"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482987/272-10-50-3"
  },
  "r187": {
   "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"
  },
  "r188": {
   "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"
  },
  "r189": {
   "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"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(ee)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-32"
  },
  "r191": {
   "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"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481990/310-10-45-13"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r194": {
   "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"
  },
  "r195": {
   "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"
  },
  "r196": {
   "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"
  },
  "r197": {
   "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"
  },
  "r198": {
   "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"
  },
  "r199": {
   "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"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482665/350-30-50-1"
  },
  "r204": {
   "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"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476166/350-60-65-1"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482099/360-10-50-3"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482017/420-10-50-1"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482648/440-10-50-4"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482648/440-10-50-4"
  },
  "r211": {
   "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"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "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"
  },
  "r215": {
   "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"
  },
  "r216": {
   "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"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r218": {
   "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"
  },
  "r219": {
   "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"
  },
  "r220": {
   "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"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1B"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1D"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1D"
  },
  "r235": {
   "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"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1E"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-1F"
  },
  "r243": {
   "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"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-4"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-4"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481139/470-20-50-4"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-14"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-14"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-14"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-16"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-18"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-18"
  },
  "r260": {
   "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"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-18"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-2"
  },
  "r263": {
   "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"
  },
  "r264": {
   "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"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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"
  },
  "r270": {
   "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"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-1"
  },
  "r272": {
   "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"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480576/715-80-50-5"
  },
  "r274": {
   "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"
  },
  "r275": {
   "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"
  },
  "r276": {
   "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"
  },
  "r277": {
   "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"
  },
  "r278": {
   "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "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"
  },
  "r282": {
   "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "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"
  },
  "r288": {
   "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"
  },
  "r289": {
   "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"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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"
  },
  "r292": {
   "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"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "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"
  },
  "r299": {
   "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"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "720",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483359/720-20-50-1"
  },
  "r301": {
   "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"
  },
  "r302": {
   "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"
  },
  "r303": {
   "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"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482685/740-10-50-15"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "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"
  },
  "r309": {
   "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"
  },
  "r310": {
   "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"
  },
  "r311": {
   "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"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478758/740-323-25-1"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r318": {
   "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"
  },
  "r319": {
   "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"
  },
  "r320": {
   "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"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481231/810-10-45-19"
  },
  "r324": {
   "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"
  },
  "r325": {
   "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"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481203/810-10-50-1A"
  },
  "r328": {
   "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"
  },
  "r329": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "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"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480237/815-40-50-6"
  },
  "r337": {
   "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"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482134/820-10-35-54B"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r349": {
   "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"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r353": {
   "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"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-6A"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/830/tableOfContent"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477401/830-230-45-1"
  },
  "r360": {
   "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"
  },
  "r361": {
   "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"
  },
  "r362": {
   "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"
  },
  "r363": {
   "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"
  },
  "r364": {
   "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"
  },
  "r365": {
   "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"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481674/830-30-50-2"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-1A"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482900/835-30-50-1"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479832/842-10-65-8"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "12A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479165/842-20-35-12A"
  },
  "r372": {
   "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"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/850/tableOfContent"
  },
  "r374": {
   "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"
  },
  "r375": {
   "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"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-1"
  },
  "r377": {
   "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"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-3"
  },
  "r379": {
   "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"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/855/tableOfContent"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483399/855-10-50-2"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "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"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-7"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481420/860-30-50-9"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(27))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r393": {
   "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(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-1"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "470",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477734/942-470-50-3"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r399": {
   "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)(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r400": {
   "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)(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r403": {
   "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)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r407": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r408": {
   "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)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r409": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r411": {
   "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/2147477250/944-220-S99-1"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477250/944-220-S99-1"
  },
  "r413": {
   "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/2147477250/944-220-S99-1"
  },
  "r414": {
   "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/2147477965/944-235-S99-2"
  },
  "r415": {
   "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/2147477965/944-235-S99-2"
  },
  "r416": {
   "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/2147477965/944-235-S99-2"
  },
  "r417": {
   "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/2147477965/944-235-S99-2"
  },
  "r418": {
   "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/2147477965/944-235-S99-2"
  },
  "r419": {
   "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/2147477965/944-235-S99-2"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4E"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r423": {
   "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"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-9"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.W.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479583/944-40-S99-1"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-1"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480424/946-10-50-2"
  },
  "r433": {
   "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"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(f)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r439": {
   "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)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r440": {
   "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)(2)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r441": {
   "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)(2)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479886/946-10-S99-3"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481019/946-20-45-5"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-10"
  },
  "r448": {
   "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"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-15"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-15"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-16"
  },
  "r452": {
   "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"
  },
  "r453": {
   "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"
  },
  "r454": {
   "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"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-7"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-8"
  },
  "r457": {
   "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"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-3"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-3"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-4"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-1"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-18"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-2"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-24"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-27"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477796/946-210-45-21"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477796/946-210-45-4"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r478": {
   "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/2147478795/946-210-50-1"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r480": {
   "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/2147478795/946-210-50-1"
  },
  "r481": {
   "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/2147478795/946-210-50-1"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-12"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-2"
  },
  "r484": {
   "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/2147478795/946-210-50-6"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r487": {
   "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/2147478795/946-210-50-6"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r493": {
   "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(10)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r494": {
   "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/2147479170/946-210-S99-1"
  },
  "r495": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r502": {
   "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(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r511": {
   "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)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-2"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-2"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-7"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478297/946-220-50-3"
  },
  "r529": {
   "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/2147479134/946-220-S99-1"
  },
  "r530": {
   "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/2147479134/946-220-S99-1"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r533": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r534": {
   "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)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r535": {
   "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)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r536": {
   "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/2147479134/946-220-S99-1"
  },
  "r537": {
   "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/2147479134/946-220-S99-1"
  },
  "r538": {
   "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/2147479134/946-220-S99-1"
  },
  "r539": {
   "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/2147479134/946-220-S99-1"
  },
  "r540": {
   "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(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r554": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r555": {
   "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)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r557": {
   "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(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r558": {
   "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(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r559": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r561": {
   "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(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477968/946-235-50-2"
  },
  "r563": {
   "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/2147477968/946-235-50-2"
  },
  "r564": {
   "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/2147477968/946-235-50-2"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477968/946-235-50-2"
  },
  "r566": {
   "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/2147477968/946-235-50-2"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/946-320/tableOfContent"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r571": {
   "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/2147477271/946-320-S99-1"
  },
  "r572": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r573": {
   "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)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r575": {
   "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 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r576": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r577": {
   "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 B)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r578": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r579": {
   "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 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r580": {
   "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/2147477271/946-320-S99-1"
  },
  "r581": {
   "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 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r582": {
   "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 8)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r583": {
   "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 8)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r584": {
   "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 8)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r585": {
   "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 8)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r586": {
   "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 8)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r587": {
   "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 8)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r588": {
   "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 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r589": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r590": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "12",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-12"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-19"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-19"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-19"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r596": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r597": {
   "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/2147477271/946-320-S99-2"
  },
  "r598": {
   "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 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r599": {
   "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 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r600": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r603": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r604": {
   "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 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r605": {
   "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/2147477271/946-320-S99-3"
  },
  "r606": {
   "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 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r607": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r608": {
   "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 B)(Footnote 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r609": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r610": {
   "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 11)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r611": {
   "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 11)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r612": {
   "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 11)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r613": {
   "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 11)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r614": {
   "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 11)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r615": {
   "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 11)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r616": {
   "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 11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r617": {
   "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 12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r618": {
   "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 13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r619": {
   "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/2147477271/946-320-S99-3"
  },
  "r620": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r621": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r622": {
   "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 D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r626": {
   "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 A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5D"
  },
  "r627": {
   "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 1)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r628": {
   "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 1)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r629": {
   "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 1)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r630": {
   "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 1)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r631": {
   "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 1)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r632": {
   "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 1)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r633": {
   "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 1)(b)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r634": {
   "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 1)(b)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r635": {
   "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 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r637": {
   "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 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r638": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r639": {
   "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 B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r640": {
   "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 C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r641": {
   "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 C)(Footnote 6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r642": {
   "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 C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D)(Footnote 6)(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r646": {
   "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/2147477271/946-320-S99-6"
  },
  "r647": {
   "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/2147477271/946-320-S99-6"
  },
  "r648": {
   "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/2147477271/946-320-S99-6"
  },
  "r649": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r650": {
   "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/2147477271/946-320-S99-6"
  },
  "r651": {
   "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)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r652": {
   "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)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r653": {
   "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 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r654": {
   "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 5)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r655": {
   "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/2147477271/946-320-S99-6"
  },
  "r656": {
   "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 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r657": {
   "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 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r658": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r659": {
   "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/2147477271/946-320-S99-7"
  },
  "r660": {
   "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/2147477271/946-320-S99-7"
  },
  "r661": {
   "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/2147477271/946-320-S99-7"
  },
  "r662": {
   "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/2147477271/946-320-S99-7"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "405",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478790/946-405-45-1"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-1"
  },
  "r665": {
   "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/2147478448/946-505-50-2"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-2"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-5"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-5"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478448/946-505-50-6"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "36",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-36"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "37",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-37"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "37",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477346/946-830-45-37"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477220/954-210-45-4"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478600/954-210-50-2"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "440",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478522/954-440-50-1"
  },
  "r678": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "976",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477332/976-310-50-1"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "978",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479230/978-310-50-1"
  },
  "r680": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "985",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481283/985-20-50-2"
  },
  "r681": {
   "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"
  },
  "r682": {
   "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"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-16"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-21"
  },
  "r685": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-22"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483426/235-10-50-4"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "48",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-48"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "49",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-49"
  },
  "r691": {
   "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"
  },
  "r692": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r693": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482395/460-10-55-27"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69E"
  },
  "r698": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481568/470-20-55-69F"
  },
  "r699": {
   "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"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "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"
  },
  "r704": {
   "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"
  },
  "r705": {
   "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"
  },
  "r706": {
   "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"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "217",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482663/740-10-55-217"
  },
  "r708": {
   "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"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4J"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481175/810-10-55-4K"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "101",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-101"
  },
  "r713": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "102",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-102"
  },
  "r714": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "103",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-103"
  },
  "r715": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r716": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "107",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-107"
  },
  "r721": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482949/835-30-55-8"
  },
  "r722": {
   "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"
  },
  "r723": {
   "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"
  },
  "r724": {
   "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"
  },
  "r725": {
   "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"
  },
  "r726": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-9C"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "9E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480046/944-40-55-9E"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480078/944-80-55-18"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r731": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477439/946-210-55-1"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r735": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r737": {
   "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/2147477346/946-830-45-39"
  },
  "r738": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-10"
  },
  "r739": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-11"
  },
  "r740": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479168/946-830-55-12"
  },
  "r741": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r742": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r743": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r744": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r745": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r746": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r747": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r748": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r749": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r750": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r751": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r753": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r754": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r755": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r756": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r757": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r760": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r761": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r762": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r763": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r764": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r765": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r766": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r768": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form F-3"
  },
  "r770": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2"
  },
  "r771": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10"
  },
  "r772": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r774": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r775": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r776": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "4"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "5"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "6"
  },
  "r779": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "Instruction 2"
  },
  "r780": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r781": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r782": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "c"
  },
  "r783": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "d"
  },
  "r784": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2"
  },
  "r785": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "a"
  },
  "r786": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "b"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "c"
  },
  "r788": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "e"
  },
  "r789": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "3"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5"
  },
  "r791": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "1"
  },
  "r792": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "2"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "3"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "4"
  },
  "r795": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1"
  },
  "r796": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 1"
  },
  "r797": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a"
  },
  "r798": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a, g, h"
  },
  "r799": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "f"
  },
  "r800": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "g"
  },
  "r801": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "i"
  },
  "r802": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 11"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 4"
  },
  "r804": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 5"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 6"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "a"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "b"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 9"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 2"
  },
  "r812": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 3"
  },
  "r813": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "2"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "3",
   "Subparagraph": "Instruction 2"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "5"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 1"
  },
  "r819": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 4"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 5"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "2",
   "Paragraph": "b, d"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "a"
  },
  "r824": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "3"
  },
  "r828": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "4"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 2"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 3"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 4"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instructions 4, 5"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "c"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "e"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-3"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-4"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-6"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r845": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r847": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r848": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r849": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form S-3"
  },
  "r850": {
   "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"
  },
  "r851": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Investment Company Act",
   "Number": "270"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r853": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r855": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "i"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iii"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iv"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "v"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "vi"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r864": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r865": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r866": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r867": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r869": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r870": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r871": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r872": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r873": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r874": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r875": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r882": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r883": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r884": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r894": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r896": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Number": "229",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "A",
   "Number": "229"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Number": "229"
  },
  "r900": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "i",
   "Number": "229"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r902": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r903": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r904": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "413",
   "Subsection": "b"
  },
  "r905": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "b"
  },
  "r906": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "c"
  },
  "r907": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "d"
  },
  "r908": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "e"
  },
  "r909": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "a"
  },
  "r910": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "b"
  },
  "r911": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r912": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Section": "8",
   "Subsection": "c"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483014/272-10-45-3"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483076/450-20-50-10"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r916": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-2"
  },
  "r918": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483399/855-10-50-3"
  },
  "r919": {
   "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"
  },
  "r920": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Investment Company Act of 1940",
   "Section": "61",
   "Paragraph": "a",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r921": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "11",
   "Subsection": "03",
   "Publisher": "SEC"
  },
  "r922": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r923": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r924": {
   "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"
  },
  "r925": {
   "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"
  },
  "r926": {
   "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(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483621/220-10-S99-2"
  },
  "r927": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482740/230-10-45-14"
  },
  "r928": {
   "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"
  },
  "r929": {
   "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(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r930": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r931": {
   "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"
  },
  "r932": {
   "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"
  },
  "r933": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r934": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-6"
  },
  "r935": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "55",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482689/260-10-45-55"
  },
  "r936": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482662/260-10-50-1"
  },
  "r937": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r938": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-2"
  },
  "r939": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481800/320-10-50-5"
  },
  "r940": {
   "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"
  },
  "r941": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/405-30/tableOfContent"
  },
  "r942": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r943": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r944": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "405",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477092/405-40-50-1"
  },
  "r945": {
   "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"
  },
  "r946": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/450/tableOfContent"
  },
  "r947": {
   "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"
  },
  "r948": {
   "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"
  },
  "r949": {
   "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"
  },
  "r950": {
   "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"
  },
  "r951": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r952": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r953": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481544/470-10-50-6"
  },
  "r954": {
   "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"
  },
  "r955": {
   "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"
  },
  "r956": {
   "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"
  },
  "r957": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-13"
  },
  "r958": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "505",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481520/505-30-50-4"
  },
  "r959": {
   "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"
  },
  "r960": {
   "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"
  },
  "r961": {
   "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"
  },
  "r962": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r963": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r964": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r965": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478156/740-323-50-1A"
  },
  "r966": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480682/815-20-25-6A"
  },
  "r967": {
   "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"
  },
  "r968": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r969": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r970": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r971": {
   "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"
  },
  "r972": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r973": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2E"
  },
  "r974": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481956/830-20-45-1"
  },
  "r975": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481926/830-20-50-1"
  },
  "r976": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479424/830-30-S99-1"
  },
  "r977": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-2"
  },
  "r978": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482925/835-30-45-3"
  },
  "r979": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482900/835-30-50-1"
  },
  "r980": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-3"
  },
  "r981": {
   "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"
  },
  "r982": {
   "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"
  },
  "r983": {
   "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"
  },
  "r984": {
   "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"
  },
  "r985": {
   "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"
  },
  "r986": {
   "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"
  },
  "r987": {
   "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"
  },
  "r988": {
   "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"
  },
  "r989": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r990": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r991": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r992": {
   "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)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478777/944-210-S99-1"
  },
  "r993": {
   "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"
  },
  "r994": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477363/944-310-50-3"
  },
  "r995": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4B"
  },
  "r996": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4B"
  },
  "r997": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4C"
  },
  "r998": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4D"
  },
  "r999": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4G",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-4G"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1001": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-5"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1006": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1007": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1008": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1009": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-6"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7A"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480081/944-40-50-7B"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480109/944-80-50-2"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480109/944-80-50-2"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-15"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-15"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "16",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480990/946-20-50-16"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-3"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-4"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-10"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-14"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-27"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-7"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r1039": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-3"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479105/946-220-45-6"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1045": {
   "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)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1047": {
   "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)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1048": {
   "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(7)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1049": {
   "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(7)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1050": {
   "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(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-1"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477867/946-230-45-1"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477802/946-310-45-1"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r1058": {
   "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 A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r1059": {
   "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/2147477271/946-320-S99-6"
  }
 }
}
