{
 "version": "2.2",
 "instance": {
  "mfic-20260630.htm": {
   "nsprefix": "mfic",
   "nsuri": "http://www.midcapfinancialic.com/20260630",
   "dts": {
    "inline": {
     "local": [
      "mfic-20260630.htm"
     ]
    },
    "schema": {
     "local": [
      "mfic-20260630.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/2024-01-31/types.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-roles-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-types-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-types-2025.xsd",
      "https://xbrl.sec.gov/cef/2025/cef-2025.xsd",
      "https://xbrl.sec.gov/cef/2025/cef-2025_pre.xsd",
      "https://xbrl.sec.gov/country/2025/country-2025.xsd",
      "https://xbrl.sec.gov/currency/2025/currency-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025_lab.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-sub-2025.xsd",
      "https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd"
     ]
    }
   },
   "keyStandard": 270,
   "keyCustom": 96,
   "axisStandard": 33,
   "axisCustom": 0,
   "memberStandard": 35,
   "memberCustom": 526,
   "hidden": {
    "total": 1028,
    "http://fasb.org/us-gaap/2025": 1024,
    "http://xbrl.sec.gov/dei/2025": 4
   },
   "contextCount": 3195,
   "entityCount": 1,
   "segmentCount": 567,
   "elementCount": 1531,
   "unitCount": 9,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2025": 11521,
    "http://fasb.org/srt/2025": 34,
    "http://xbrl.sec.gov/dei/2025": 32,
    "http://xbrl.sec.gov/ecd/2025": 4,
    "http://xbrl.sec.gov/cef/2025": 2
   },
   "report": {
    "R1": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "longName": "75000 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "dei:DocumentPeriodEndDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
     "longName": "75010 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:CashHeldInForeignCurrency",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
     "longName": "75020 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "mfic:CashHeldInForeignCurrencyAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited",
     "longName": "75030 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)",
     "shortName": "CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:InterestIncomeOperatingPaidInKind",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:GrossInvestmentIncomeOperating",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
     "longName": "75040 - 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_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:NetInvestmentIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:InvestmentCompanyDistributionOrdinaryIncome",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
     "longName": "75050 - 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_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
     "longName": "75060 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited)",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_dd22767b-6537-4d08-b8b2-7f60eecb4f55",
      "name": "us-gaap:InvestmentOwnedBalancePrincipalAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap",
     "longName": "75070 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Unaudited) - Interest Rate Swap",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (Unaudited) - Interest Rate Swap",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_0577853b-be11-42ea-b342-fdf271304c88",
      "name": "us-gaap:DerivativeMaturityDates",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0577853b-be11-42ea-b342-fdf271304c88",
      "name": "us-gaap:DerivativeMaturityDates",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
     "longName": "75080 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical) (unaudited)",
     "shortName": "CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical) (unaudited)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
     "longName": "75090 - 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": "10",
     "firstAnchor": {
      "contextRef": "C_8327fc3b-3160-41c6-b019-26c864564933",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f71d56a8-d74b-49ea-9a97-9b33862521c1",
      "name": "us-gaap:InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
     "longName": "75100 - 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": "11",
     "firstAnchor": {
      "contextRef": "C_8327fc3b-3160-41c6-b019-26c864564933",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_b301cea3-33d4-4dbc-8e38-f3c3c7a2057a",
      "name": "us-gaap:InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
     "longName": "75110 - 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": "12",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
     "longName": "75120 - 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": "13",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5409a249-709a-48c0-906b-28420dca491c",
      "name": "mfic:LettersOfCreditExpirationYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "link:footnote",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
     "longName": "75130 - 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": "14",
     "firstAnchor": {
      "contextRef": "C_ee00e1e7-c127-4f63-bb71-094ce407de9c",
      "name": "us-gaap:InvestmentAcquisitionDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ee00e1e7-c127-4f63-bb71-094ce407de9c",
      "name": "us-gaap:InvestmentAcquisitionDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
     "longName": "75140 - 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": "15",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_14064347-1b15-4ca2-9396-28601c96c0db",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
     "longName": "75150 - 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": "16",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedPercentOfNetAssets",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment",
     "longName": "75160 - 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": "17",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "mfic:PercentageOfTotalInvestmentsAtFairValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "mfic:PercentageOfTotalInvestmentsAtFairValue",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "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": "18",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R19": {
     "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": "19",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "ecd:Rule10b51ArrAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://xbrl.sec.gov/cef/role/N2",
     "longName": "995470 - Disclosure - N-2",
     "shortName": "N-2",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "dei:EntityFileNumber",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "cef:InvestmentObjectivesAndPracticesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganization",
     "longName": "995480 - Disclosure - Organization",
     "shortName": "Organization",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPolicies",
     "longName": "995490 - Disclosure - Significant Accounting Policies",
     "shortName": "Significant Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureRelatedPartyAgreementsAndTransactions",
     "longName": "995500 - Disclosure - Related Party Agreements and Transactions",
     "shortName": "Related Party Agreements and Transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShare",
     "longName": "995510 - Disclosure - Earnings Per Share",
     "shortName": "Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestments",
     "longName": "995520 - Disclosure - Investments",
     "shortName": "Investments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslations",
     "longName": "995530 - Disclosure - Debt and Foreign Currency Transactions and Translations",
     "shortName": "Debt and Foreign Currency Transactions and Translations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquity",
     "longName": "995540 - Disclosure - Stockholders' Equity",
     "shortName": "Stockholders' Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingencies",
     "longName": "995550 - Disclosure - Commitments and Contingencies",
     "shortName": "Commitments and Contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlights",
     "longName": "995560 - Disclosure - Financial Highlights",
     "shortName": "Financial Highlights",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEvents",
     "longName": "995580 - Disclosure - Subsequent Events",
     "shortName": "Subsequent Events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies",
     "longName": "995590 - Disclosure - Significant Accounting Policies (Policies)",
     "shortName": "Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "longName": "995600 - Disclosure - Earnings Per Share (Tables)",
     "shortName": "Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables",
     "longName": "995610 - Disclosure - Investments (Tables)",
     "shortName": "Investments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables",
     "longName": "995620 - 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_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityTables",
     "longName": "995630 - Disclosure - Stockholders' Equity (Tables)",
     "shortName": "Stockholders' Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:ScheduleOfTreasuryStockByClassTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables",
     "longName": "995640 - Disclosure - Commitments and Contingencies (Tables)",
     "shortName": "Commitments and Contingencies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:SummaryOfUnfundedCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:SummaryOfUnfundedCommitmentsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsTables",
     "longName": "995650 - Disclosure - Financial Highlights (Tables)",
     "shortName": "Financial Highlights (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
     "longName": "995670 - Disclosure - Organization - Additional Information (Details)",
     "shortName": "Organization - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "38",
     "firstAnchor": {
      "contextRef": "C_9e0651f7-90b7-406d-99c9-2c18902e887d",
      "name": "us-gaap:OperationsCommencedDate1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e0651f7-90b7-406d-99c9-2c18902e887d",
      "name": "us-gaap:OperationsCommencedDate1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
     "longName": "995680 - Disclosure - Significant Accounting Policies - Additional Information (Details)",
     "shortName": "Significant Accounting Policies - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:MinimumOrdinaryIncomeDistributionPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxPolicyTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
     "longName": "995690 - 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": "40",
     "firstAnchor": {
      "contextRef": "C_b0926b92-6541-426b-9e37-c98f6929f0ad",
      "name": "us-gaap:IncentiveFeeExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_b0926b92-6541-426b-9e37-c98f6929f0ad",
      "name": "us-gaap:InvestmentCompanyIncentiveFeeWaived",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
     "longName": "995700 - 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": "41",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:NetIncomeLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R42": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
     "longName": "995710 - 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": "42",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:ForeignCurrencyContractAssetFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
       "div",
       "us-gaap:InvestmentHoldingsScheduleOfInvestmentsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
     "longName": "995720 - 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": "43",
     "firstAnchor": {
      "contextRef": "C_2b1e4ae5-b415-4222-aca4-ed3376b75e62",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_2b1e4ae5-b415-4222-aca4-ed3376b75e62",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail",
     "longName": "995730 - 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": "44",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "mfic:FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
     "longName": "995740 - 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": "45",
     "firstAnchor": {
      "contextRef": "C_5aa42401-0517-4ba1-925a-a931bd87bcaf",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5aa42401-0517-4ba1-925a-a931bd87bcaf",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
     "longName": "995750 - Disclosure - Investments - Additional Information (Details)",
     "shortName": "Investments - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "mfic:PurchasesOfInvestmentsOnTradeDateBasis",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "mfic:PurchasesOfInvestmentsOnTradeDateBasis",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails",
     "longName": "995760 - 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": "47",
     "firstAnchor": {
      "contextRef": "C_17ba40c0-c8c6-4b61-8c90-3dd93d358bde",
      "name": "mfic:PaidInKindBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ChangeInCapitalizedPikBalanceTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_17ba40c0-c8c6-4b61-8c90-3dd93d358bde",
      "name": "mfic:PaidInKindBalance",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ChangeInCapitalizedPikBalanceTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
     "longName": "995770 - Disclosure - Investments - Schedule of Foreign Currency Forward Contracts (Details)",
     "shortName": "Investments - Schedule of Foreign Currency Forward Contracts (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_1cbeefe2-4b92-4686-a996-1ce9666bc4ad",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativesOffsettingFairValueAmountsPolicy",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_200d34be-989a-43f6-8444-3926e5a7fe91",
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfForeignExchangeContractsStatementOfFinancialPositionTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
     "longName": "995780 - Disclosure - Investments - Schedule of Derivative Instruments, Gail (Loss) (Details)",
     "shortName": "Investments - Schedule of Derivative Instruments, Gail (Loss) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:UnrealizedGainLossOnDerivatives",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d3b14b44-4263-46b3-9e00-655ae3126c0c",
      "name": "us-gaap:UnrealizedGainLossOnDerivatives",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
     "longName": "995790 - 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": "50",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_07de7ae9-eeac-4248-9af7-b90e164aab57",
      "name": "us-gaap:AccountsReceivableFromSecuritization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
     "longName": "995800 - 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": "51",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:DebtInstrumentFairValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
     "longName": "995810 - 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": "52",
     "firstAnchor": {
      "contextRef": "C_322d2514-8fa3-4a18-8ba4-7de73658eafc",
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "p",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "mfic:DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R53": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
     "longName": "995820 - 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_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:LongTermDebtWeightedAverageInterestRateOverTime",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
     "longName": "995830 - 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_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "mfic:MaximumAmountOfDebtOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_ecd206e6-7f3c-4276-b1ad-b499de7e717c",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
     "longName": "995840 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "mfic:ForeignDenominatedPrincipalAmountOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9fcf89f4-3591-4f67-9167-2267db617fd9",
      "name": "mfic:ForeignDenominatedOriginalPrincipalAmountOutstanding",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
     "longName": "995850 - 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_6ef94a3e-17a5-4778-a841-65a2498964c4",
      "name": "us-gaap:ProceedsFromIssuanceOfCommonStock",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_470f3412-3cf5-4213-9ed6-8ef570cfbed2",
      "name": "us-gaap:TreasuryStockSharesAcquired",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails",
     "longName": "995860 - 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_5e000afd-3932-4e97-b092-fa5af160beee",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5e000afd-3932-4e97-b092-fa5af160beee",
      "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",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails",
     "longName": "995870 - 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_8bd234f3-2615-4bcb-ab80-ae7150fa7fe5",
      "name": "srt:StockRepurchaseProgramExpirationDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8bd234f3-2615-4bcb-ab80-ae7150fa7fe5",
      "name": "srt:StockRepurchaseProgramExpirationDate",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mfic:ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
     "longName": "995880 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7e35b3fd-b1d4-4965-8da0-1beb7d87973d",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
     "longName": "995890 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9b0e1c0d-037e-499b-bcc2-45809826df56",
      "name": "us-gaap:InvestmentCompanyFinancialSupportToInvesteeDiscretionaryAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
     "longName": "995900 - 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_8327fc3b-3160-41c6-b019-26c864564933",
      "name": "us-gaap:NetAssetValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "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",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails",
     "longName": "995910 - 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_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingExpenseReimbursement",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9e3d3b3c-fece-4f03-ae3e-e6dde6905f3a",
      "name": "mfic:InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingExpenseReimbursement",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTableTextBlock",
       "div",
       "us-gaap:InvestmentCompanyFinancialHighlightsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
     "longName": "995920 - 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_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R64": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
     "longName": "995940 - 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": "64",
     "firstAnchor": {
      "contextRef": "C_bb21b259-51ad-4f88-b713-d59d75486019",
      "name": "us-gaap:InvestmentOwnedAtCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R65": {
     "role": "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails",
     "longName": "995950 - Disclosure - Subsequent Events - Additional Information (Details)",
     "shortName": "Subsequent Events - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_7696fc6d-0d2e-4e6c-bbee-d1435d812f8b",
      "name": "us-gaap:DividendsPayableDateDeclaredDayMonthAndYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7696fc6d-0d2e-4e6c-bbee-d1435d812f8b",
      "name": "us-gaap:DividendsPayableDateDeclaredDayMonthAndYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "mfic-20260630.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "mfic_ACPAvenuBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ACPAvenuBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ACP Avenu Buyer, LLC [Member]",
        "documentation": "ACP Avenu Buyer, LLC.",
        "terseLabel": "ACP Avenu Buyer, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ACPPackagingIntermediatecoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ACPPackagingIntermediatecoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ACP Packaging Intermediateco, LLC [Member]",
        "documentation": "ACP Packaging Intermediateco, LLC.",
        "terseLabel": "ACP Packaging Intermediateco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ACPPackagingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ACPPackagingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ACP Packaging",
        "label": "ACP Packaging [Member]",
        "documentation": "ACP Packaging."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AFTAndAIFFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AFTAndAIFFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A F T and A I F first merger.",
        "label": "A F T and A I F First Merger [Member]",
        "terseLabel": "AFT and AIF First Merger",
        "verboseLabel": "AFT / AIF"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AFTFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AFTFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AFT First Merger",
        "label": "A F T First Merger [Member]",
        "documentation": "AFT First Merger."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AGDATAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AGDATAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AGDATA [Member]",
        "verboseLabel": "AGDATA",
        "documentation": "AGDATA.",
        "terseLabel": "AGDATA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AGDATAMidcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AGDATAMidcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AGDATA Midco, LLC",
        "label": "AGDATA Midco, LLC [Member]",
        "documentation": "AGDATA Midco, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AHPTimberwolfBidcoCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AHPTimberwolfBidcoCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AHP Timberwolf Bidco Corp. [Member]",
        "documentation": "Ahp timberwolf bidco corp.",
        "terseLabel": "AHP Timberwolf Bidco Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AICSPVHoldingsIILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AICSPVHoldingsIILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AIC SPV Holdings II, LLC.",
        "label": "A I C S P V Holdings I I L L C [Member]",
        "terseLabel": "AIC SPV Holdings II, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AIFFirstMergerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AIFFirstMergerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIF First Merger",
        "label": "A I F First Merger [Member]",
        "documentation": "A I F First Merger."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AMIBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AMIBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AMI Buyer, Inc. [Member]",
        "documentation": "AMI buyer, inc.",
        "terseLabel": "AMI Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AMLRightsourceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AMLRightsourceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AML Rightsource",
        "label": "AML Rightsource [Member]",
        "documentation": "AML rightsource."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AVADLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AVADLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AVAD LLC.",
        "label": "A V A D L L C [Member]",
        "terseLabel": "AVAD, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AccelerateLearningMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AccelerateLearningMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accelerate Learning [Member]",
        "documentation": "Accelerate learning member",
        "terseLabel": "Accelerate Learning"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AccelerateThreeSixtyHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AccelerateThreeSixtyHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accelerate Three Sixty Holdings, LLC [Member]",
        "documentation": "Accelerate Three Sixty Holdings, LLC.",
        "terseLabel": "Accelerate360 Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AccelerateThreeSixtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AccelerateThreeSixtyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accelerate Three Sixty [Member]",
        "terseLabel": "Accelerate360",
        "documentation": "Accelerate three sixty."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AccelevationLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AccelevationLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accelevation, LLC",
        "label": "Accelevation LLC [Member]",
        "documentation": "Accelevation LLC."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdateExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountingStandardsUpdateExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Extensible Enumeration]",
        "documentation": "Indicates amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r96",
      "r97",
      "r98",
      "r99",
      "r100",
      "r101",
      "r102",
      "r103",
      "r104",
      "r105",
      "r129",
      "r130",
      "r131",
      "r155",
      "r156",
      "r157",
      "r158",
      "r159",
      "r206",
      "r207",
      "r214",
      "r216",
      "r217",
      "r225",
      "r226",
      "r229",
      "r269",
      "r270",
      "r271",
      "r272",
      "r342",
      "r343",
      "r344",
      "r345",
      "r357",
      "r358",
      "r359",
      "r360",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r416",
      "r417",
      "r418",
      "r439",
      "r440",
      "r441",
      "r442",
      "r443",
      "r492",
      "r493",
      "r505",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r534",
      "r535",
      "r556",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r618",
      "r619",
      "r620",
      "r621",
      "r622",
      "r623"
     ]
    },
    "us-gaap_AccountsReceivableFromSecuritization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccountsReceivableFromSecuritization",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Term debt securitization",
        "label": "Accounts Receivable from 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/2025",
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 31.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "negatedLabel": "Net amortization of premiums and accretion of discounts on 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": [
      "r57"
     ]
    },
    "mfic_AccruedAdministrativeServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AccruedAdministrativeServicesExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued administrative services expense.",
        "label": "Accrued Administrative Services Expense",
        "terseLabel": "Accrued administrative services expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Liabilities and Other Liabilities",
        "terseLabel": "Other liabilities and accrued expenses",
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AcentraHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AcentraHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acentra Holdings, LLC [Member]",
        "documentation": "Acentra Holdings, LLC.",
        "terseLabel": "Acentra Holdings, LLC (fka CNSI Holdings, LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AcentraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AcentraMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acentra [Member]",
        "documentation": "Acentra.",
        "terseLabel": "Acentra"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AcostaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AcostaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acosta [Member]",
        "documentation": "Acosta member",
        "terseLabel": "Acosta"
       }
      }
     },
     "auth_ref": []
    },
    "cef_AcquiredFundFeesAndExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1066"
     ]
    },
    "cef_AcquiredFundFeesAndExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundFeesAndExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1067"
     ]
    },
    "cef_AcquiredFundFeesEstimatedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundFeesEstimatedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees Estimated, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1068"
     ]
    },
    "cef_AcquiredFundIncentiveAllocationNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AcquiredFundIncentiveAllocationNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Incentive Allocation, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1069"
     ]
    },
    "cef_AcquiredFundTotalAnnualExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1070"
     ]
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1121"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdditionalPaidInCapitalCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital in excess of par value",
        "label": "Additional Paid in Capital, Common Stock",
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "dei_AdditionalSecurities462b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecurities462b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities. 462(b)"
       }
      }
     },
     "auth_ref": [
      "r1174"
     ]
    },
    "dei_AdditionalSecurities462bFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecurities462bFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities, 462(b), File Number"
       }
      }
     },
     "auth_ref": [
      "r1174"
     ]
    },
    "dei_AdditionalSecuritiesEffective413b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdditionalSecuritiesEffective413b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities Effective, 413(b)"
       }
      }
     },
     "auth_ref": [
      "r1173"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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/2025",
     "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": [
      "r1134"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1134"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1134"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1134"
     ]
    },
    "mfic_AdministrationAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AdministrationAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Administration Agreement.",
        "label": "Administration Agreement [Member]",
        "terseLabel": "Administration Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdministrativeFeesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AdministrativeFeesExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Administrative Fees Expense",
        "terseLabel": "Administrative services expense",
        "documentation": "Amount of expense for administrative fee from service provided, including, but not limited to, salary, rent, or overhead cost."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r1366",
      "r1371"
     ]
    },
    "mfic_AdvertisingPrintingAndPublishingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AdvertisingPrintingAndPublishingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Advertising, printing and publishing.",
        "label": "Advertising Printing And Publishing [Member]",
        "terseLabel": "Advertising, Printing &amp; Publishing"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AerospaceAndDefenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AerospaceAndDefenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aerospace and defense.",
        "label": "Aerospace And Defense [Member]",
        "terseLabel": "Aerospace &amp; Defense"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AerospaceDefenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AerospaceDefenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aerospace &amp; Defense",
        "label": "Aerospace &amp; Defense [Member]",
        "documentation": "Aerospace &amp; defense.",
        "verboseLabel": "Aerospace &amp; Defense"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AffiliatedInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AffiliatedInvestmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Affiliated investments.",
        "label": "Affiliated Investments [Member]",
        "terseLabel": "Affiliated Investments"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1167"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1020",
      "r1031",
      "r1111",
      "r1145"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1023",
      "r1034",
      "r1114",
      "r1148"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1168"
     ]
    },
    "mfic_AgreementTerminationFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AgreementTerminationFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agreement termination fee.",
        "label": "Agreement Termination Fee",
        "terseLabel": "Agreement termination fee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AirFreightLogisticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AirFreightLogisticsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Air Freight &amp; Logistics [Member]",
        "documentation": "Air freight &amp; logistics.",
        "verboseLabel": "Air Freight &amp; Logistics",
        "terseLabel": "Air Freight &amp; Logistics"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AkoyaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AkoyaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Akoya.",
        "label": "Akoya [Member]",
        "terseLabel": "Akoya"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AlcamiCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlcamiCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Alcami Corporation [Member]",
        "documentation": "Alcami corporation.",
        "terseLabel": "Alcami Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AlcamiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlcamiMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Alcami [Member]",
        "documentation": "Alcami.",
        "verboseLabel": "Alcami"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AlcrestaTherapeuticsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlcrestaTherapeuticsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Alcresta Therapeutics Inc [Member]",
        "documentation": "Alcresta Therapeutics Inc.",
        "verboseLabel": "Alcresta Therapeutics Inc.",
        "terseLabel": "Alcresta Therapeutics Inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1134"
     ]
    },
    "cef_AllCoregistrantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AllCoregistrantsMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Coregistrants [Member]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Currencies [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1141"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1141",
      "r1149",
      "r1153",
      "r1161"
     ]
    },
    "cef_AllRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AllRisksMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Risks:"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "mfic_AllStarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AllStarMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Star [Member]",
        "documentation": "All Star",
        "verboseLabel": "All Star",
        "terseLabel": "All Star"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AllStarRecruitingLocumsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AllStarRecruitingLocumsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Star Recruiting Locums, LLC [Member]",
        "documentation": "All Star Recruiting Locums, LLC.",
        "terseLabel": "All Star Recruiting Locums, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1159"
     ]
    },
    "mfic_AlliedBenefitSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlliedBenefitSystemsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allied Benefit Systems [Member]",
        "documentation": "Allied benefit systems.",
        "verboseLabel": "Allied Benefit Systems",
        "terseLabel": "Allied Benefit Systems"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AllstarHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AllstarHoldingsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allstar Holdings [Member]",
        "documentation": "Allstar holdings member",
        "terseLabel": "Allstar Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AlpineXMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlpineXMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AlpineX [Member]",
        "documentation": "AlpineX.",
        "terseLabel": "AlpineX"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AlpinexOpcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AlpinexOpcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Alpinex Opco, LLC.",
        "label": "Alpinex Opco L L C [Member]",
        "terseLabel": "Alpinex Opco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmbrosiaBuyerCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmbrosiaBuyerCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ambrosia Buyer Corp.",
        "label": "Ambrosia Buyer Corp [Member]",
        "terseLabel": "Ambrosia Buyer Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmendedSeniorSecuredFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmendedSeniorSecuredFacilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amended senior secured facility.",
        "label": "Amended Senior Secured Facility [Member]",
        "terseLabel": "Amended Senior Secured Facility"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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/2025",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": []
    },
    "mfic_AmericanMegatrendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmericanMegatrendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "American Megatrends.",
        "label": "American Megatrends [Member]",
        "terseLabel": "American Megatrends"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmericanRestorationHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmericanRestorationHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "American Restoration Holdings, LLC [Member]",
        "documentation": "American Restoration Holdings, LLC.",
        "terseLabel": "American Restoration Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmericanRestorationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmericanRestorationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "American Restoration [Member]",
        "documentation": "American restoration.",
        "terseLabel": "American Restoration"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfDebtDiscountPremium": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AmortizationOfDebtDiscountPremium",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accretion of discount on notes",
        "label": "Amortization of Debt Discount (Premium)",
        "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": [
      "r5",
      "r52",
      "r264",
      "r1328"
     ]
    },
    "us-gaap_AmortizationOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AmortizationOfFinancingCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Debt Issuance Costs",
        "terseLabel": "Amortization of deferred financing costs",
        "documentation": "Amount of amortization expense attributable to debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r52",
      "r264",
      "r1207",
      "r1328"
     ]
    },
    "mfic_AmplityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmplityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amplity [Member]",
        "documentation": "Amplity.",
        "terseLabel": "Amplity"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmplityParentIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmplityParentIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amplity Parent, Inc. [Member]",
        "documentation": "Amplity Parent, Inc..",
        "terseLabel": "Amplity Parent, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmyluBorrowerSubLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmyluBorrowerSubLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amylu Borrower Sub, LLC [Member]",
        "documentation": "Amylu Borrower Sub, LLC.",
        "terseLabel": "Amylu Borrower Sub, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AmyluFoodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AmyluFoodsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amylu Foods [Member]",
        "documentation": "Amylu Foods.",
        "terseLabel": "Amylu Foods"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AnaplanIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AnaplanIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Anaplan, Inc. [Member]",
        "documentation": "Anaplan, Inc.",
        "terseLabel": "Anaplan, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AnaplanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AnaplanMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Anaplan",
        "label": "Anaplan [Member]",
        "documentation": "Anaplan.",
        "terseLabel": "Anaplan"
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualCoverageReturnRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualCoverageReturnRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Coverage Return Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1095"
     ]
    },
    "cef_AnnualDividendPayment": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPayment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "cef_AnnualDividendPaymentCurrent": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPaymentCurrent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Current"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "cef_AnnualDividendPaymentInitial": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualDividendPaymentInitial",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Initial"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "cef_AnnualExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1074"
     ]
    },
    "cef_AnnualInterestRateCurrentPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRateCurrentPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Current [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "cef_AnnualInterestRateInitialPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRateInitialPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Initial [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "cef_AnnualInterestRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "AnnualInterestRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1094"
     ]
    },
    "mfic_AnnualizedAmortizedDebtIssuanceCostDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AnnualizedAmortizedDebtIssuanceCostDuringPeriod",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails": {
       "parentTag": "us-gaap_DebtInstrumentInterestRateDuringPeriod",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Annualized amortized debt issuance cost during period.",
        "label": "Annualized Amortized Debt Issuance Cost During Period",
        "terseLabel": "Annualized amortized debt issuance cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloInvestmentAdministrationLimitedLiabilityCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ApolloInvestmentAdministrationLimitedLiabilityCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Apollo Investment Administration, Limited Liability Company.",
        "label": "Apollo Investment Administration Limited Liability Company [Member]",
        "terseLabel": "AIA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloInvestmentManagementLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ApolloInvestmentManagementLPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Apollo Investment Management, L.P.",
        "label": "Apollo Investment Management L P [Member]",
        "terseLabel": "AIM",
        "verboseLabel": "AIM"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloSeniorFloatingRateFundIncAndApolloTacticalIncomeFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ApolloSeniorFloatingRateFundIncAndApolloTacticalIncomeFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Apollo Senior Floating Rate Fund Inc. and Apollo Tactical Income Fund Inc.",
        "label": "Apollo Senior Floating Rate Fund Inc And Apollo Tactical Income Fund Inc. [Member]",
        "terseLabel": "AFT / AIF"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloSeniorFloatingRateFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ApolloSeniorFloatingRateFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AFT",
        "documentation": "Apollo senior floating rate fund inc.",
        "label": "Apollo Senior Floating Rate Fund Inc [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ApolloTacticalIncomeFundIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ApolloTacticalIncomeFundIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "AIF",
        "documentation": "Apollo tactical income fund inc.",
        "label": "Apollo Tactical Income Fund Inc [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_ApproximateDateOfCommencementOfProposedSaleToThePublic": {
     "xbrltype": "dateOrAsapItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": []
    },
    "mfic_ArcadiaSolutionsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ArcadiaSolutionsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arcadia Solutions, Inc.",
        "label": "Arcadia Solutions, Inc [Member]",
        "documentation": "Arcadia Solutions, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ArcadiaSolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ArcadiaSolutionsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Arcadia Solutions [Member]",
        "documentation": "Arcadia solutions.",
        "terseLabel": "Arcadia Solutions"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ArcwoodEnvironmentalIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ArcwoodEnvironmentalIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arcwood Environmental, Inc. (f/k/a Heritage Environmental Services, Inc.)",
        "label": "Arcwood Environmental, Inc [Member]",
        "documentation": "Arcwood Environmental, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ArriviaIncInternationalCruiseExcursionGalleryIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ArriviaIncInternationalCruiseExcursionGalleryIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Arrivia, Inc. (International Cruise &amp; Excursion Gallery, Inc [Member]",
        "documentation": "Arrivia, Inc. (International Cruise &amp; Excursion Gallery, Inc",
        "verboseLabel": "Arrivia, Inc. (International Cruise &amp; Excursion Gallery, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AspenAerogelsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AspenAerogelsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aspen Aerogels, Inc. [Member]",
        "documentation": "Aspen aerogels, inc..",
        "terseLabel": "Aspen Aerogels, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_AssetsNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "totalLabel": "Total Assets",
        "documentation": "Amount of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r66",
      "r76",
      "r114",
      "r140",
      "r143",
      "r144",
      "r183",
      "r192",
      "r202",
      "r203",
      "r213",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r445",
      "r449",
      "r540",
      "r585",
      "r586",
      "r591",
      "r714",
      "r923",
      "r924",
      "r939",
      "r989",
      "r993",
      "r994",
      "r1009",
      "r1240",
      "r1241",
      "r1331"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Assets, Fair Value Disclosure, Total",
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Assets Fair Value Disclosure",
        "documentation": "Fair value portion of asset recognized for present right to economic benefit."
       }
      }
     },
     "auth_ref": [
      "r517",
      "r518",
      "r977"
     ]
    },
    "us-gaap_AssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net Assets",
        "totalLabel": "Net Assets",
        "label": "Net Assets",
        "periodStartLabel": "Net assets at beginning of period",
        "netLabel": "Net Asset Value Per Share",
        "periodEndLabel": "Net Assets at End of Period",
        "terseLabel": "Net assets at end of period (in millions)",
        "documentation": "Amount of net assets (liabilities)."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "mfic_AsureSoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AsureSoftwareMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asure Software [Member]",
        "documentation": "Asure software.",
        "terseLabel": "Asure Software"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AtTheMarketOfferingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AtTheMarketOfferingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ATM Offering",
        "documentation": "At the market offering.",
        "label": "At The Market Offering [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AthleteBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AthleteBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Athlete Buyer, LLC [Member]",
        "documentation": "Athlete Buyer, LLC.",
        "terseLabel": "Athlete Buyer, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AtlasTechnicalConsultantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AtlasTechnicalConsultantsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Atlas Technical Consultants [Member]",
        "documentation": "Atlas technical consultants member",
        "terseLabel": "Atlas Technical Consultants"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AugustBioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AugustBioMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "August Bio [Member]",
        "documentation": "August bio.",
        "verboseLabel": "August Bio",
        "terseLabel": "August Bio"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AugustBioservicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AugustBioservicesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "August Bioservices, LLC [Member]",
        "documentation": "August Bioservices, LLC.",
        "terseLabel": "August Bioservices, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AutoPoolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AutoPoolMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Auto pool.",
        "label": "Auto Pool [Member]",
        "terseLabel": "Auto Pool 2023"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AutomobileComponentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AutomobileComponentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Automobile Components",
        "label": "Automobile Components [Member]",
        "documentation": "Automobile components.",
        "terseLabel": "Automobile Components"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AutomotiveSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AutomotiveSectorMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Automotive Sector [Member]",
        "terseLabel": "Automotive",
        "documentation": "Sector of economy consisting of companies engaged in business activity related to motor vehicle."
       }
      }
     },
     "auth_ref": [
      "r1380",
      "r1384",
      "r1387",
      "r1390"
     ]
    },
    "mfic_AvalaraIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AvalaraIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Avalara, Inc. [Member]",
        "documentation": "Avalara, Inc.",
        "terseLabel": "Avalara, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AvalaraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AvalaraMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Avalara [Member]",
        "documentation": "Avalara",
        "verboseLabel": "Avalara",
        "terseLabel": "Avalara"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AvenuInsightsAnalyticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AvenuInsightsAnalyticsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Avenu Insights &amp; Analytics [Member]",
        "documentation": "Avenu insights &amp; analytics.",
        "terseLabel": "Avenu Insights &amp; Analytics"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AvenuMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AvenuMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Avenu [Member]",
        "documentation": "Avenu member",
        "terseLabel": "Avenu"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AviationAndConsumerTransportMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AviationAndConsumerTransportMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aviation and consumer transport.",
        "label": "Aviation And Consumer Transport [Member]",
        "terseLabel": "Aviation and Consumer Transport"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_AvidBioservicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "AvidBioservicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Avid Bioservices",
        "label": "Avid Bioservices [Member]",
        "documentation": "Avid Bioservices."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r1156"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1157"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r1152"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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": [
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340"
     ]
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r1155"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1154"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1153"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1153"
     ]
    },
    "mfic_BannerBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BannerBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Banner Buyer, LLC.",
        "label": "Banner Buyer L L C [Member]",
        "terseLabel": "Banner Buyer, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BannerSolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BannerSolutionsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Banner Solutions.",
        "label": "Banner Solutions [Member]",
        "terseLabel": "Banner Solutions"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BarTenderMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BarTenderMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "BarTender",
        "label": "BarTender [Member]",
        "documentation": "BarTender",
        "terseLabel": "BarTender"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BaseAmountConsideredForCovenants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BaseAmountConsideredForCovenants",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Base amount considered for covenants",
        "label": "Base Amount Considered for Covenants",
        "documentation": "Base amount considered for covenants."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BaseManagementFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BaseManagementFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Base management fee.",
        "label": "Base Management Fee [Member]",
        "terseLabel": "Base Management Fee"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BaseRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BaseRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Alternate Base Rate",
        "label": "Base Rate [Member]",
        "documentation": "Minimum rate investor will accept."
       }
      }
     },
     "auth_ref": [
      "r1194",
      "r1239"
     ]
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation",
        "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": [
      "r1208"
     ]
    },
    "cef_BasisOfTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BasisOfTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1072"
     ]
    },
    "mfic_BauschHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BauschHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bausch Health [Member]",
        "documentation": "Bausch Health",
        "verboseLabel": "Bausch Health",
        "terseLabel": "Bausch Health"
       }
      }
     },
     "auth_ref": []
    },
    "cef_BdcFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BdcFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BDC File Number"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeaconMobilityCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeaconMobilityCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Beacon Mobility Corp.",
        "documentation": "Beacon Mobility Corp.",
        "label": "Beacon Mobility Corp [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeaconMobilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeaconMobilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Beacon Mobility.",
        "label": "Beacon Mobility [Member]",
        "terseLabel": "Beacon Mobility"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeaufortMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeaufortMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Beaufort [Member]",
        "documentation": "Beaufort.",
        "terseLabel": "Beaufort"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BecauseTheIntermediaryManagerIsAnAffiliateOfApolloYouWillNotHaveTheBenefitOfAnIndependentReviewOfThisProspectusCustomarilyPerformedInUnderwrittenOfferingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BecauseTheIntermediaryManagerIsAnAffiliateOfApolloYouWillNotHaveTheBenefitOfAnIndependentReviewOfThisProspectusCustomarilyPerformedInUnderwrittenOfferingsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Because The Intermediary Manager Is An Affiliate Of Apollo, You Will Not Have The Benefit Of An Independent Review Of This Prospectus Customarily Performed In Underwritten Offerings [Member]",
        "documentation": "Because the intermediary manager is an affiliate of apollo, you will not have the benefit of an independent review of this prospectus customarily performed in underwritten offerings."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeelineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeelineMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Beeline",
        "label": "Beeline [Member]",
        "documentation": "Beeline",
        "terseLabel": "Beeline"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BernerFoodAndBeverageLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BernerFoodAndBeverageLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Berner food and beverage llc.",
        "label": "Berner Food And Beverage L L C [Member]",
        "terseLabel": "Berner Food &amp; Beverage, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BernerFoodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BernerFoodsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Berner Foods.",
        "label": "Berner Foods [Member]",
        "terseLabel": "Berner Foods"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BerryTapesAdhesivesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BerryTapesAdhesivesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Berry Tapes &amp; Adhesives",
        "label": "Berry Tapes &amp; Adhesives [Member]",
        "documentation": "Berry tapes &amp; adhesives."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BestTrashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BestTrashMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Best Trash [Member]",
        "documentation": "Best trash.",
        "terseLabel": "Best Trash"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeverageFoodAndTobaccoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeverageFoodAndTobaccoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Beverage food and tobacco.",
        "label": "Beverage Food And Tobacco [Member]",
        "terseLabel": "Beverage, Food &amp; Tobacco"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BeveragesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BeveragesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Beverages",
        "label": "Beverages [Member]",
        "documentation": "Beverages."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BiampMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BiampMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Biamp",
        "label": "Biamp [Member]",
        "documentation": "Biamp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BingoGroupBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BingoGroupBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bingo Group Buyer, Inc.",
        "label": "Bingo Group Buyer, Inc. [Member]",
        "documentation": "Bingo Group Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BiotechnologyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BiotechnologyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Biotechnology [Member]",
        "documentation": "Biotechnology.",
        "verboseLabel": "Biotechnology",
        "terseLabel": "Biotechnology"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BirchGroupOfClinicsAcquirecoIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BirchGroupOfClinicsAcquirecoIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Birch Group of Clinics Acquireco Inc [Member]",
        "documentation": "Birch Group of Clinics Acquireco Inc.",
        "terseLabel": "Birch Group of Clinics Acquireco Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BirdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BirdMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bird.",
        "label": "Bird [Member]",
        "terseLabel": "Bird"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BirdRidesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BirdRidesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bird Rides [Member]",
        "documentation": "Bird Rides.",
        "terseLabel": "Bird Rides"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BlueJayTransitIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BlueJayTransitIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Blue Jay Transit Inc. [Member]",
        "documentation": "Blue Jay Transit Inc.",
        "terseLabel": "Blue Jay Transit Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BoassoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BoassoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Boasso [Member]",
        "documentation": "Boasso.",
        "terseLabel": "Boasso"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BolthouseFarmsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BolthouseFarmsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bolthouse Farms.",
        "label": "Bolthouse Farms [Member]",
        "terseLabel": "Bolthouse Farms"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BridgeLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BridgeLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bridge loan commitments.",
        "label": "Bridge Loan Commitments [Member]",
        "terseLabel": "Bridge Loan Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BrushGroupBidcoLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BrushGroupBidcoLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brush Group Bidco Limited [Member]",
        "documentation": "Brush group bidco limited.",
        "terseLabel": "Brush Group Bidco Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BrushGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BrushGroupMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brush Group [Member]",
        "documentation": "Brush group.",
        "terseLabel": "Brush Group"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BuildingProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BuildingProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Building Products [Member]",
        "documentation": "Building products.",
        "verboseLabel": "Building Products",
        "terseLabel": "Building Products"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BullcaveLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BullcaveLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bullcave Limited [Member]",
        "documentation": "Bullcave limited.",
        "terseLabel": "Bullcave Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BusPatrolHoldcoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusPatrolHoldcoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BusPatrol Holdco",
        "label": "BusPatrol Holdco [Member]",
        "documentation": "BusPatrol Holdco."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_BusPatrolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusPatrolMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BusPatrol [Member]",
        "documentation": "BusPatrol",
        "verboseLabel": "BusPatrol",
        "terseLabel": "BusPatrol"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessAcquisitionAcquireeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [Domain]",
        "documentation": "Business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r435",
      "r436",
      "r437",
      "r625",
      "r946",
      "r947",
      "r1282",
      "r1286",
      "r1288"
     ]
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessAcquisitionAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [Axis]",
        "documentation": "Information by business combination or series of individually immaterial business combinations."
       }
      }
     },
     "auth_ref": [
      "r219",
      "r220",
      "r221",
      "r222",
      "r223",
      "r224",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r435",
      "r436",
      "r437",
      "r625",
      "r946",
      "r947",
      "r1282",
      "r1286",
      "r1288"
     ]
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessAcquisitionLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [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": [
      "r219",
      "r374",
      "r375",
      "r376",
      "r377",
      "r383",
      "r384",
      "r385",
      "r386",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r431",
      "r432",
      "r433",
      "r437",
      "r950",
      "r959",
      "r1282",
      "r1286",
      "r1288"
     ]
    },
    "mfic_BusinessAcquisitionManagementFeeAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusinessAcquisitionManagementFeeAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisition management fee accrued.",
        "label": "Business Acquisition Management Fee Accrued",
        "terseLabel": "Management fee accrued"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessAcquisitionSharePrice",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business acquisition, share price",
        "label": "Business Combination, Price Per Share",
        "documentation": "Per share price of saleable stock paid or offered to be paid by acquirer in business combination."
       }
      }
     },
     "auth_ref": [
      "r962",
      "r1284",
      "r1285",
      "r1290",
      "r1291"
     ]
    },
    "us-gaap_BusinessCombinationAndAssetAcquisitionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationAndAssetAcquisitionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Asset Acquisition, Transaction between Entities under Common Control, and Joint Venture Formation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationConsiderationTransferred1",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r421",
      "r433",
      "r950",
      "r954"
     ]
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock issued by the Company",
        "label": "Business Combination, Consideration Transferred, Equity Interest",
        "verboseLabel": "Issuance of common stock",
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination."
       }
      }
     },
     "auth_ref": [
      "r950",
      "r954",
      "r955",
      "r960",
      "r961"
     ]
    },
    "mfic_BusinessCombinationDeemedContributionFromTheInvestmentAdvisor": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusinessCombinationDeemedContributionFromTheInvestmentAdvisor",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination, deemed contribution from the investment advisor.",
        "label": "Business Combination, Deemed Contribution From The Investment Advisor",
        "terseLabel": "Deemed contribution from the Investment Adviser"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAif"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [Text Block]",
        "terseLabel": "Mergers with AFT and AIF",
        "documentation": "The entire disclosure for business combination."
       }
      }
     },
     "auth_ref": [
      "r371",
      "r374",
      "r378",
      "r387",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r398",
      "r399",
      "r405",
      "r408",
      "r409",
      "r415",
      "r419",
      "r420",
      "r428",
      "r432",
      "r433",
      "r434",
      "r436",
      "r438",
      "r950",
      "r951",
      "r952",
      "r953",
      "r956",
      "r957",
      "r958"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Assets Acquired",
        "totalLabel": "Total Assets Acquired",
        "label": "Business Combination, Recognized Asset Acquired, Asset",
        "documentation": "Amount of asset acquired in business combination and recognized at acquisition date."
       }
      }
     },
     "auth_ref": [
      "r403",
      "r408"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Asset Acquired, Asset [Abstract]",
        "terseLabel": "Assets Acquired:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Asset Acquired, Cash and Cash Equivalent",
        "terseLabel": "Cash &amp; Cash Equivalents",
        "documentation": "Amount of cash and cash equivalent acquired in business combination and recognized at acquisition date."
       }
      }
     },
     "auth_ref": [
      "r1287",
      "r1289"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Assets",
        "label": "Business Combination, Recognized Asset Acquired, Other Asset, Current",
        "documentation": "Amount of asset acquired in business combination and recognized at acquisition date, classified as other and current."
       }
      }
     },
     "auth_ref": [
      "r1287",
      "r1289"
     ]
    },
    "mfic_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInvestmentsAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination, recognized identifiable assets acquired and liabilities assumed, investments, at fair value.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Investments, at fair value",
        "terseLabel": "Investments, at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities, Total",
        "label": "Business Combination, Recognized Liability Assumed, Liability",
        "negatedLabel": "Liabilities Assumed",
        "documentation": "Amount of liability assumed in business combination and recognized at acquisition date."
       }
      }
     },
     "auth_ref": [
      "r403",
      "r408"
     ]
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities Assumed:",
        "label": "Business Combination, Recognized Liability Assumed, Liability [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Asset Acquired to Liability Assumed, Excess (Less)",
        "totalLabel": "Net Assets Acquired",
        "documentation": "Amount of asset acquired in excess of (less than) liability assumed in business combination and recognized at acquisition date. Excludes goodwill."
       }
      }
     },
     "auth_ref": [
      "r950",
      "r954",
      "r1287",
      "r1289"
     ]
    },
    "mfic_BusinessCombinationRelatedAmortizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusinessCombinationRelatedAmortizedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination related amortized cost.",
        "label": "Business Combination Related Amortized Cost",
        "terseLabel": "Amortized cost"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "BusinessCombinationsPolicy",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [Policy Text Block]",
        "terseLabel": "Purchase Accounting",
        "documentation": "Disclosure of accounting policy for business combination."
       }
      }
     },
     "auth_ref": [
      "r372",
      "r373",
      "r379",
      "r381",
      "r392",
      "r404",
      "r408",
      "r950",
      "r955",
      "r960",
      "r961"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1015",
      "r1027"
     ]
    },
    "cef_BusinessDevelopmentCompanyFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "BusinessDevelopmentCompanyFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Development Company [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "mfic_BusinessServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "BusinessServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business services.",
        "label": "Business Services [Member]",
        "terseLabel": "Business Services"
       }
      }
     },
     "auth_ref": []
    },
    "currency_CAD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "CAD",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Canada, Dollars",
        "terseLabel": "Canadian Dollar"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CARDS-LiveOakHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CARDS-LiveOakHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CARDS-Live Oak Holdings, Inc [Member]",
        "documentation": "CARDS-Live Oak Holdings, Inc.",
        "terseLabel": "CARDS-Live Oak Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CARDSPlusLiveOakMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CARDSPlusLiveOakMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CARDS + Live Oak",
        "label": "CARDS Plus Live Oak [Member]",
        "documentation": "CARDS Plus Live Oak."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CIMGGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CIMGGroupLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CI MG Group LLC [Member]",
        "documentation": "CI (MG) group, LLC.",
        "terseLabel": "CI (MG) GROUP, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CNSIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CNSIMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C N S I [Member]",
        "verboseLabel": "CNSI",
        "documentation": "CNSI.",
        "terseLabel": "CNSI"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CRSHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CRSHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CRS holdings, inc..",
        "label": "CRS Holdings, Inc. [Member]",
        "terseLabel": "CRS Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CSCHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CSCHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CSC Holdings, LLC [Member]",
        "documentation": "CSC Holdings, LLC.",
        "terseLabel": "CSC Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CablevisionSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CablevisionSystemsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cablevision Systems [Member]",
        "documentation": "Cablevision Systems.",
        "terseLabel": "Cablevision Systems"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CaleroHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CaleroHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Calero Holdings, Inc.",
        "label": "Calero Holdings Inc [Member]",
        "terseLabel": "Calero Holdings Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CaminCargoControlHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CaminCargoControlHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Camin Cargo Control Holdings, Inc. [Member]",
        "documentation": "Camin Cargo Control Holdings, Inc.",
        "terseLabel": "Camin Cargo Control Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CaminCargoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CaminCargoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Camin Cargo [Member]",
        "documentation": "Camin Cargo.",
        "terseLabel": "Camin Cargo"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CapitalGainsIncentiveFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CapitalGainsIncentiveFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital gains incentive fee",
        "label": "Capital Gains Incentive Fee",
        "documentation": "Capital gains incentive fee."
       }
      }
     },
     "auth_ref": []
    },
    "cef_CapitalStockLongTermDebtAndOtherSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1040"
     ]
    },
    "cef_CapitalStockTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "CapitalStockTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "mfic_CarbonfreeChemicalsSPEILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CarbonfreeChemicalsSPEILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carbonfree Chemicals SPE I LLC [Member]",
        "documentation": "Carbonfree chemicals spe I llc member",
        "terseLabel": "Carbonfree Chemicals SPE I LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CarestreamHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CarestreamHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carestream Health [Member]",
        "documentation": "Carestream health member",
        "terseLabel": "Carestream Health"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cash Equivalents",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total",
        "label": "Cash and Cash Equivalent",
        "documentation": "Amount of cash and cash equivalent. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r14",
      "r112",
      "r906"
     ]
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Axis]",
        "terseLabel": "Cash and Cash Equivalents",
        "documentation": "Information by type of cash and cash equivalent balance."
       }
      }
     },
     "auth_ref": [
      "r112"
     ]
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentOwnedAtFairValueAfterCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Total Cash Equivalents, Fair Value",
        "verboseLabel": "Cash Equivalents, Fair Value",
        "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": [
      "r536",
      "r537",
      "r538",
      "r1305",
      "r1306"
     ]
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Cash and Cash Equivalents",
        "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": [
      "r15"
     ]
    },
    "mfic_CashCashEquivalentsAndForeignCurrenciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CashCashEquivalentsAndForeignCurrenciesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash, cash equivalents and foreign currencies.",
        "label": "Cash Cash Equivalents And Foreign Currencies [Abstract]",
        "terseLabel": "Cash, Cash Equivalents and Foreign Currencies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Cash, Cash Equivalents and Foreign Currencies at the End of Period",
        "periodStartLabel": "Cash, cash equivalents and foreign currencies at beginning of period",
        "label": "Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Total",
        "documentation": "Amount of cash and cash equivalent, and cash and cash equivalent restricted to withdrawal or usage; attributable to continuing operation. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r14",
      "r55",
      "r137"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Net increase (decrease) in cash, cash equivalents and foreign currencies during the period",
        "label": "Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Period Increase (Decrease), Excluding Exchange Rate Effect, Including Discontinued Operation",
        "totalLabel": "Net increase (decrease) in cash, cash equivalents and foreign currencies during the period",
        "documentation": "Amount, excluding effect from change in exchange rate, of increase (decrease) in cash and cash equivalent, and cash and cash equivalent restricted to withdrawal or usage; including, but not limited to, discontinued operation. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r2",
      "r55"
     ]
    },
    "us-gaap_CashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentOwnedAtCostAfterCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash Equivalents, at Carrying Value, Total",
        "label": "Cash Equivalents, at Carrying Value",
        "terseLabel": "Total Cash Equivalents",
        "verboseLabel": "Cash Equivalents, Cost",
        "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": [
      "r1192",
      "r1343"
     ]
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]",
        "terseLabel": "Supplemental Disclosure of Non-Cash Activity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashHeldInForeignCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashHeldInForeignCurrency",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalent, Held in Foreign Currency",
        "terseLabel": "Foreign currencies (cost - $108 and $1,286, respectively)",
        "documentation": "Amount of cash and cash equivalent, held in foreign currency. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r670",
      "r1009"
     ]
    },
    "us-gaap_CashHeldInForeignCurrencyAcquisitionCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CashHeldInForeignCurrencyAcquisitionCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalent, Held in Foreign Currency, Acquisition Cost",
        "terseLabel": "Foreign cash and cash equivalent",
        "verboseLabel": "Foreign cash and cash equivalent",
        "documentation": "Amount of acquisition cost for cash and cash equivalent, held in foreign currency. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r670"
     ]
    },
    "mfic_CashHeldInForeignCurrencyAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CashHeldInForeignCurrencyAtCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash held in foreign currency at cost.",
        "label": "Cash Held In Foreign Currency At Cost",
        "terseLabel": "Foreign currencies, cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CatchUpAmountMultiplyingPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CatchUpAmountMultiplyingPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Catch-up amount multiplying percentage.",
        "label": "Catch Up Amount Multiplying Percentage",
        "terseLabel": "Catch-up amount multiplying percentage"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CatoResearchMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CatoResearchMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cato Research.",
        "label": "Cato Research [Member]",
        "terseLabel": "Cato Research"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CaveEnterprisesOperationsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CaveEnterprisesOperationsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cave Enterprises Operations, LLC",
        "label": "Cave Enterprises Operations, LLC [Member]",
        "documentation": "Cave Enterprises Operations, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CaveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CaveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cave [Member]",
        "documentation": "Cave.",
        "terseLabel": "Cave"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CelerionBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CelerionBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Celerion Buyer Inc [Member]",
        "documentation": "Celerion buyer Inc.",
        "terseLabel": "Celerion Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CelerionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CelerionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Celerion",
        "label": "Celerion [Member]",
        "documentation": "Celerion.",
        "terseLabel": "Celerion"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CelinkMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CelinkMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Celink.",
        "label": "Celink [Member]",
        "terseLabel": "Celink"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CerusCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CerusCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cerus Corporation.",
        "label": "Cerus Corporation [Member]",
        "terseLabel": "Cerus Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CerusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CerusMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cerus.",
        "label": "Cerus [Member]",
        "terseLabel": "Cerus"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]",
        "documentation": "Indicates (true false) whether accounting standards update was adopted."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r101",
      "r105",
      "r129",
      "r154",
      "r206",
      "r225",
      "r229",
      "r269",
      "r342",
      "r358",
      "r362",
      "r363",
      "r416",
      "r417",
      "r439",
      "r492",
      "r505",
      "r506",
      "r534",
      "r535",
      "r556",
      "r558",
      "r559",
      "r612",
      "r613"
     ]
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Accounting Principle, Accounting Standards Update, Adoption Date",
        "documentation": "Date accounting standards update was adopted, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r101",
      "r102",
      "r129",
      "r206",
      "r225",
      "r229",
      "r269",
      "r270",
      "r342",
      "r343",
      "r358",
      "r362",
      "r363",
      "r416",
      "r417",
      "r418",
      "r439",
      "r440",
      "r492",
      "r493",
      "r505",
      "r506",
      "r507",
      "r510",
      "r534",
      "r535",
      "r556",
      "r558",
      "r559",
      "r612",
      "r613",
      "r1191",
      "r1218"
     ]
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Accounting Principle, Accounting Standards Update, Immaterial Effect [true false]",
        "documentation": "Indicates (true false) whether effect from applying amendment to accounting standards is immaterial."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r155",
      "r169",
      "r215"
     ]
    },
    "mfic_ChangeInCapitalizedPikBalanceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChangeInCapitalizedPikBalanceTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in capitalized PIK balance.",
        "label": "Change In Capitalized Pik Balance [Table Text Block]",
        "terseLabel": "Summary of Change in Capitalized PIK balance"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1132"
     ]
    },
    "mfic_ChannelsideAcquisitionCoIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChannelsideAcquisitionCoIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Channelside AcquisitionCo, Inc. [Member]",
        "documentation": "Channelside AcquisitionCo, Inc.",
        "terseLabel": "Channelside AcquisitionCo, Inc. (fka Gruden Acquisition, Inc.)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChemicalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChemicalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Chemicals",
        "label": "Chemicals [Member]",
        "documentation": "Chemicals.",
        "terseLabel": "Chemicals"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChemicalsPlasticsAndRubberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChemicalsPlasticsAndRubberMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Chemicals, plastics &amp; rubber.",
        "label": "Chemicals Plastics And Rubber [Member]",
        "terseLabel": "Chemicals, Plastics &amp; Rubber",
        "verboseLabel": "Chemicals, Plastics &amp; Rubber"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1129"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1127"
     ]
    },
    "mfic_ChronicleParentLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChronicleParentLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Chronicle Parent LLC [Member]",
        "documentation": "Chronicle Parent LLC.",
        "terseLabel": "Chronicle Parent LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChyronHegoCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChyronHegoCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ChyronHego Corporation.",
        "label": "Chyron Hego Corporation [Member]",
        "terseLabel": "ChyronHego Corporation",
        "verboseLabel": "ChyronHego US Holding Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChyronHegoHoldingCorporationOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChyronHegoHoldingCorporationOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ChyronHego US Holding Corporation",
        "label": "ChyronHego Holding Corporation One [Member]",
        "documentation": "ChyronHego Holding Corporation One."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ChyronHegoHoldingCorporationTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ChyronHegoHoldingCorporationTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ChyronHego Holding Corporation Two [Member]",
        "documentation": "ChyronHego Holding Corporation two.",
        "terseLabel": "ChyronHego US Holding Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CircusTrixHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CircusTrixHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CircusTrix Holdings LLC [Member]",
        "documentation": "CircusTrix Holdings LLC.",
        "terseLabel": "CircusTrix Holdings LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CircusTrixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CircusTrixMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CircusTrix",
        "label": "CircusTrix [Member]",
        "documentation": "CircusTrix."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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_ClarusCommerceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClarusCommerceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Clarus commerce.",
        "label": "Clarus Commerce [Member]",
        "terseLabel": "Clarus Commerce"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA-2NotesAndSubordinatedNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA-2NotesAndSubordinatedNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A-2 Notes and Subordinated Notes",
        "label": "Class A-2 Notes and Subordinated Notes [Member]",
        "documentation": "Class A-2 notes and subordinated notes."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA-2NotesDueInOctoberTwoThousandThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA-2NotesDueInOctoberTwoThousandThirtyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A2 Notes Mature in October 2035",
        "label": "Class A-2 Notes Due in October Two Thousand Thirty Five [Member]",
        "documentation": "Class A-2 Notes Due in October Two Thousand Thirty Five."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA-2RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA-2RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A2 R Senior Secured Floating Rate Notes due 2037",
        "label": "Class A-2 R Senior Secured Floating Rate Notes due Two Thousand Thirty Seven [Member]",
        "documentation": "Class A-2 R Senior Secured Floating Rate Notes due Two Thousand Thirty Seven."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA1RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA1RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A1 R Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class A1 R Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "terseLabel": "Class A1 R Senior Secured Floating Rate Notes Due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA1SeniorSecuredFloatingRateNotesDueTwoThousandThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA1SeniorSecuredFloatingRateNotesDueTwoThousandThirtyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A1 Senior Secured Floating Rate Notes Due Two Thousand Thirty Five [Member]",
        "documentation": "Class A1 senior secured floating rate notes due two thousand thirty five.",
        "terseLabel": "Class A1 Senior Secured Floating Rate Notes Due Two Thousand Thirty Five"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA1SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA1SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A1 Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class a1 senior secured floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class A1 Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven",
        "verboseLabel": "Class A-1 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA2RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA2RSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A2 R Senior Secured Floating Rate Notes Due 2037",
        "label": "Class A2 R Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class A2 R senior secured floating rate notes due two thousand thirty seven."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA2SeniorSecuredFloatingRateNotesDueTwoThousandThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA2SeniorSecuredFloatingRateNotesDueTwoThousandThirtyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A2 Senior Secured Floating Rate Notes Due Two Thousand Thirty Five [Member]",
        "documentation": "Class A2 senior secured floating rate notes due two thousand thirty five.",
        "terseLabel": "Class A2 Senior Secured Floating Rate Notes Due Two Thousand Thirty Five"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassA2SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassA2SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A2 Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class a2 senior secured floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class A2 Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven",
        "verboseLabel": "Class A-2 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassBRSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassBRSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class B R Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class B R senior secured floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class B R Senior Secured Floating Rate Notes Due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassBSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassBSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class B Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class b senior secured floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class B Senior Secured Floating Rate Notes due 2037",
        "verboseLabel": "Class B Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassC-RSecuredDeferrableFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassC-RSecuredDeferrableFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class C-R Secured Deferrable Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class C-R secured deferrable floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class C-R Secured Deferrable Floating Rate Notes Due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassCSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassCSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class C Senior Secured Floating Rate Notes due 2037",
        "label": "Class C Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class c senior secured floating rate notes due two thousand thirty seven.",
        "verboseLabel": "Class C Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassD-RSecuredDeferrableFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassD-RSecuredDeferrableFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class D-R Secured Deferrable Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class D-R secured deferrable floating rate notes due two thousand thirty seven.",
        "terseLabel": "Class D-R Secured Deferrable Floating Rate Notes Due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClassDSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClassDSeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class D Senior Secured Floating Rate Notes due 2037",
        "label": "Class D Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Class d senior secured floating rate notes due two thousand thirty seven.",
        "verboseLabel": "Class D Notes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/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": [
      "r80",
      "r116",
      "r117",
      "r118",
      "r140",
      "r144",
      "r173",
      "r174",
      "r176",
      "r178",
      "r185",
      "r186",
      "r213",
      "r240",
      "r242",
      "r243",
      "r244",
      "r247",
      "r248",
      "r273",
      "r274",
      "r276",
      "r277",
      "r279",
      "r281",
      "r284",
      "r285",
      "r288",
      "r291",
      "r298",
      "r540",
      "r637",
      "r638",
      "r639",
      "r640",
      "r655",
      "r659",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r671",
      "r701",
      "r725",
      "r756",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r1182",
      "r1211",
      "r1213",
      "r1220"
     ]
    },
    "us-gaap_ClassOfStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ClassOfStockLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Line Items]",
        "terseLabel": "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": [
      "r116",
      "r117",
      "r118",
      "r185",
      "r276",
      "r284",
      "r285",
      "r286",
      "r288",
      "r291",
      "r296",
      "r298",
      "r489",
      "r637",
      "r638",
      "r639",
      "r640",
      "r940",
      "r1182",
      "r1209",
      "r1211"
     ]
    },
    "us-gaap_ClassOfTreasuryStockTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ClassOfTreasuryStockTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Treasury Stock [Table]",
        "terseLabel": "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": [
      "r25",
      "r26",
      "r27",
      "r28"
     ]
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Converted into right to receive shares for each outstanding share of common stock",
        "label": "Class of Warrant or Right, Number of Securities Called by Each Warrant or Right",
        "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_ClubCarWashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClubCarWashMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Club car wash.",
        "label": "Club Car Wash [Member]",
        "terseLabel": "Club Car Wash"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClubCarWashOperatingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClubCarWashOperatingLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Club Car Wash Operating, LLC .",
        "label": "Club Car Wash Operating L L C [Member]",
        "terseLabel": "Club Car Wash Operating, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClubChampionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClubChampionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Club Champion LLC [Member]",
        "documentation": "Club champion llc.",
        "terseLabel": "Club Champion LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ClubChampionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ClubChampionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Club Champion [Member]",
        "documentation": "Club champion member",
        "terseLabel": "Club Champion"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CoInvestmentHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CoInvestmentHoldingsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Co-investment holdings.",
        "label": "Co Investment Holdings [Member]",
        "terseLabel": "Co-Investment Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1133"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1133"
     ]
    },
    "mfic_CollateralLoanObligationTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CollateralLoanObligationTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral Loan Obligation Transactions",
        "documentation": "Collateral loan obligation transactions.",
        "terseLabel": "CLO transaction"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ColonnadeParentIncFkaNavigaIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ColonnadeParentIncFkaNavigaIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Colonnade Parent Inc (fka Naviga Inc.) [Member]",
        "documentation": "Colonnade Parent Inc (fka Naviga Inc.).",
        "terseLabel": "Colonnade Parent Inc (fka Naviga Inc.)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommScopeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommScopeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CommScope [Member]",
        "documentation": "CommScope.",
        "terseLabel": "CommScope"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommercialServicesAndSuppliesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommercialServicesAndSuppliesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial Services &amp; Supplies",
        "label": "Commercial Services and Supplies [Member]",
        "documentation": "Commercial services and supplies."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommercialServicesSuppliesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommercialServicesSuppliesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Services &amp; Supplies [Member]",
        "documentation": "Commercial services &amp; supplies.",
        "verboseLabel": "Commercial Services &amp; Supplies",
        "terseLabel": "Commercial Services &amp; Supplies"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_AssetsNet",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (Note 8)",
        "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": [
      "r41",
      "r71",
      "r594",
      "r700"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingencies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r231",
      "r232",
      "r901",
      "r1228",
      "r1233"
     ]
    },
    "mfic_CommitmentsAndContingenciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommitmentsAndContingenciesLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments and contingencies.",
        "label": "Commitments And Contingencies [Line Items]",
        "terseLabel": "Commitments And Contingencies [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommitmentsAndContingenciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommitmentsAndContingenciesTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments and contingencies.",
        "label": "Commitments And Contingencies [Table]",
        "terseLabel": "Commitments And Contingencies [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CommonEquityInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommonEquityInterestsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Common Equity - Equity Interest",
        "terseLabel": "Common Equity/Interests",
        "documentation": "Common Equity/Interests.",
        "label": "Common Equity Interests [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock",
        "terseLabel": "Common Equity",
        "verboseLabel": "Common Stock",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r995",
      "r996",
      "r997",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1216",
      "r1217",
      "r1219",
      "r1304",
      "r1351",
      "r1376"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r701"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Shares Issued at End of Period",
        "periodStartLabel": "Shares issued at beginning of period",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares issued",
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Shares outstanding at end of period",
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding",
        "periodStartLabel": "Shares outstanding at beginning of period",
        "periodEndLabel": "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": [
      "r9",
      "r44",
      "r701",
      "r720",
      "r1376",
      "r1377"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Value, Issued",
        "verboseLabel": "Common stock, issued value",
        "terseLabel": "Common stock, $0.001 par value (130,000,000 shares authorized; 82,372,628 and 92,211,869 shares issued and outstanding, respectively)",
        "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": [
      "r44",
      "r274",
      "r280",
      "r595",
      "r989"
     ]
    },
    "mfic_CommunicationsEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CommunicationsEquipmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Communications Equipment",
        "label": "Communications Equipment [Member]",
        "documentation": "Communications equipment.",
        "terseLabel": "Communications Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1138"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1137"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1139"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1136"
     ]
    },
    "mfic_CompassHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CompassHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Compass health.",
        "label": "Compass Health [Member]",
        "terseLabel": "Compass Health"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CompuLinkCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CompuLinkCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Compu-link corporation.",
        "label": "Compu Link Corporation [Member]",
        "terseLabel": "Compu-Link Corporation (dba Celink)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsideredPercentageOfNetProceedsFromSaleOfEquityInterestForCovenantsCalculation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsideredPercentageOfNetProceedsFromSaleOfEquityInterestForCovenantsCalculation",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Considered percentage of net proceeds from sale of equity interest for covenants",
        "label": "Considered Percentage of Net Proceeds from Sale of Equity Interest for Covenants Calculation",
        "documentation": "Considered percentage of net proceeds from sale of equity interest for covenants calculation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r29",
      "r915"
     ]
    },
    "mfic_ConstructionAndBuildingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConstructionAndBuildingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Construction and Building.",
        "label": "Construction And Building [Member]",
        "terseLabel": "Construction &amp; Building",
        "verboseLabel": "Construction &amp; Building"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConstructionEngineeringMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConstructionEngineeringMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction &amp; Engineering [Member]",
        "documentation": "Construction &amp; engineering.",
        "verboseLabel": "Construction &amp; Engineering",
        "terseLabel": "Construction &amp; Engineering"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerFinanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsumerFinanceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Finance [Member]",
        "documentation": "Consumer finance.",
        "terseLabel": "Consumer Finance"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerGoodsDurableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsumerGoodsDurableMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consumer goods \u2013 durable.",
        "label": "Consumer Goods Durable [Member]",
        "terseLabel": "Consumer Goods - Durable"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerGoodsNonDurableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsumerGoodsNonDurableMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consumer goods \u2013 non-durable.",
        "label": "Consumer Goods Non Durable [Member]",
        "terseLabel": "Consumer Goods \u2013 Non-durable"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsumerServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consumer services.",
        "label": "Consumer Services [Member]",
        "terseLabel": "Consumer Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ConsumerStaplesDistributionRetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ConsumerStaplesDistributionRetailMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Staples Distribution &amp; Retail [Member]",
        "documentation": "Consumer staples distribution &amp; retail.",
        "terseLabel": "Consumer Staples Distribution &amp; Retail"
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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/20260630",
     "localname": "ContainersPackagingAndGlassMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Containers, packaging and glass.",
        "label": "Containers, Packaging and Glass [Member]",
        "terseLabel": "Containers, Packaging &amp; Glass"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ContainersPackagingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ContainersPackagingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Containers &amp; Packaging [Member]",
        "documentation": "Containers &amp; Packaging.",
        "verboseLabel": "Containers &amp; Packaging",
        "terseLabel": "Containers &amp; Packaging"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ControlledInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ControlledInvestmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlled Investments",
        "documentation": "Controlled investments member.",
        "label": "Controlled Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CoolBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CoolBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cool Buyer, Inc. [Member]",
        "documentation": "Cool buyer, inc..",
        "terseLabel": "Cool Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CoreRoofingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CoreRoofingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Core Roofing [Member]",
        "documentation": "Core roofing member",
        "terseLabel": "Core Roofing"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CoreTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CoreTrustMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CoreTrust [Member]",
        "documentation": "Coretrust.",
        "terseLabel": "CoreTrust"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CoregistrantAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "CoregistrantAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coregistrant [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "mfic_CoretrustPurchasingGroupLLCHPGEnterprisesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CoretrustPurchasingGroupLLCHPGEnterprisesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coretrust Purchasing Group LLC (HPG Enterprises LLC) [Member]",
        "documentation": "Coretrust Purchasing Group LLC (HPG Enterprises LLC).",
        "terseLabel": "Coretrust Purchasing Group LLC (HPG Enterprises LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "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": [
      "r90",
      "r91",
      "r140",
      "r147",
      "r148",
      "r252",
      "r286",
      "r569",
      "r580",
      "r590",
      "r908",
      "r910",
      "r911",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1299",
      "r1300",
      "r1301",
      "r1302"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CoverAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "terseLabel": "Cover",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/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": [
      "r239",
      "r1237"
     ]
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Domain]",
        "terseLabel": "Credit Facility",
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": [
      "r239",
      "r1237"
     ]
    },
    "mfic_CrewlineBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CrewlineBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crewline Buyer, Inc [Member]",
        "documentation": "Crewline Buyer, Inc.",
        "terseLabel": "Crewline Buyer, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CrumblEnterprisesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CrumblEnterprisesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crumbl Enterprises LLC [Member]",
        "documentation": "Crumbl Enterprises LLC.",
        "terseLabel": "Crumbl Enterprises LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CrumblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CrumblMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crumbl [Member]",
        "documentation": "Crumbl.",
        "terseLabel": "Crumbl"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_CumulativePreIncentiveFeeNetReturnDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CumulativePreIncentiveFeeNetReturnDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative pre-Incentive fee net return description.",
        "label": "Cumulative Pre Incentive Fee Net Return Description",
        "terseLabel": "Cumulative pre-Incentive fee net return description"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency [Axis]",
        "documentation": "Information by currency."
       }
      }
     },
     "auth_ref": [
      "r1326"
     ]
    },
    "mfic_CurrentFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "CurrentFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Fee",
        "label": "Current Fee [Member]",
        "documentation": "Current fee [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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_DCMParentLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DCMParentLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "DCM Parent, LLC [Member]",
        "documentation": "DCM Parent, LLC.",
        "terseLabel": "DCM Parent, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DCMServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DCMServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DCM Services",
        "label": "DCM Services [Member]",
        "documentation": "Dcm services."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DHXMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DHXMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "DHX [Member]",
        "documentation": "DHX.",
        "terseLabel": "DHX"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DRSHoldingsIIIIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DRSHoldingsIIIIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "DRS Holdings III Inc [Member]",
        "documentation": "DRS holdings III, Inc.",
        "terseLabel": "DRS Holdings III, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DairyComMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DairyComMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dairy.com",
        "label": "Dairy.com [Member]",
        "documentation": "Dairy.com."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DanDeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DanDeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dan dee.",
        "label": "Dan Dee [Member]",
        "terseLabel": "Dan Dee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DcertBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DcertBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dcert Buyer, Inc. [Member]",
        "documentation": "Dcert Buyer, Inc.",
        "terseLabel": "Dcert Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtAndEquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtAndEquitySecuritiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt and Equity Securities [Member]",
        "documentation": "Debt and Equity Securities."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtAndForeignCurrencyTransactionsAndTranslationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtAndForeignCurrencyTransactionsAndTranslationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and foreign currency transactions and translations.",
        "label": "Debt And Foreign Currency Transactions And Translations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtAndForeignCurrencyTransactionsAndTranslationsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and foreign currency transactions and translations.",
        "label": "Debt And Foreign Currency Transactions And Translations [Text Block]",
        "terseLabel": "Debt and Foreign Currency Transactions and Translations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtConversionConvertedInstrumentAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtConversionConvertedInstrumentAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Conversion, Converted Instrument, Amount",
        "terseLabel": "Debt conversion, converted into common equity",
        "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": [
      "r16",
      "r17"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "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": [
      "r10",
      "r33",
      "r34",
      "r67",
      "r70",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r988",
      "r1209",
      "r1210",
      "r1212",
      "r1215",
      "r1229",
      "r1230",
      "r1231",
      "r1327",
      "r1329",
      "r1339"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Basis spread",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Borrowing base interest rate",
        "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/2025",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Principal Amount Outstanding",
        "terseLabel": "Principal Outstanding",
        "label": "Outstanding debt obligations",
        "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": [
      "r10",
      "r70",
      "r266"
     ]
    },
    "us-gaap_DebtInstrumentCreditRating": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentCreditRating",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Credit Rating",
        "terseLabel": "Credit Rating",
        "verboseLabel": "Expected Rating(S&amp;P/Fitch)",
        "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": [
      "r10",
      "r21"
     ]
    },
    "us-gaap_DebtInstrumentDateOfFirstRequiredPayment1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentDateOfFirstRequiredPayment1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Date of First Required Payment",
        "terseLabel": "Date of first required payment to repay",
        "documentation": "Date the debt agreement requires the first payment to be made, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r31"
     ]
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Description of Variable Rate Basis",
        "terseLabel": "Debt Instrument interest rate description",
        "documentation": "Description of reference rate used for variable rate of debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Aggregate Principal Amount Committed",
        "verboseLabel": "Aggregate principal amount",
        "terseLabel": "Par Amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r249",
      "r554",
      "r555",
      "r935",
      "r936",
      "r988"
     ]
    },
    "us-gaap_DebtInstrumentFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Instrument, Fair Value Disclosure, Total",
        "label": "Debt Instrument, Fair Value Disclosure",
        "verboseLabel": "Fair Value of Debt Obligations",
        "terseLabel": "Fair Value",
        "documentation": "Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r536",
      "r537",
      "r538",
      "r539",
      "r935",
      "r936",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1316"
     ]
    },
    "us-gaap_DebtInstrumentFrequencyOfPeriodicPayment": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentFrequencyOfPeriodicPayment",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Frequency of Periodic Payment",
        "terseLabel": "Frequency of periodic payment",
        "documentation": "Description of the frequency of periodic payments (monthly, quarterly, annual)."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r31"
     ]
    },
    "mfic_DebtInstrumentFrontingFeesOnLettersOfCreditIssued": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentFrontingFeesOnLettersOfCreditIssued",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument fronting fees on letters of credit issued.",
        "label": "Debt Instrument Fronting Fees On Letters Of Credit Issued",
        "terseLabel": "Fronting fees on letters of credit issued"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentInterestRateDuringPeriod",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Coupon",
        "verboseLabel": "Interest Rate",
        "label": "Debt Instrument, Interest Rate During Period",
        "totalLabel": "Total annualized interest cost",
        "documentation": "The average effective interest rate during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r261",
      "r1327"
     ]
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Annual interest rate",
        "verboseLabel": "Interest rate on funded borrowings decreased",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r250"
     ]
    },
    "us-gaap_DebtInstrumentIssuanceDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentIssuanceDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Issuance Date",
        "terseLabel": "Date Issued/ Amended",
        "documentation": "Date the debt instrument was issued, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r1242"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r489",
      "r588",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r988",
      "r1209",
      "r1210",
      "r1212",
      "r1215",
      "r1327",
      "r1329"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Final Maturity Date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r934",
      "r1308",
      "r1309"
     ]
    },
    "mfic_DebtInstrumentMaturityMonthAndYear": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentMaturityMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Maturity Month and Year",
        "documentation": "Debt instrument, maturity month and year.",
        "terseLabel": "Debt instrument maturity month and year"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DebtInstrumentMaturityYear": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentMaturityYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument Maturity Year",
        "documentation": "Debt instrument maturity year.",
        "terseLabel": "Debt instrument maturity year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentMeasurementInput",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Measurement Input",
        "terseLabel": "Quantitative Information on Unobservable input",
        "documentation": "Value of input used to measure debt instrument, including, but not limited to, convertible and non-convertible debt."
       }
      }
     },
     "auth_ref": [
      "r1307",
      "r1308",
      "r1309"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "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": [
      "r10",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r988",
      "r1209",
      "r1210",
      "r1212",
      "r1215",
      "r1229",
      "r1230",
      "r1231",
      "r1327",
      "r1329",
      "r1339"
     ]
    },
    "mfic_DebtInstrumentNumberOfInstallment": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentNumberOfInstallment",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument number of installment.",
        "label": "Debt Instrument Number Of Installment",
        "terseLabel": "Number of installment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Period [Axis]",
        "terseLabel": "Debt Instrument, Redemption, Period",
        "documentation": "Information by period of debt redemption feature under terms of debt agreement."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Period [Domain]",
        "terseLabel": "Debt Instrument, Redemption, Period",
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodFourMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Period Four [Member]",
        "terseLabel": "2029",
        "documentation": "Period four representing fourth most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "terseLabel": "2023",
        "verboseLabel": "2026",
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "mfic_DebtInstrumentRedemptionPeriodSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentRedemptionPeriodSixMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2030",
        "label": "Debt Instrument Redemption Period Six [Member]",
        "documentation": "Debt Instrument Redemption Period Six Member."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentRedemptionPeriodStartDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodStartDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption Period, Start Date",
        "terseLabel": "Redemption period, start date",
        "verboseLabel": "Debt instrument redemption start date",
        "documentation": "Start date of debt instrument redemption period, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "terseLabel": "2024",
        "verboseLabel": "2027",
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "mfic_DebtInstrumentRedemptionRatePerNote": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DebtInstrumentRedemptionRatePerNote",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument redemption rate per note.",
        "label": "Debt Instrument Redemption Rate Per Note",
        "terseLabel": "Debt instrument redemption rate per note"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Debt Instrument [Table]",
        "documentation": "Disclosure of information about long-term debt instrument or arrangement."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r21",
      "r24",
      "r30",
      "r61",
      "r62",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r489",
      "r588",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r988",
      "r1209",
      "r1210",
      "r1212",
      "r1215",
      "r1327",
      "r1329"
     ]
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails": {
       "parentTag": "us-gaap_LongTermDebt",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "negatedLabel": "Deferred Financing Costs and Debt Discount",
        "terseLabel": "Deferred financing costs and unamortized original discount",
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r255",
      "r267",
      "r553",
      "r554",
      "r555",
      "r935",
      "r936",
      "r988"
     ]
    },
    "us-gaap_DebtInstrumentVariableInterestRateTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtInstrumentVariableInterestRateTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "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": [
      "r589"
     ]
    },
    "us-gaap_DebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DebtSecuritiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities [Member]",
        "documentation": "Debt instrument issued by corporations, governments and governmental agencies, municipalities, and other institutions."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r997",
      "r1381"
     ]
    },
    "mfic_DecisionHRHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DecisionHRHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DecisionHR Holdings, Inc.",
        "label": "DecisionHR Holdings Inc [Member]",
        "documentation": "DecisionHR Holdings Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DecisionHRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DecisionHRMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DecisionHR",
        "label": "DecisionHR [Member]",
        "documentation": "DecisionHR Member."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredChargesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredChargesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Costs",
        "label": "Deferred Charges, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for deferral and amortization of significant deferred charges."
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "us-gaap_DeferredCostsCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DeferredCostsCurrentAndNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred Costs, Total",
        "label": "Deferred Costs",
        "terseLabel": "Deferred financing costs",
        "documentation": "The carrying amount of deferred costs."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DefinitiLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DefinitiLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Definiti LLC",
        "label": "Definiti LLC [Member]",
        "documentation": "Definiti LLC."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DelayedOrContinuousOffering": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DelayedOrContinuousOffering",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Delayed or Continuous Offering"
       }
      }
     },
     "auth_ref": [
      "r1038",
      "r1039",
      "r1118"
     ]
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeAssetNotionalAmount",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Notional Amount",
        "terseLabel": "Notional amount to be sold",
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset."
       }
      }
     },
     "auth_ref": [
      "r821",
      "r829",
      "r833",
      "r843",
      "r1292",
      "r1293"
     ]
    },
    "us-gaap_DerivativeAssetTypeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeAssetTypeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Type [Extensible Enumeration]",
        "documentation": "Indicates type of derivative asset."
       }
      }
     },
     "auth_ref": [
      "r520",
      "r678",
      "r683",
      "r685",
      "r686",
      "r706",
      "r707",
      "r708",
      "r710",
      "r711",
      "r712",
      "r713",
      "r740",
      "r741",
      "r742",
      "r743",
      "r746",
      "r747",
      "r748",
      "r749",
      "r821",
      "r827",
      "r833",
      "r838",
      "r840",
      "r841",
      "r844",
      "r845",
      "r995",
      "r997"
     ]
    },
    "us-gaap_DerivativeAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative contracts held by the company",
        "totalLabel": "Derivative Asset, Total",
        "verboseLabel": "Unrealized appreciation on foreign currency forward contracts",
        "label": "Net derivative asset at fair value",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r120",
      "r485",
      "r517",
      "r518",
      "r530",
      "r536",
      "r537",
      "r538",
      "r673",
      "r674",
      "r675",
      "r677",
      "r678",
      "r680",
      "r681",
      "r683",
      "r685",
      "r686",
      "r707",
      "r708",
      "r821",
      "r830",
      "r838",
      "r839",
      "r845",
      "r846",
      "r905",
      "r907",
      "r909",
      "r910",
      "r911",
      "r977",
      "r980",
      "r987",
      "r997",
      "r1307",
      "r1308",
      "r1309",
      "r1360"
     ]
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract",
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r128",
      "r453",
      "r455",
      "r456",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r683",
      "r686",
      "r706",
      "r707",
      "r708",
      "r710",
      "r711",
      "r712",
      "r713",
      "r715",
      "r716",
      "r717",
      "r718",
      "r740",
      "r741",
      "r742",
      "r743",
      "r746",
      "r747",
      "r748",
      "r749",
      "r821",
      "r825",
      "r838",
      "r845",
      "r907",
      "r908",
      "r911",
      "r973",
      "r974",
      "r995",
      "r997",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1317",
      "r1318"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral",
        "totalLabel": "Derivative Asset, Subject to Master Netting Arrangement, before Offset of Collateral, Total",
        "terseLabel": "Offsetting assets and liabilities derivative contract",
        "documentation": "Fair value, after offset of derivative liability, of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, before offset against an obligation to return collateral under a master netting arrangement. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement."
       }
      }
     },
     "auth_ref": [
      "r1197",
      "r1299",
      "r1302"
     ]
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeFairValueOfDerivativeNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Derivative, Fair Value, Net",
        "totalLabel": "Derivative, Fair Value, Net, Total",
        "verboseLabel": "Derivative instruments fair market value",
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives."
       }
      }
     },
     "auth_ref": [
      "r536"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r128",
      "r453",
      "r455",
      "r456",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r683",
      "r686",
      "r706",
      "r707",
      "r708",
      "r710",
      "r711",
      "r712",
      "r713",
      "r715",
      "r716",
      "r717",
      "r718",
      "r740",
      "r741",
      "r742",
      "r743",
      "r746",
      "r747",
      "r748",
      "r749",
      "r821",
      "r825",
      "r838",
      "r845",
      "r907",
      "r908",
      "r911",
      "r973",
      "r974",
      "r995",
      "r997",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1310",
      "r1311",
      "r1312",
      "r1313",
      "r1314",
      "r1315",
      "r1317",
      "r1318"
     ]
    },
    "us-gaap_DerivativeLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability",
        "totalLabel": "Derivative Liability, Total",
        "terseLabel": "Unrealized depreciation on foreign currency forward contracts",
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r120",
      "r485",
      "r517",
      "r518",
      "r530",
      "r536",
      "r537",
      "r538",
      "r673",
      "r674",
      "r675",
      "r677",
      "r680",
      "r681",
      "r683",
      "r685",
      "r686",
      "r715",
      "r717",
      "r718",
      "r825",
      "r826",
      "r830",
      "r838",
      "r839",
      "r845",
      "r846",
      "r907",
      "r909",
      "r910",
      "r911",
      "r1307",
      "r1308",
      "r1309",
      "r1360"
     ]
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeLiabilityNotionalAmount",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Notional amount to be purchased",
        "label": "Derivative Liability, Notional Amount",
        "verboseLabel": "Derivative instruments notional amounts",
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability."
       }
      }
     },
     "auth_ref": [
      "r823",
      "r829",
      "r832",
      "r843",
      "r1292",
      "r1293"
     ]
    },
    "us-gaap_DerivativeLiabilityTypeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeLiabilityTypeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liability, Type [Extensible Enumeration]",
        "documentation": "Indicates type of derivative liability."
       }
      }
     },
     "auth_ref": [
      "r520",
      "r683",
      "r685",
      "r686",
      "r715",
      "r716",
      "r717",
      "r718",
      "r822",
      "r825",
      "r827",
      "r832",
      "r838",
      "r840",
      "r841",
      "r844",
      "r845",
      "r995"
     ]
    },
    "us-gaap_DerivativeMaturityDates": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativeMaturityDates",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Settlement Date",
        "label": "Derivative, Contract End Date",
        "documentation": "Date derivative contract ends, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r685",
      "r686",
      "r821",
      "r824",
      "r828",
      "r835",
      "r842",
      "r997"
     ]
    },
    "us-gaap_DerivativesOffsettingFairValueAmountsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativesOffsettingFairValueAmountsPolicy",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Offsetting Fair Value Amounts, Policy [Policy Text Block]",
        "terseLabel": "Offsetting Assets and Liabilities",
        "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": [
      "r452",
      "r1298",
      "r1300",
      "r1301",
      "r1302"
     ]
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DerivativesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Policy [Policy Text Block]",
        "terseLabel": "Derivative Instruments",
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r149",
      "r168",
      "r451",
      "r482",
      "r484",
      "r486",
      "r487",
      "r488",
      "r490",
      "r491"
     ]
    },
    "mfic_DigiCertMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DigiCertMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "DigiCert",
        "label": "DigiCert [Member]",
        "documentation": "DigiCert",
        "terseLabel": "DigiCert"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DigitalAiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DigitalAiMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Digital.ai",
        "label": "Digital.ai [Member]",
        "documentation": "Digital.ai."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DigitalAiSoftwareHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DigitalAiSoftwareHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Digital.ai Software Holdings, Inc.",
        "label": "Digital Ai Software Holdings Inc [Member]",
        "verboseLabel": "Digital.ai Software Holdings, Inc.",
        "terseLabel": "Digital.ai Software Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DiscountRateOfAverageNetAssetValuePerShare": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DiscountRateOfAverageNetAssetValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discount rate of average net asset value per share.",
        "label": "Discount Rate Of Average Net Asset Value Per Share",
        "terseLabel": "Discount rate of average net asset value per share"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DistinctHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DistinctHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distinct Holdings Inc",
        "label": "Distinct Holdings Inc [Member]",
        "documentation": "Distinct holdings inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DistinctMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DistinctMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Distinct member",
        "terseLabel": "Distinct",
        "label": "Distinct [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_DistributionServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DistributionServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution/Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "cef_DistributionsMayReducePrincipalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DistributionsMayReducePrincipalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distributions May Reduce Principal [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1048"
     ]
    },
    "mfic_DiversifiedConsumerServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DiversifiedConsumerServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diversified Consumer Services [Member]",
        "documentation": "Diversified consumer services.",
        "verboseLabel": "Diversified Consumer Services",
        "terseLabel": "Diversified Consumer Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DiversifiedInvestmentVehicleBankingFinanceAndRealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DiversifiedInvestmentVehicleBankingFinanceAndRealEstateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Diversified investment vehicle, banking, finance and real estate.",
        "label": "Diversified Investment Vehicle Banking Finance And Real Estate [Member]",
        "terseLabel": "Diversified Investment Vehicles, Banking, Finance, Real Estate"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DiversifiedTelecommunicationServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DiversifiedTelecommunicationServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diversified Telecommunication Services [Member]",
        "documentation": "Diversified telecommunication services.",
        "terseLabel": "Diversified Telecommunication Services"
       }
      }
     },
     "auth_ref": []
    },
    "cef_DividendAndInterestExpensesOnShortSalesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1078"
     ]
    },
    "cef_DividendExpenseOnPreferredSharesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DividendExpenseOnPreferredSharesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Expenses on Preferred Shares [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "mfic_DividendIncomeFromStructuredProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DividendIncomeFromStructuredProducts",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Income From Structured Products",
        "documentation": "Dividend income from structured products.",
        "terseLabel": "Dividend income from structured products"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DividendIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Dividend Income, Operating, Total",
        "label": "Dividend Income, Operating",
        "terseLabel": "Dividend income",
        "documentation": "Amount of operating dividend income on securities."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r652",
      "r726",
      "r867",
      "r869",
      "r1006",
      "r1007",
      "r1392"
     ]
    },
    "dei_DividendOrInterestReinvestmentPlanOnly": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DividendOrInterestReinvestmentPlanOnly",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend or Interest Reinvestment Plan Only"
       }
      }
     },
     "auth_ref": [
      "r1038",
      "r1039",
      "r1118"
     ]
    },
    "us-gaap_DividendPayableDateToBePaidDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendPayableDateToBePaidDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend payable date",
        "label": "Dividends Payable, Date to be Paid",
        "documentation": "Date the declared dividend will be paid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "cef_DividendReinvestmentAndCashPurchaseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "DividendReinvestmentAndCashPurchaseFees",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Reinvestment and Cash Purchase Fees"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "us-gaap_DividendsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends [Axis]",
        "documentation": "Information by event wherein earnings are distributed to shareholder."
       }
      }
     },
     "auth_ref": [
      "r1244",
      "r1245"
     ]
    },
    "us-gaap_DividendsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends [Domain]",
        "documentation": "Event wherein earnings are distributed to shareholder."
       }
      }
     },
     "auth_ref": [
      "r1244",
      "r1245"
     ]
    },
    "us-gaap_DividendsPayableAmountPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableAmountPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend declared per share",
        "label": "Dividends Payable, Amount Per Share",
        "documentation": "The per share amount of a dividend declared, but not paid, as of the financial reporting date."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_DividendsPayableDateDeclaredDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableDateDeclaredDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend declared date",
        "label": "Dividends Payable, Date Declared",
        "documentation": "Date the dividend to be paid was declared, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "us-gaap_DividendsPayableDateOfRecordDayMonthAndYear": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "DividendsPayableDateOfRecordDayMonthAndYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend record date",
        "label": "Dividends Payable, Date of Record",
        "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/2025",
     "localname": "DividendsReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Receivable",
        "terseLabel": "Dividends receivable",
        "documentation": "Carrying amount as of the balance sheet date of dividends declared but not received."
       }
      }
     },
     "auth_ref": [
      "r1193",
      "r1379"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Line Items]",
        "terseLabel": "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/2025",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "terseLabel": "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/2025",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1014"
     ]
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1010"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1119"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentType",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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_DrSchollsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DrSchollsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dr. Scholl's",
        "documentation": "Dr. scholls.",
        "label": "Dr. Scholls [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_DrawnCommitments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "DrawnCommitments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Drawn Commitment",
        "label": "Drawn Commitments",
        "documentation": "Drawn commitments."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1131"
     ]
    },
    "mfic_EPacFlexiblePackagingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EPacFlexiblePackagingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ePac Flexible Packaging",
        "label": "ePac Flexible Packaging [Member]",
        "documentation": "ePac flexible packaging."
       }
      }
     },
     "auth_ref": []
    },
    "currency_EUR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "EUR",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Euro Member Countries, Euro",
        "terseLabel": "European Euro"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EVERAGCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EVERAGCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EVER.AG Corporation",
        "label": "EVER.AG Corporation [Member]",
        "documentation": "EVER.AG Corporation."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EaglePurchaserIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EaglePurchaserIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Eagle Purchaser, Inc.",
        "label": "Eagle Purchaser, Inc. [Member]",
        "documentation": "Eagle Purchaser, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EagleUSPurchaserIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EagleUSPurchaserIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Eagle U.S. Purchaser, Inc [Member]",
        "documentation": "Eagle U.S. Purchaser, Inc.",
        "terseLabel": "Eagle U.S. Purchaser, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Earnings Per Share, Basic, Total",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic earnings (loss) per share",
        "verboseLabel": "Earnings (Loss) Per Share - Basic",
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r127",
      "r158",
      "r159",
      "r160",
      "r161",
      "r162",
      "r163",
      "r164",
      "r165",
      "r172",
      "r173",
      "r176",
      "r177",
      "r178",
      "r182",
      "r272",
      "r344",
      "r369",
      "r443",
      "r514",
      "r515",
      "r583",
      "r604",
      "r916"
     ]
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareBasicAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic [Abstract]",
        "terseLabel": "Basic Earnings Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "terseLabel": "Earnings Per Share - Diluted",
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r127",
      "r158",
      "r159",
      "r160",
      "r161",
      "r162",
      "r163",
      "r164",
      "r165",
      "r173",
      "r176",
      "r177",
      "r178",
      "r182",
      "r272",
      "r344",
      "r369",
      "r443",
      "r514",
      "r515",
      "r583",
      "r604",
      "r916"
     ]
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EarningsPerShareTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Share",
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r171",
      "r179",
      "r180",
      "r181"
     ]
    },
    "mfic_EconomicOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EconomicOwnershipPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Economic ownership percentage",
        "label": "Economic Ownership Percentage",
        "documentation": "Economic ownership percentage."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effect of foreign exchange rate changes on cash and cash equivalents",
        "label": "Effect of Exchange Rate on Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation",
        "documentation": "Amount of increase (decrease) from effect of exchange rate change on cash and cash equivalent, and cash and cash equivalent restricted to withdrawal or usage; held in foreign currency; attributable to continuing operation. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is 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": [
      "r545"
     ]
    },
    "dei_EffectiveAfter60Days486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveAfter60Days486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective after 60 Days, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1178"
     ]
    },
    "dei_EffectiveOnDate486a": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1178"
     ]
    },
    "dei_EffectiveOnDate486b": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1179"
     ]
    },
    "dei_EffectiveOnSetDate486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnSetDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r1178"
     ]
    },
    "dei_EffectiveOnSetDate486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveOnSetDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1179"
     ]
    },
    "dei_EffectiveUponFiling462e": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveUponFiling462e",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Upon Filing, 462(e)"
       }
      }
     },
     "auth_ref": [
      "r1177"
     ]
    },
    "dei_EffectiveUponFiling486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveUponFiling486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective upon Filing, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r1179"
     ]
    },
    "dei_EffectiveWhenDeclaredSection8c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EffectiveWhenDeclaredSection8c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective when Declared, Section 8(c)"
       }
      }
     },
     "auth_ref": [
      "r1181"
     ]
    },
    "cef_EffectsOfLeveragePurposeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeveragePurposeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage, Purpose [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_EffectsOfLeverageTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeverageTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_EffectsOfLeverageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "EffectsOfLeverageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1093"
     ]
    },
    "mfic_EightPointZeroZeroPercentDueTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EightPointZeroZeroPercentDueTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eight point zero zero percent due two thousand twenty eight.",
        "label": "Eight Point Zero Zero Percent Due Two Thousand Twenty Eight [Member]",
        "terseLabel": "8.00% Notes Due 2028"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElaseMedSpasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElaseMedSpasMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Elase Med Spas",
        "label": "Elase Med Spas [Member]",
        "documentation": "Elase Med Spas."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EldrickcoLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EldrickcoLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eldrickco limited.",
        "label": "Eldrickco Limited [Member]",
        "terseLabel": "Eldrickco Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElectricUtilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElectricUtilitiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Utilities [Member]",
        "documentation": "Electric utilities.",
        "terseLabel": "Electric Utilities"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElectricalEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElectricalEquipmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electrical Equipment [Member]",
        "documentation": "Electrical equipment.",
        "terseLabel": "Electrical Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElectronicEquipmentInstrumentsAndComponentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElectronicEquipmentInstrumentsAndComponentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electronic Equipment, Instruments And Components [Member]",
        "documentation": "Electronic equipment, instruments and components.",
        "verboseLabel": "Electronic Equipment, Instruments &amp; Components",
        "terseLabel": "Electronic Equipment, Instruments &amp; Components"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElectronicEquipmentInstrumentsComponentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElectronicEquipmentInstrumentsComponentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electronic Equipment, Instruments Components [Member]",
        "documentation": "Electronic Equipment, Instruments Components Member.",
        "terseLabel": "Electronic Equipment, Instruments &amp; Components"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ElidaBeautyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ElidaBeautyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elida Beauty [Member]",
        "documentation": "Elida Beauty",
        "terseLabel": "Elida Beauty"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EmpiRxHealthLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EmpiRxHealthLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Empi Rx Health LLC",
        "documentation": "EmpiRx Health LLC.",
        "label": "Empi Rx Health L L C [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EmpiRxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EmpiRxMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "EmpiRx.",
        "label": "Empi Rx [Member]",
        "terseLabel": "Empi Rx"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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": [
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1271",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276"
     ]
    },
    "mfic_EnergyElectricityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EnergyElectricityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Energy \u2013 Electricity.",
        "label": "Energy Electricity [Member]",
        "terseLabel": "Energy - Electricity"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EnergyEquipmentServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EnergyEquipmentServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Energy Equipment &amp; Services",
        "label": "Energy Equipment &amp; Services [Member]",
        "documentation": "Energy equipment &amp; services."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EntertainmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EntertainmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entertainment [Member]",
        "verboseLabel": "Entertainment",
        "terseLabel": "Entertainment",
        "documentation": "Performance, including, but not limited to, film, music, cable broadcast and video game."
       }
      }
     },
     "auth_ref": [
      "r1247",
      "r1248"
     ]
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "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/2025",
     "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/2025",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "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/2025",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1012"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "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/2025",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r1012"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1180"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1012"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1171"
     ]
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1170"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1012"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1012"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r1012"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1012"
     ]
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1172"
     ]
    },
    "mfic_EnvironmentalIndustriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EnvironmentalIndustriesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Environmental Industries",
        "label": "Environmental Industries [Member]",
        "documentation": "Environmental Industries."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EpacHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EpacHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Epac Holdings LLC [member]",
        "documentation": "Epac holdings L L C.",
        "terseLabel": "Epac Holdings LLC",
        "verboseLabel": "ePac Holdings LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1125"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1166"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1166"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1166"
     ]
    },
    "us-gaap_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityClassOfTreasuryStockLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityClassOfTreasuryStockLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Class of Treasury Stock [Line Items]",
        "terseLabel": "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/2025",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r97",
      "r104",
      "r105",
      "r124",
      "r125",
      "r126",
      "r151",
      "r152",
      "r153",
      "r156",
      "r164",
      "r166",
      "r168",
      "r184",
      "r214",
      "r218",
      "r226",
      "r271",
      "r299",
      "r344",
      "r356",
      "r357",
      "r365",
      "r366",
      "r367",
      "r370",
      "r442",
      "r443",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r513",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r556",
      "r557",
      "r563",
      "r600",
      "r614",
      "r615",
      "r616",
      "r655",
      "r756"
     ]
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Domain]",
        "terseLabel": "Investment, Name",
        "documentation": "Name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r211",
      "r212",
      "r361",
      "r540",
      "r1184",
      "r1185",
      "r1186",
      "r1277",
      "r1278",
      "r1279",
      "r1280"
     ]
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Investment owned, percent of fair value",
        "verboseLabel": "Investment owned, percent of fair value",
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r540"
     ]
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquityMethodInvestmentsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments [Table Text Block]",
        "terseLabel": "Unaudited Summarized Financial Information For Merx",
        "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": [
      "r209"
     ]
    },
    "us-gaap_EquitySecuritiesByIndustryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesByIndustryAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Axis]",
        "terseLabel": "Industry Sector",
        "documentation": "Information by industry sector, examples include but are not limited to, commercial, industrial, agricultural, financial services, technology, healthcare and real estate."
       }
      }
     },
     "auth_ref": [
      "r675",
      "r679",
      "r682",
      "r778",
      "r795",
      "r817",
      "r876",
      "r929",
      "r930",
      "r977",
      "r978",
      "r980",
      "r997"
     ]
    },
    "us-gaap_EquitySecuritiesFvNiMeasurementInput": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesFvNiMeasurementInput",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities, FV-NI, Measurement Input",
        "terseLabel": "Quantitative Information on Unobservable 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": [
      "r519",
      "r520",
      "r521"
     ]
    },
    "us-gaap_EquitySecuritiesIndustryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesIndustryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Domain]",
        "terseLabel": "Industry Sector",
        "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": [
      "r675",
      "r679",
      "r682",
      "r778",
      "r795",
      "r817",
      "r876",
      "r929",
      "r930",
      "r977",
      "r978",
      "r980",
      "r997"
     ]
    },
    "us-gaap_EquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EquitySecuritiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity Securities",
        "label": "Equity Securities [Member]",
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r991",
      "r1003",
      "r1004",
      "r1005",
      "r1381"
     ]
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1135"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1020",
      "r1031",
      "r1111",
      "r1145"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1017",
      "r1028",
      "r1108",
      "r1142"
     ]
    },
    "mfic_EscalentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EscalentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Escalent [Member]",
        "documentation": "Escalent member",
        "terseLabel": "Escalent"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EvergreenIXBorrower2023LLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EvergreenIXBorrower2023LLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evergreen IX Borrower 2023, LLC",
        "label": "Evergreen IX Borrower 2023, LLC [Member]",
        "documentation": "Evergreen IX Borrower 2023, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EvolvTechnologiesHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EvolvTechnologiesHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Evolv Technologies Holdings, Inc [Member]",
        "documentation": "Evolv Technologies Holdings, Inc.",
        "terseLabel": "Evolv Technologies Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EvolvTechnologiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EvolvTechnologiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evolv Technologies",
        "label": "Evolv Technologies [Member]",
        "documentation": "Evolv technologies."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_EvorielMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "EvorielMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Evoriel [Member]",
        "documentation": "Evoriel.",
        "terseLabel": "Evoriel"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ExactCareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ExactCareMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ExactCare [Member]",
        "documentation": "ExactCare.",
        "verboseLabel": "ExactCare",
        "terseLabel": "ExactCare"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ExactCareParentIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ExactCareParentIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ExactCare Parent, Inc.",
        "label": "ExactCare Parent, Inc. [Member]",
        "documentation": "ExactCare Parent, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ExcelligenceLearningCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ExcelligenceLearningCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excelligence Learning Corporation [Member]",
        "documentation": "Excelligence learning corporation.",
        "terseLabel": "Excelligence Learning Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ExcelligenceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ExcelligenceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excelligence [Member]",
        "documentation": "Excelligence",
        "terseLabel": "Excelligence"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r1141"
     ]
    },
    "dei_ExhibitsOnly462d": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ExhibitsOnly462d",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d)"
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "dei_ExhibitsOnly462dFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ExhibitsOnly462dFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d), File Number"
       }
      }
     },
     "auth_ref": [
      "r1176"
     ]
    },
    "cef_ExpenseExampleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_ExpenseExampleYear01": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYear01",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Year 01"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "cef_ExpenseExampleYears1to10": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to10",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 10"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "cef_ExpenseExampleYears1to3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 3"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "cef_ExpenseExampleYears1to5": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ExpenseExampleYears1to5",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 5"
       }
      }
     },
     "auth_ref": [
      "r1071"
     ]
    },
    "mfic_ExpensesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ExpensesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses",
        "documentation": "Expenses, policy.",
        "label": "Expenses Policy [Policy Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FAndMBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FAndMBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F and M Buyer LLC [Member]",
        "documentation": "F&amp;M Buyer LLC.",
        "terseLabel": "F&amp;M Buyer LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FMBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FMBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F&amp;M Buyer LLC [Member]",
        "terseLabel": "F&amp;M Buyer LLC",
        "documentation": "F&amp;M Buyer LLC."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetRecurringBasisStillHeldUnrealizedGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r526",
      "r531",
      "r979"
     ]
    },
    "mfic_FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FairValueAssetsLiabilitiesTransferBetweenLevels1ToLevel2",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value assets liabilities transfer between levels 1 to level 2",
        "label": "Fair Value Assets Liabilities Transfer Between Levels 1 to Level 2",
        "documentation": "Fair value assets liabilities transfer between levels 1 to level 2."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net change in unrealized gains (losses) on Level 3 investments still held",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "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": [
      "r526",
      "r531",
      "r978",
      "r979"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Summary of Unobservable Inputs Used in Fair Value Measurements of Level 3 Investments",
        "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": [
      "r522",
      "r526",
      "r531",
      "r978"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r308",
      "r309",
      "r516",
      "r518",
      "r519",
      "r520",
      "r521",
      "r527",
      "r530",
      "r532",
      "r536",
      "r574",
      "r575",
      "r576",
      "r905",
      "r935",
      "r936",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r977",
      "r980",
      "r987"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r301",
      "r306",
      "r308",
      "r518",
      "r530",
      "r536",
      "r574",
      "r905",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r977",
      "r987"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r257",
      "r301",
      "r306",
      "r308",
      "r310",
      "r518",
      "r519",
      "r530",
      "r536",
      "r575",
      "r905",
      "r935",
      "r936",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r977",
      "r987"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r308",
      "r309",
      "r518",
      "r519",
      "r520",
      "r521",
      "r530",
      "r536",
      "r576",
      "r905",
      "r935",
      "r936",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r977",
      "r980",
      "r987"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share [Line Items]",
        "terseLabel": "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": [
      "r516",
      "r532",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerSharePercentEquitySecurities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerSharePercentEquitySecurities",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share, Percent Equity Securities",
        "terseLabel": "Percentage of Total Investments (at Fair Value)",
        "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/2025",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share [Table]",
        "terseLabel": "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": [
      "r516",
      "r532",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986"
     ]
    },
    "us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Investments, Entities that Calculate Net Asset Value Per Share, Unfunded Commitments",
        "terseLabel": "Unfunded commitments measured at fair value",
        "negatedLabel": "Unfunded commitments measured at fair value",
        "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": [
      "r533",
      "r981"
     ]
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value Measurements",
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net realized gains (losses)",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3)."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r531",
      "r978",
      "r979"
     ]
    },
    "mfic_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetAmortizationOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetAmortizationOnInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net amortization on investments",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Amortization on Investments",
        "documentation": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Amortization on Investments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetChangeInUnrealizedGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetNetChangeInUnrealizedGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net change in unrealized gains (losses)",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Net Change In Unrealized Gains (Losses)",
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis asset net change in unrealized gains (losses)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases, including capitalized PIK",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r528",
      "r531",
      "r978"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Sales",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, 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": [
      "r524",
      "r531",
      "r978"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers into Level 3",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r525",
      "r529",
      "r531",
      "r978"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Transfers out of Level 3",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy."
       }
      }
     },
     "auth_ref": [
      "r525",
      "r529",
      "r531",
      "r978"
     ]
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Fair value, Ending balance",
        "periodStartLabel": "Fair value, Beginning balance",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r522",
      "r531",
      "r978"
     ]
    },
    "mfic_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisProceedsFromSalesAndRepaymentsOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisProceedsFromSalesAndRepaymentsOfInvestments",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Proceeds from sales and repayments of investments",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Proceeds from Sales and Repayments of Investments",
        "documentation": "Fair value, measurement with unobservable inputs reconciliation, recurring basis, proceeds from sales and repayments of investments."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r308",
      "r309",
      "r516",
      "r518",
      "r519",
      "r520",
      "r521",
      "r527",
      "r530",
      "r532",
      "r536",
      "r574",
      "r575",
      "r576",
      "r905",
      "r935",
      "r936",
      "r941",
      "r942",
      "r943",
      "r944",
      "r945",
      "r977",
      "r980",
      "r987"
     ]
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Changes in Fair Value of Investments",
        "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": [
      "r522",
      "r526",
      "r531"
     ]
    },
    "us-gaap_FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FairValueRecurringBasisUnobservableInputReconciliationAssetGainLossStatementOfIncomeExtensibleList",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r523",
      "r531"
     ]
    },
    "mfic_FeeOffsetAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FeeOffsetAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fee offset agreement.",
        "label": "Fee Offset Agreement [Member]",
        "terseLabel": "Fee Offset Agreement",
        "verboseLabel": "Fee Offset Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FeeOffsetPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fee offset period.",
        "label": "Fee Offset Period",
        "terseLabel": "Fee offset period"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetPeriodDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FeeOffsetPeriodDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee offset period description",
        "documentation": "Fee offset period description.",
        "label": "Fee Offset Period Description"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FeeOffsetStepDownPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FeeOffsetStepDownPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fee offset step down percentage.",
        "label": "Fee Offset Step Down Percentage",
        "terseLabel": "Fee offset step down percentage"
       }
      }
     },
     "auth_ref": []
    },
    "cef_FeeTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "FeeTableAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "cef_FinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "FinancialHighlightsAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Highlights [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1079"
     ]
    },
    "mfic_FinancialServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FinancialServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Services [Member]",
        "documentation": "Financial services.",
        "verboseLabel": "Financial Services",
        "terseLabel": "Financial Services"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FinancialSupportToNonconsolidatedLegalEntityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20260630/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",
      "r645",
      "r646"
     ]
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "FinancialSupportToNonconsolidatedLegalEntityDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20260630/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",
      "r645",
      "r646"
     ]
    },
    "mfic_FingerPaintMarketingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FingerPaintMarketingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FingerPaint Marketing",
        "label": "FingerPaint Marketing [Member]",
        "documentation": "FingerPaint Marketing."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FirstLienSecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FirstLienSecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "First lien secured debt.",
        "label": "First Lien Secured Debt [Member]",
        "terseLabel": "First Lien Secured Debt"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FirstLienSecuredDebtOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FirstLienSecuredDebtOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "First Lien Secured Debt",
        "documentation": "First lien secured debt one.",
        "label": "First Lien Secured Debt One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FirstLienSecuredRevolverMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FirstLienSecuredRevolverMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "First lien secured revolver.",
        "label": "First Lien Secured Revolver [Member]",
        "terseLabel": "First Lien Secured Revolver"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FlowControlIntermediateHoldings20LLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FlowControlIntermediateHoldings20LLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Flow Control Intermediate Holdings 2.0, LLC [Member]",
        "documentation": "Flow Control Intermediate Holdings 2.0, LLC.",
        "terseLabel": "Flow Control Intermediate Holdings 2.0, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FlowControlMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FlowControlMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Flow Control",
        "label": "Flow Control [Member]",
        "documentation": "Flow Control."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_FoodProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FoodProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Food Products",
        "label": "Food Products [Member]",
        "documentation": "Food Products."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ForcuraMedalogixProjectTarponMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ForcuraMedalogixProjectTarponMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forcura + Medalogix (Project Tarpon) [Member]",
        "documentation": "Forcura + Medalogix (Project Tarpon).",
        "terseLabel": "Forcura + Medalogix (Project Tarpon)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignCurrencyContractAssetFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ForeignCurrencyContractAssetFairValueDisclosure",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentAssetsAndLiabilitiesOwnedAtFairValue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Contract, Asset, Fair Value Disclosure",
        "terseLabel": "Foreign currency forward transactions, Fair Value",
        "documentation": "Fair value portion of asset contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward contracts, and swaps."
       }
      }
     },
     "auth_ref": [
      "r517",
      "r518",
      "r1319",
      "r1320",
      "r1321"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionGainLossRealized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ForeignCurrencyTransactionGainLossRealized",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Gain (Loss), Foreign Currency Transaction, before Tax",
        "terseLabel": "Foreign currency transactions",
        "documentation": "Amount, before tax, of realized gain (loss) from foreign currency transaction."
       }
      }
     },
     "auth_ref": [
      "r721",
      "r1007",
      "r1324",
      "r1325",
      "r1373"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionGainLossUnrealized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ForeignCurrencyTransactionGainLossUnrealized",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unrealized Gain/(Loss)",
        "label": "Unrealized Gain (Loss), Foreign Currency Transaction, before Tax",
        "terseLabel": "Foreign currency translations",
        "documentation": "Amount, before tax, of unrealized gain (loss) from foreign currency transaction."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r722",
      "r1007",
      "r1324",
      "r1325",
      "r1374"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Transactions and Translations Policy [Policy Text Block]",
        "terseLabel": "Foreign Currency Translations",
        "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": [
      "r544"
     ]
    },
    "mfic_ForeignDenominatedDebtsResetDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ForeignDenominatedDebtsResetDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Denominated Debts Reset Date",
        "documentation": "Foreign Denominated Debts Reset Date",
        "terseLabel": "Reset Date"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ForeignDenominatedOriginalPrincipalAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ForeignDenominatedOriginalPrincipalAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Original Principal Amount",
        "label": "Foreign Denominated Original Principal Amount Outstanding",
        "documentation": "Foreign denominated original principal amount outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ForeignDenominatedPrincipalAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ForeignDenominatedPrincipalAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal Amount Outstanding",
        "label": "Foreign Denominated Principal Amount Outstanding",
        "documentation": "Foreign denominated principal amount outstanding.",
        "verboseLabel": "Foreign-denominated debt outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignExchangeForwardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ForeignExchangeForwardMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Exchange Forward [Member]",
        "terseLabel": "Foreign Currency Forward Contracts",
        "documentation": "Foreign exchange forward traded on an exchange (examples include but are not limited to the International Securities Exchange, Philadelphia Stock Exchange, or the Chicago Mercantile Exchange) for options or future contracts to buy or sell a certain currency, at a specified date, at a fixed exercise exchange rate."
       }
      }
     },
     "auth_ref": [
      "r707",
      "r712",
      "r717",
      "r742",
      "r748",
      "r832",
      "r833",
      "r838",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972",
      "r997",
      "r1296"
     ]
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1149"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1149"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1149"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1149"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1024",
      "r1035",
      "r1115",
      "r1149"
     ]
    },
    "mfic_FourWindsInteractiveLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FourWindsInteractiveLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Winds Interactive LLC [Member]",
        "documentation": "Four Winds Interactive LLC.",
        "terseLabel": "Four Winds Interactive LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1130"
     ]
    },
    "mfic_FractionalSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "FractionalSharesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fractional shares.",
        "label": "Fractional Shares [Member]",
        "terseLabel": "Fractional Shares"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_G2CIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "G2CIMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "G2CI [Member]",
        "documentation": "G2CI.",
        "terseLabel": "G2CI"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GATAirlineGroundSupportIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GATAirlineGroundSupportIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "GAT Airline Ground Support Inc [Member]",
        "documentation": "Gat airline ground support inc member",
        "terseLabel": "GAT Airline Ground Support Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GAndAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GAndAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "G And A [Member]",
        "documentation": "G and a member",
        "terseLabel": "G&amp;A"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GAndAPartnersHoldingCompanyIILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GAndAPartnersHoldingCompanyIILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "G&amp;A Partners Holding Company II, LLC",
        "label": "G And A Partners Holding Company II LLC [Member]",
        "documentation": "G&amp;A partners holding company II, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "currency_GBP": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "GBP",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "British Pound",
        "label": "United Kingdom, Pounds"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GIAppleMidcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GIAppleMidcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "GI Apple Midco LLC",
        "label": "GI Apple Midco LLC [Member]",
        "documentation": "GI apple midco LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GSSEERGroupBorrowerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GSSEERGroupBorrowerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "GS SEER Group Borrower LLC [Member]",
        "documentation": "GS SEER group borrower LLC.",
        "terseLabel": "GS SEER Group Borrower LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GTreasurySSLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GTreasurySSLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "G Treasury SS LLC",
        "label": "G Treasury SS LLC [Member]",
        "documentation": "G Treasury SS LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GabrielPartnersLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GabrielPartnersLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gabriel Partners, LLC",
        "label": "Gabriel Partners L L C [Member]",
        "documentation": "Gabriel partners, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnSaleOfDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GainLossOnSaleOfDerivatives",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) on Sale of Derivatives",
        "negatedLabel": "Foreign currency forward contracts",
        "negatedTerseLabel": "Net realized gains/(losses) on foreign currency forwards",
        "terseLabel": "Foreign currency forward contracts",
        "verboseLabel": "Net realized gains/(losses) on foreign currency forwards",
        "documentation": "The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r72",
      "r740",
      "r741",
      "r742",
      "r743"
     ]
    },
    "mfic_GainwellMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GainwellMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gainwell",
        "label": "Gainwell [Member]",
        "documentation": "Gainwell."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GatewayServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GatewayServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gateway services.",
        "label": "Gateway Services [Member]",
        "terseLabel": "Gateway Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GatewayUSHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GatewayUSHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gateway US Holdings, Inc.",
        "label": "Gateway U S Holdings Inc [Member]",
        "documentation": "Gateway US holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GeneralAndAdministrativeExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GeneralAndAdministrativeExpenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General and Administrative Expense [Member]",
        "terseLabel": "Administrative Service Expense",
        "documentation": "Primary financial statement caption encompassing general and administrative expense."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "cef_GeneralDescriptionOfRegistrantAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "GeneralDescriptionOfRegistrantAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General Description of Registrant [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1090"
     ]
    },
    "mfic_GeneratorBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GeneratorBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Generator Buyer Inc [Member]",
        "documentation": "Generator Buyer, Inc.",
        "terseLabel": "Generator Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GeniusBidcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GeniusBidcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Genius Bidco LLC [Member]",
        "documentation": "Genius Bidco LLC.",
        "terseLabel": "Genius Bidco LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GlobalEagleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GlobalEagleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Global Eagle [Member]",
        "documentation": "Global Eagle.",
        "terseLabel": "Global Eagle"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoCarWashManagementCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoCarWashManagementCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Go car wash management corp.",
        "label": "Go Car Wash Management Corp [Member]",
        "terseLabel": "Go Car Wash Management Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoCarWashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoCarWashMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Go car wash.",
        "label": "Go Car Wash [Member]",
        "terseLabel": "Go Car Wash"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GoHealth.",
        "label": "Go Health [Member]",
        "terseLabel": "GoHealth"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Go One [Member]",
        "documentation": "Go one member",
        "terseLabel": "Go1"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoldenBear2016RLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoldenBear2016RLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Golden bear 2016-R, LLC.",
        "label": "Golden Bear2016 R L L C [Member]",
        "terseLabel": "Golden Bear 2016-R, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoldenBearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoldenBearMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Golden bear.",
        "label": "Golden Bear [Member]",
        "terseLabel": "Golden Bear"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GoldmanSachsFinancialSquareGovernmentFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GoldmanSachsFinancialSquareGovernmentFundMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goldman Sachs Financial Square Government Fund [Member]",
        "documentation": "Goldman Sachs Financial Square Government Fund.",
        "terseLabel": "Goldman Sachs Financial Square Government Fund"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GraffitiBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GraffitiBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Graffiti Buyer, Inc.",
        "documentation": "Graffiti buyer inc.",
        "label": "Graffiti Buyer Inc [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GrayMatterSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GrayMatterSystemsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "GrayMatter Systems [Member]",
        "documentation": "GrayMatter Systems",
        "verboseLabel": "GrayMatter Systems",
        "terseLabel": "GrayMatter Systems"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GreenGrassFoodsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GreenGrassFoodsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Green Grass Foods Inc [Member]",
        "documentation": "Green grass foods, Inc.",
        "terseLabel": "Green Grass Foods, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GrossInvestmentIncomeOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "GrossInvestmentIncomeOperating",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_NetInvestmentIncome",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Investment Income",
        "terseLabel": "Total Investment Income",
        "label": "Gross Investment Income, Operating",
        "verboseLabel": "Interest/ Dividend/ Other 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": [
      "r601",
      "r1007",
      "r1369"
     ]
    },
    "mfic_GroundTransportationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GroundTransportationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ground Transportation [Member]",
        "documentation": "Ground transportation.",
        "verboseLabel": "Ground Transportation",
        "terseLabel": "Ground Transportation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GtreasuryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GtreasuryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gtreasury [Member]",
        "documentation": "Gtreasury",
        "verboseLabel": "Gtreasury",
        "terseLabel": "Gtreasury"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GuernseyHoldingsSDILALLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GuernseyHoldingsSDILALLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Guernsey Holdings SDI LA LLC.",
        "label": "Guernsey Holdings S D I L A L L C [Member]",
        "terseLabel": "Guernsey Holdings SDI LA LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_GuernseyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "GuernseyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Guernsey.",
        "label": "Guernsey [Member]",
        "terseLabel": "Guernsey"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HALOBrandedSolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HALOBrandedSolutionsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "HALO Branded Solutions",
        "label": "HALO Branded Solutions [Member]",
        "documentation": "HALO Branded Solutions"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HALOBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HALOBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "HALO Buyer Inc [Member]",
        "documentation": "Halo buyer inc.",
        "terseLabel": "HALO Buyer, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HEFSafetyUltimateHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HEFSafetyUltimateHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "HEF Safety Ultimate Holdings, LLC [Member]",
        "documentation": "HEF safety ultimate holdings, LLC.",
        "terseLabel": "HEF Safety Ultimate Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HMAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HMAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "HMA [Member]",
        "documentation": "Hma member",
        "terseLabel": "HMA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HROHeroDigitalHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HROHeroDigitalHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "HRO (Hero Digital) Holdings, LLC.",
        "label": "H R O Hero Digital Holdings L L C [Member]",
        "terseLabel": "HRO (Hero Digital) Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthAndSafetyInstituteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthAndSafetyInstituteMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Health &amp; Safety Institute",
        "label": "Health and Safety Institute [Member]",
        "documentation": "Health &amp; Safety Institute",
        "terseLabel": "Health &amp; Safety Institute"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthCareEquipmentSuppliesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthCareEquipmentSuppliesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Health Care Equipment &amp; Supplies",
        "label": "Health Care Equipment &amp; Supplies [Member]",
        "documentation": "Health Care Equipment &amp; Supplies.",
        "terseLabel": "Health Care Equipment &amp; Supplies"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthCareProvidersServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthCareProvidersServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Health Care Providers &amp; Services",
        "label": "Health Care Providers &amp; Services [Member]",
        "documentation": "Health Care Providers &amp; Services.",
        "terseLabel": "Health Care Providers &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthCareTechnologyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthCareTechnologyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health Care Technology [Member]",
        "documentation": "Health Care Technology.",
        "verboseLabel": "Health Care Technology",
        "terseLabel": "Health Care Technology"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthManagementAssociatesSuperholdingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthManagementAssociatesSuperholdingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health Management Associates Superholdings Inc [Member]",
        "documentation": "Health management associates superholdings, Inc.",
        "terseLabel": "Health Management Associates Superholdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HealthcarePharmaceuticalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HealthcarePharmaceuticalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Healthcare &amp; Pharmaceuticals [Member]",
        "documentation": "Healthcare &amp; Pharmaceuticals.",
        "terseLabel": "Healthcare &amp; Pharmaceuticals"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeniffAndSuperiorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeniffAndSuperiorMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Heniff and Superior.",
        "label": "Heniff And Superior [Member]",
        "terseLabel": "Heniff and Superior"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeniffHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeniffHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Heniff Holdco, LLC.",
        "label": "Heniff Holdco L L C [Member]",
        "terseLabel": "Heniff Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeritageEnvironmentalServicesIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeritageEnvironmentalServicesIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Heritage Environmental Services Inc [Member]",
        "terseLabel": "Heritage Environmental Services, Inc.",
        "documentation": "Heritage environmental services, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeritageEnvironmentalServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeritageEnvironmentalServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Heritage Environmental Services [Member]",
        "documentation": "Heritage environmental services.",
        "terseLabel": "Heritage Environmental Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeroDigitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeroDigitalMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hero digital.",
        "label": "Hero Digital [Member]",
        "terseLabel": "Hero Digital"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HeubachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HeubachMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Heubach [Member]",
        "documentation": "Heubach member",
        "terseLabel": "Heubach"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HighStreetBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HighStreetBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "High Street Buyer, Inc.",
        "label": "High Street Buyer Inc [Member]",
        "terseLabel": "High Street Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HighStreetInsuranceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HighStreetInsuranceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "High Street Insurance.",
        "label": "High Street Insurance [Member]",
        "terseLabel": "High Street Insurance"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HighTechIndustriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HighTechIndustriesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "High Tech Industries",
        "documentation": "High Tech Industries.",
        "label": "High Tech Industries [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_HighestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "HighestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r1097"
     ]
    },
    "cef_HighestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "HighestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r1101"
     ]
    },
    "cef_HighestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1102"
     ]
    },
    "mfic_HiveIntermediateLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HiveIntermediateLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hive intermediate llc.",
        "label": "Hive Intermediate L L C [Member]",
        "terseLabel": "Hive Intermediate, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hive.",
        "label": "Hive [Member]",
        "terseLabel": "Hive"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HomeRenewBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HomeRenewBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Home renew buyer, inc.",
        "label": "Home Renew Buyer Inc [Member]",
        "terseLabel": "HomeRenew Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HotelGamingLeisureRestaurantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HotelGamingLeisureRestaurantsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hotel, Gaming, Leisure, Restaurants",
        "documentation": "Hotel, Gaming, Leisure, Restaurants.",
        "label": "Hotel Gaming Leisure Restaurants [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HotelsRestaurantsLeisureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HotelsRestaurantsLeisureMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hotels, Restaurants &amp; Leisure [Member]",
        "documentation": "Hotels, Restaurants &amp; Leisure.",
        "verboseLabel": "Hotels, Restaurants &amp; Leisure",
        "terseLabel": "Hotels, Restaurants &amp; Leisure"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HouseholdDurablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HouseholdDurablesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Household Durables.",
        "verboseLabel": "Household Durables",
        "label": "Household Durables [Member]",
        "terseLabel": "Household Durables"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_HouseholdProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "HouseholdProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Household Products",
        "label": "Household Products [Member]",
        "documentation": "Household Products."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IOTAHoldings3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IOTAHoldings3Member",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IOTA Holdings 3 [Member]",
        "documentation": "IOTA holdings 3.",
        "terseLabel": "IOTA HOLDINGS 3"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IPSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IPSMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IPS",
        "label": "IPS [Member]",
        "documentation": "IPS."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IQNHoldingCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IQNHoldingCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IQN Holding Corp. [Member]",
        "documentation": "IQN Holding Corp. [Member]",
        "terseLabel": "IQN Holding Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IRPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IRPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IRP",
        "label": "IRP [Member]",
        "documentation": "IRP."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IWBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IWBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IW Buyer LLC [Member]",
        "documentation": "IW Buyer LLC.",
        "terseLabel": "IW Buyer LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IconixBrandGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IconixBrandGroupMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Iconix Brand Group [Member]",
        "documentation": "Iconix Brand Group.",
        "terseLabel": "Iconix Brand Group"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IdealComponentsAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IdealComponentsAcquisitionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ideal Components Acquisition LLC [Member]",
        "documentation": "Ideal Components Acquisition LLC",
        "terseLabel": "Ideal Components Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IdealTridonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IdealTridonMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ideal Tridon [Member]",
        "documentation": "Ideal tridon.",
        "terseLabel": "Ideal Tridon"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1069"
     ]
    },
    "cef_IncentiveAllocationMinimumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationMinimumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Minimum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1069"
     ]
    },
    "cef_IncentiveAllocationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveAllocationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1069"
     ]
    },
    "mfic_IncentiveFeeBasedOnCumulativeNetRealizedGainsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IncentiveFeeBasedOnCumulativeNetRealizedGainsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive Fee based on Cumulative Net Realized Gains",
        "documentation": "Incentive Fee Based on Cumulative Net Realized Gains.",
        "label": "Incentive Fee Based On Cumulative Net Realized Gains [Member]",
        "verboseLabel": "Incentive Fee based on Cumulative Net Realized Gains"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IncentiveFeeBasedOnIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IncentiveFeeBasedOnIncomeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive Fee based on Income",
        "documentation": "Incentive fee based on income.",
        "label": "Incentive Fee Based On Income [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncentiveFeeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncentiveFeeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fee Expense",
        "terseLabel": "Performance-based incentive fees",
        "documentation": "Amount of expense for incentive fee based on performance under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r1370"
     ]
    },
    "us-gaap_IncentiveFeePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncentiveFeePayable",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fee Payable",
        "totalLabel": "Incentive Fee Payable, Total",
        "terseLabel": "Performance-based incentive fees payable",
        "documentation": "Amount of fee payable for management of operations based on performance under arrangement, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1363"
     ]
    },
    "cef_IncentiveFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IncentiveFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementLocationAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Income Location, Balance [Axis]",
        "terseLabel": "Income Statement Location",
        "documentation": "Information by location in statement of income where disaggregated amount is reported."
       }
      }
     },
     "auth_ref": [
      "r227",
      "r228",
      "r230",
      "r455",
      "r463",
      "r480",
      "r483",
      "r523",
      "r526",
      "r531",
      "r541",
      "r542",
      "r543",
      "r609",
      "r611",
      "r735",
      "r904",
      "r905",
      "r950",
      "r954",
      "r974",
      "r975",
      "r979",
      "r987",
      "r1281",
      "r1283",
      "r1344"
     ]
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeStatementLocationDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Income Location, Balance [Domain]",
        "terseLabel": "Income Statement Location",
        "documentation": "Location in statement of income where disaggregated amount is reported."
       }
      }
     },
     "auth_ref": [
      "r228",
      "r230",
      "r455",
      "r463",
      "r480",
      "r483",
      "r523",
      "r526",
      "r531",
      "r541",
      "r542",
      "r543",
      "r609",
      "r611",
      "r735",
      "r904",
      "r905",
      "r950",
      "r954",
      "r974",
      "r975",
      "r979",
      "r987",
      "r1281",
      "r1283",
      "r1344"
     ]
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Federal and State Income Taxes",
        "verboseLabel": "Income Taxes",
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements."
       }
      }
     },
     "auth_ref": [
      "r123",
      "r348",
      "r349",
      "r352",
      "r353",
      "r354",
      "r355",
      "r632"
     ]
    },
    "mfic_IncreaseDecreaseInAccruedAdministrativeServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IncreaseDecreaseInAccruedAdministrativeServicesExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in accrued administrative services expense.",
        "label": "Increase Decrease In Accrued Administrative Services Expense",
        "terseLabel": "Increase (decrease) in accrued administrative services expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Decrease (increase) in interest receivable",
        "label": "Increase (Decrease) in Accrued Interest Receivable, Net",
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "us-gaap_IncreaseDecreaseInDividendsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInDividendsReceivable",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease (increase) in dividends receivable",
        "label": "Increase (Decrease) in Dividends Receivable",
        "negatedLabel": "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": [
      "r4"
     ]
    },
    "us-gaap_IncreaseDecreaseInInterestPayableNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInInterestPayableNet",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Interest Payable, Net",
        "terseLabel": "Increase (decrease) in interest payable",
        "documentation": "The increase (decrease) during the reporting period in interest payable, which represents the amount owed to note holders, bond holders, and other parties for interest earned on loans or credit extended to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInManagementAndIncentiveFeesPayable",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in management and performance-based incentive fees payable",
        "label": "Increase (Decrease) in Management and Incentive Fees Payable",
        "negatedLabel": "Increase (decrease) in management and performance-based incentive fees payable",
        "totalLabel": "Increase (Decrease) in Management and Incentive Fees Payable, Total",
        "documentation": "Amount of increase (decrease) management and incentive fees payable for performance under arrangement to manage operation, including, but not limited to, managing investment."
       }
      }
     },
     "auth_ref": [
      "r1378"
     ]
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Reconcile Net Income to Cash Provided by (Used in) Operating Activity, Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in operating assets and liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IncreaseDecreaseInOtherLiabilitiesAndAccruedExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IncreaseDecreaseInOtherLiabilitiesAndAccruedExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in other liabilities and accrued expenses.",
        "label": "Increase Decrease In Other Liabilities And Accrued Expenses",
        "terseLabel": "Increase (decrease) in other liabilities and accrued expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease (increase) in prepaid expenses and other assets",
        "label": "Increase (Decrease) in Prepaid Expense and Other Assets",
        "negatedLabel": "Decrease (increase) in prepaid expenses and other assets",
        "documentation": "Amount of increase (decrease) in prepaid expenses, and assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "mfic_IndependentPowerAndRenewableElectricityProducersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IndependentPowerAndRenewableElectricityProducersMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Independent Power &amp; Renewable Electricity Producers",
        "label": "Independent Power And Renewable Electricity Producers [Member]",
        "documentation": "Independent Power and Renewable Electricity Producers."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1024",
      "r1035",
      "r1115",
      "r1141",
      "r1149",
      "r1153",
      "r1161"
     ]
    },
    "mfic_IngenovisHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IngenovisHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ingenovis Health [Member]",
        "documentation": "Ingenovis health member",
        "terseLabel": "Ingenovis Health"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InovalonHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InovalonHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inovalon Holdings, Inc.",
        "label": "Inovalon Holdings, Inc. [Member]",
        "documentation": "Inovalon Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InovalonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InovalonMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inovalon [Member]",
        "documentation": "Inovalon",
        "verboseLabel": "Inovalon",
        "terseLabel": "Inovalon"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r1159"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r1016",
      "r1165"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1016",
      "r1165"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1016",
      "r1165"
     ]
    },
    "mfic_InsuranceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InsuranceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Insurance.",
        "label": "Insurance [Member]",
        "terseLabel": "Insurance"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InteractiveMediaServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InteractiveMediaServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interactive Media &amp; Services",
        "label": "Interactive Media &amp; Services [Member]",
        "documentation": "Interactive Media &amp; Services.",
        "terseLabel": "Interactive Media &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestAndDividendIncomeOperatingPaidInKind": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestAndDividendIncomeOperatingPaidInKind",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest and Dividend Income, Operating, Paid in Kind",
        "terseLabel": "PIK interest and dividends capitalized",
        "negatedLabel": "PIK interest and dividends capitalized",
        "documentation": "Amount of interest and dividend income from investment paid in kind, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r1369"
     ]
    },
    "us-gaap_InterestExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestExpenseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Expense",
        "label": "Interest Expense [Member]",
        "documentation": "Primary financial statement caption encompassing interest expense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestExpenseOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestExpenseOperating",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Interest Expense, Operating, Total",
        "label": "Interest Expense, Operating",
        "terseLabel": "Interest and other debt expenses",
        "documentation": "Amount of interest expense classified as operating."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r584",
      "r913",
      "r1205"
     ]
    },
    "cef_InterestExpensesOnBorrowingsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "InterestExpensesOnBorrowingsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expenses on Borrowings [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1077"
     ]
    },
    "us-gaap_InterestIncomeOperatingPaidInCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestIncomeOperatingPaidInCash",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income (excluding Payment-in-kind (\"PIK\") interest income)",
        "label": "Interest Income, Operating, Paid in Cash",
        "documentation": "Amount of interest income from investment paid in cash, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r728",
      "r867",
      "r870"
     ]
    },
    "us-gaap_InterestIncomeOperatingPaidInKind": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestIncomeOperatingPaidInKind",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "PIK interest and dividends capitalized",
        "terseLabel": "PIK interest income",
        "label": "Interest Income, Operating, Paid in Kind",
        "verboseLabel": "Paid in kind income earned",
        "documentation": "Amount of interest income from investment paid in kind, classified as operating."
       }
      }
     },
     "auth_ref": [
      "r728",
      "r867",
      "r870",
      "r872"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash interest paid",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activity",
        "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": [
      "r132",
      "r135",
      "r136"
     ]
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InterestPayableCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Payable",
        "terseLabel": "Interest payable",
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r1340"
     ]
    },
    "us-gaap_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "InterestReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Receivable",
        "terseLabel": "Interest receivable",
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable."
       }
      }
     },
     "auth_ref": [
      "r1193",
      "r1379"
     ]
    },
    "mfic_InternationalCruiseAndExcursionGalleryIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InternationalCruiseAndExcursionGalleryIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "International Cruise and Excursion Gallery, Inc [Member]",
        "documentation": "International Cruise and Excursion Gallery, Inc.",
        "terseLabel": "International Cruise &amp; Excursion Gallery, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InternationalWireGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InternationalWireGroupMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "International Wire Group [Member]",
        "documentation": "International Wire Group.",
        "terseLabel": "International Wire Group"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IntervalFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "IntervalFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interval Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "us-gaap_InvestmentAcquisitionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAcquisitionDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Acquisition Date",
        "terseLabel": "Acquisition Date",
        "verboseLabel": "Acquisition Date",
        "documentation": "Date when investment is acquired, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r780",
      "r790",
      "r808",
      "r875"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerControlledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAffiliatedIssuerControlledMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlled Investments",
        "label": "Investment, Affiliated Issuer, Controlled [Member]",
        "documentation": "Controlled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r652",
      "r695",
      "r697",
      "r704",
      "r719",
      "r728",
      "r729",
      "r870"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAffiliatedIssuerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Affiliated Issuer [Member]",
        "terseLabel": "Affiliated Investments",
        "documentation": "Affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r678",
      "r732",
      "r739",
      "r745",
      "r862",
      "r865",
      "r1349"
     ]
    },
    "us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentAffiliatedIssuerNoncontrolledMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlled/Affiliated Investments",
        "label": "Investment, Affiliated Issuer, Noncontrolled [Member]",
        "documentation": "Noncontrolled affiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r652",
      "r696",
      "r698",
      "r705",
      "r719",
      "r728",
      "r729",
      "r850",
      "r861",
      "r862",
      "r864",
      "r865",
      "r869",
      "r870",
      "r874",
      "r875",
      "r876"
     ]
    },
    "mfic_InvestmentAssetsAndLiabilitiesOwnedAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentAssetsAndLiabilitiesOwnedAtCost",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Assets and Liabilities at Cost",
        "label": "Investment Assets And Liabilities Owned At Cost",
        "documentation": "Investment assets and liabilities owned at cost.",
        "terseLabel": "Total Assets and Liabilities at Cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentAssetsAndLiabilitiesOwnedAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentAssetsAndLiabilitiesOwnedAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Assets And Liabilities Owned At Fair Value",
        "documentation": "Investment assets and liabilities owned at fair value.",
        "totalLabel": "Total Assets and Liabilities at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentBasisSpreadVariableRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentBasisSpreadVariableRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Spread",
        "label": "Investment, Basis Spread, Variable Rate",
        "documentation": "Percentage added to reference rate used to compute variable rate on investment."
       }
      }
     },
     "auth_ref": [
      "r773",
      "r794",
      "r798",
      "r858"
     ]
    },
    "dei_InvestmentCompanyActFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyActFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act File Number"
       }
      }
     },
     "auth_ref": [
      "r1039",
      "r1105",
      "r1106",
      "r1107"
     ]
    },
    "dei_InvestmentCompanyActRegistration": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyActRegistration",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act Registration"
       }
      }
     },
     "auth_ref": [
      "r1120"
     ]
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfInterestAndOtherDebtExpensesToAverageNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAnnualizedRatioOfInterestAndOtherDebtExpensesToAverageNetAssets",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseRatioIncludingIncentiveFee",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "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",
        "documentation": "Investment company annualized ratio of interest and other debt expenses to average net assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssets",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseRatioIncludingIncentiveFee",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized ratio of operating expenses to average net assets",
        "label": "Investment Company Annualized Ratio Of Operating Expenses To Average Net Assets",
        "documentation": "Investment company annualized ratio of operating expenses to average net assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingExpenseReimbursement": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAnnualizedRatioOfOperatingExpensesToAverageNetAssetsExcludingExpenseReimbursement",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Annualized Ratio Of Operating Expenses To Average Net Assets Excluding Expense Reimbursement",
        "documentation": "Investment company annualized ratio of operating expenses to average net assets excluding expense reimbursement.",
        "terseLabel": "Annualized ratio of operating expenses to average net assets without expense reimbursement"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAnnualizedRatioOfTotalExpensesToAverageNetAssetsExcludingExpenseReimbursement": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAnnualizedRatioOfTotalExpensesToAverageNetAssetsExcludingExpenseReimbursement",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized ratio of total expenses to average net assets without expense reimbursement",
        "label": "Investment Company Annualized Ratio Of Total Expenses To Average Net Assets Excluding Expense Reimbursement",
        "documentation": "Investment company annualized ratio of total expenses to average net assets excluding expense reimbursement."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAssetCoveragePerUnit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAssetCoveragePerUnit",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset coverage per unit",
        "label": "Investment Company Asset Coverage Per Unit",
        "documentation": "Investment company asset coverage per unit."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentCompanyAverageDebtPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyAverageDebtPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average debt per share",
        "label": "Investment Company Average Debt Per Share",
        "documentation": "Investment company average debt per share."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyCapitalShareTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyCapitalShareTransactionsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Capital Share Transaction, Increase (Decrease) [Abstract]",
        "terseLabel": "Capital Share Transactions"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyCapitalShareTransactionsStockIssuedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyCapitalShareTransactionsStockIssuedAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital Share Activity",
        "label": "Investment Company, Capital Share Transactions, Stock Issued [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyDistributionOrdinaryIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributionOrdinaryIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyDividendDistribution",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distribution of net investment income",
        "label": "Investment Company, Distribution, Ordinary Income",
        "negatedLabel": "Distribution of net investment income",
        "verboseLabel": "Ordinary income",
        "documentation": "Amount of dividend distribution by investment company from ordinary income."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r890"
     ]
    },
    "us-gaap_InvestmentCompanyDistributionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributionPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Distribution [Policy Text Block]",
        "terseLabel": "Dividends and Distributions",
        "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": [
      "r642"
     ]
    },
    "us-gaap_InvestmentCompanyDistributionToShareholdersAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributionToShareholdersAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Distribution to Shareholders [Abstract]",
        "terseLabel": "Distributions to Stockholders"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyDistributionToShareholdersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDistributionToShareholdersPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Distribution of net investment income",
        "terseLabel": "Distribution of net investment income",
        "label": "Investment Company, Distribution to Shareholders, Per Share",
        "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": [
      "r651",
      "r666"
     ]
    },
    "us-gaap_InvestmentCompanyDividendDistribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyDividendDistribution",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_StockholdersEquityPeriodIncreaseDecrease",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Decrease in Net Assets Resulting from Distributions to Shareholders",
        "negatedLabel": "Distribution of net investment income",
        "terseLabel": "Distribution of net investment income",
        "label": "Investment Company, Dividend Distribution",
        "negatedTerseLabel": "Net Decrease in Net Assets Resulting from Distributions to Shareholders",
        "negatedTotalLabel": "Net Decrease in Net Assets Resulting from Distributions to Stockholders",
        "documentation": "Amount of dividend distribution from ordinary income and capital gain. Excludes distribution for tax return of capital."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r654",
      "r655",
      "r754"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_NetInvestmentIncome",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Expenses",
        "label": "Investment Company, Expense, after Reduction of Fee Waiver and Reimbursement",
        "documentation": "Amount, after reimbursement and fee waiver, of expense for generation of investment income classified as operating."
       }
      }
     },
     "auth_ref": [
      "r1370"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseOffsetArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExpenseOffsetArrangement",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance-based incentive fee offset",
        "label": "Investment Company, Expense Offset Arrangement",
        "negatedLabel": "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": [
      "r641",
      "r729",
      "r730",
      "r731",
      "r732",
      "r735"
     ]
    },
    "us-gaap_InvestmentCompanyExpenseRatioIncludingIncentiveFee": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyExpenseRatioIncludingIncentiveFee",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Annualized ratio of total expenses to average net assets",
        "label": "Investment Company, Expense Ratio, after Fee Waiver and Incentive Fee Deduction",
        "terseLabel": "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": [
      "r1353"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unfunded commitments",
        "label": "Investment Company, Financial Support to Investee Contractually Required, Not Provided, Amount",
        "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": [
      "r646"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "InvestmentCompanyFinancialHighlightsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Highlights [Table Text Block]",
        "terseLabel": "Schedule of Financial Highlights",
        "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": [
      "r657"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialHighlightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialHighlightsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlights"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Financial Highlights [Text Block]",
        "terseLabel": "Financial Highlights",
        "documentation": "The entire disclosure of financial highlights reported by investment company."
       }
      }
     },
     "auth_ref": [
      "r650",
      "r657",
      "r660",
      "r664"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Commitment",
        "label": "Investment Company, Financial Support to Investee Contractually Required, Amount",
        "documentation": "Amount of financial support committed by investment company to investee that is contractually required."
       }
      }
     },
     "auth_ref": [
      "r644",
      "r645"
     ]
    },
    "us-gaap_InvestmentCompanyFinancialSupportToInvesteeDiscretionaryAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyFinancialSupportToInvesteeDiscretionaryAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unfunded commitments",
        "label": "Investment Company, Financial Support to Investee, Discretionary, Amount",
        "documentation": "Amount of financial support committed by investment company to investee that is discretionary."
       }
      }
     },
     "auth_ref": [
      "r645",
      "r1345"
     ]
    },
    "us-gaap_InvestmentCompanyGainLossOnInvestmentPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyGainLossOnInvestmentPerShare",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Gain (Loss) on Investment, Per Share",
        "terseLabel": "Net realized and change in unrealized gains (losses)",
        "verboseLabel": "Net Realized And Change in Unrealized Gains (Losses), Per Share",
        "documentation": "Per share or unit amount of realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r664"
     ]
    },
    "us-gaap_InvestmentCompanyIncentiveFeeWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyIncentiveFeeWaived",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Incentive fees waived",
        "label": "Investment Company, Incentive Fee Waived",
        "totalLabel": "Investment Company, Incentive Fee Waived, Total",
        "documentation": "Amount of incentive fee waived for investment company."
       }
      }
     },
     "auth_ref": [
      "r1348",
      "r1370"
     ]
    },
    "us-gaap_InvestmentCompanyIncreaseDecreaseFromShareTransaction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyIncreaseDecreaseFromShareTransaction",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_StockholdersEquityPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net Increase (Decrease) in Net Assets Resulting from Capital Share Transactions",
        "label": "Investment Company, Capital Share Transaction, Increase (Decrease)",
        "terseLabel": "Net Increase (Decrease) in Net Assets Resulting from Capital Share Transactions",
        "verboseLabel": "Net increase (decrease) in net assets resulting from operations",
        "documentation": "Amount of increase (decrease) in equity from change in number of shares or units by investment company."
       }
      }
     },
     "auth_ref": [
      "r755",
      "r1008"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase in net assets resulting from operations",
        "label": "Investment Company, Investment Income (Loss) from Operations, Per Share",
        "verboseLabel": "Net Increase (Decrease) in Net Assets from Operations - Basic, Per Share",
        "documentation": "Per share or unit amount of investment income (loss) and realized and unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r665"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossPerShare",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails": {
       "parentTag": "us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Investment Income (Loss), Per Share, Basic",
        "terseLabel": "Net investment income",
        "verboseLabel": "Net Investment Income, Per Share",
        "documentation": "Per-basic-share or unit amount, after investment expense, of dividend and interest investment income (loss) from investment held by investment company."
       }
      }
     },
     "auth_ref": [
      "r663"
     ]
    },
    "us-gaap_InvestmentCompanyInvestmentIncomeLossRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyInvestmentIncomeLossRatio",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized ratio of net investment income to average net assets",
        "label": "Investment Company, Investment Income (Loss) Ratio",
        "documentation": "Percentage of investment income (loss) to average net assets."
       }
      }
     },
     "auth_ref": [
      "r1352"
     ]
    },
    "mfic_InvestmentCompanyManagementFeeOffset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentCompanyManagementFeeOffset",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Management Fee Offset",
        "terseLabel": "Management fee offset",
        "documentation": "Investment company, management fee offset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentCompanyManagementFeeWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyManagementFeeWaived",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Management Fee Waived",
        "totalLabel": "Investment Company, Management Fee Waived, Total",
        "verboseLabel": "Management fees waived",
        "documentation": "Amount of management fee waived for investment company."
       }
      }
     },
     "auth_ref": [
      "r1348",
      "r1370"
     ]
    },
    "us-gaap_InvestmentCompanyMarketValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyMarketValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Per share market value at end of period",
        "label": "Investment Company, Market Value, Per Share",
        "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": [
      "r1355"
     ]
    },
    "us-gaap_InvestmentCompanyNetAssetsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "InvestmentCompanyPortfolioTurnover",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annualized portfolio turnover rate",
        "label": "Investment Company, Portfolio Turnover",
        "documentation": "Percentage of lesser of purchase or sale of portfolio securities to average value of portfolio securities owned."
       }
      }
     },
     "auth_ref": [
      "r1354"
     ]
    },
    "us-gaap_InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Realized And Change in Unrealized Gains (Losses)",
        "verboseLabel": "Net Realized And Change in Unrealized Gains (Losses), Total",
        "totalLabel": "Net Realized and Change in Unrealized Gains (Losses)",
        "label": "Gain (Loss), Investment and Derivative, Operating, and Foreign Currency Transaction, before Tax",
        "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": [
      "r723",
      "r892",
      "r1007",
      "r1375"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyRegistrationAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment"
       }
      }
     },
     "auth_ref": [
      "r1120"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "InvestmentCompanyRegistrationAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment Number"
       }
      }
     },
     "auth_ref": [
      "r1120"
     ]
    },
    "us-gaap_InvestmentCompanyRepurchaseOfSharesPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyRepurchaseOfSharesPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accretion due to share repurchases",
        "label": "Investment Company, Share Repurchase, Per Share",
        "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": [
      "r1356"
     ]
    },
    "us-gaap_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Senior Security, Indebtedness, Asset Coverage Ratio",
        "terseLabel": "Asset coverage",
        "documentation": "Percentage of total assets less all liabilities and indebtedness not represented by senior security, to senior security representing indebtedness."
       }
      }
     },
     "auth_ref": [
      "r1189"
     ]
    },
    "us-gaap_InvestmentCompanyTaxReturnOfCapitalDistributionPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyTaxReturnOfCapitalDistributionPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Tax Return of Capital Distribution, Per Share",
        "terseLabel": "Distribution of return of capital",
        "documentation": "Per share or unit amount of capital distribution in excess of tax basis earnings."
       }
      }
     },
     "auth_ref": [
      "r651",
      "r666"
     ]
    },
    "us-gaap_InvestmentCompanyTotalReturn": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentCompanyTotalReturn",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company, Total Return",
        "terseLabel": "Total return",
        "documentation": "Percentage increase (decrease) in fund net asset value, assuming reinvestment of dividends and capital gain distributions."
       }
      }
     },
     "auth_ref": [
      "r647",
      "r658",
      "r661"
     ]
    },
    "us-gaap_InvestmentHoldingsScheduleOfInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentHoldingsScheduleOfInvestmentsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Holdings, Schedule of Investments [Table Text Block]",
        "terseLabel": "Schedule of Composition of Investment Portfolio",
        "documentation": "Tabular disclosure of data and information required in the supplementary schedule applicable to management investment companies listing holdings of unaffiliated investments."
       }
      }
     },
     "auth_ref": [
      "r1357",
      "r1358",
      "r1359",
      "r1360",
      "r1361",
      "r1362"
     ]
    },
    "us-gaap_InvestmentHoldingsScheduleOfInvestmentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentHoldingsScheduleOfInvestmentsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Text Block]",
        "terseLabel": "Investments",
        "documentation": "The entire disclosure for investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r672",
      "r767",
      "r768",
      "r769",
      "r786",
      "r804",
      "r814",
      "r875"
     ]
    },
    "us-gaap_InvestmentIdentifierAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIdentifierAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Identifier [Axis]",
        "terseLabel": "Delete",
        "documentation": "Identification of investment in security, including, but not limited to, name, title, and other identifying information."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r674",
      "r675",
      "r680",
      "r681",
      "r682",
      "r687",
      "r688",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r786",
      "r787",
      "r788",
      "r790",
      "r792",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r814",
      "r815",
      "r816",
      "r819",
      "r820",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r862",
      "r863",
      "r865",
      "r866",
      "r867",
      "r868",
      "r870",
      "r871",
      "r872",
      "r873",
      "r875",
      "r877",
      "r878",
      "r879",
      "r997",
      "r1346",
      "r1347"
     ]
    },
    "us-gaap_InvestmentIncomeNonoperatingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIncomeNonoperatingAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Income, Nonoperating [Abstract]",
        "terseLabel": "Investment Income"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentInterestDividendAndOtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentInterestDividendAndOtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest/ Dividend/ Other Income",
        "label": "Investment Interest Dividend And Other Income",
        "documentation": "Investment interest dividend and other income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Interest Rate",
        "terseLabel": "Interest Rate",
        "documentation": "Rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r772",
      "r773",
      "r793",
      "r794",
      "r798",
      "r799",
      "r857",
      "r858",
      "r997",
      "r1223",
      "r1225"
     ]
    },
    "us-gaap_InvestmentInterestRateFloor": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRateFloor",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Interest Rate, Floor",
        "terseLabel": "Interest Rate",
        "verboseLabel": "Floor",
        "documentation": "Minimum rate of interest on investment."
       }
      }
     },
     "auth_ref": [
      "r1382",
      "r1385",
      "r1388",
      "r1391"
     ]
    },
    "us-gaap_InvestmentInterestRatePaidInCash": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRatePaidInCash",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1382",
      "r1385",
      "r1388",
      "r1391"
     ]
    },
    "us-gaap_InvestmentInterestRatePaidInKind": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentInterestRatePaidInKind",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate, Paid in Kind",
        "label": "Investment, Interest Rate, Paid in Kind",
        "documentation": "Rate of interest paid in kind on investment."
       }
      }
     },
     "auth_ref": [
      "r773",
      "r794",
      "r798",
      "r858"
     ]
    },
    "us-gaap_InvestmentIssuerAffiliationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerAffiliationAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Affiliation [Axis]",
        "documentation": "Information by affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r652",
      "r678",
      "r689",
      "r704",
      "r705",
      "r728",
      "r729",
      "r731",
      "r732",
      "r738",
      "r739",
      "r744",
      "r745",
      "r778",
      "r779",
      "r785",
      "r813",
      "r817",
      "r818",
      "r861",
      "r862",
      "r864",
      "r865",
      "r869",
      "r870",
      "r874",
      "r875",
      "r876"
     ]
    },
    "us-gaap_InvestmentIssuerAffiliationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerAffiliationDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Affiliation [Domain]",
        "documentation": "Affiliation of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r652",
      "r678",
      "r689",
      "r704",
      "r705",
      "r728",
      "r729",
      "r731",
      "r732",
      "r738",
      "r739",
      "r744",
      "r745",
      "r778",
      "r779",
      "r785",
      "r813",
      "r817",
      "r818",
      "r861",
      "r862",
      "r864",
      "r865",
      "r869",
      "r870",
      "r874",
      "r875",
      "r876"
     ]
    },
    "us-gaap_InvestmentIssuerNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerNameAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Name [Axis]",
        "documentation": "Information by name of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r1383",
      "r1386",
      "r1389",
      "r1393"
     ]
    },
    "us-gaap_InvestmentIssuerNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentIssuerNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Issuer Name [Domain]",
        "documentation": "Name of issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r1383",
      "r1386",
      "r1389",
      "r1393"
     ]
    },
    "us-gaap_InvestmentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentMaturityDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Maturity Date",
        "terseLabel": "Maturity Date",
        "documentation": "Maturity date of investment, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r772",
      "r773",
      "r793",
      "r794",
      "r798",
      "r799",
      "r857",
      "r858",
      "r997",
      "r1224",
      "r1226"
     ]
    },
    "cef_InvestmentObjectivesAndPracticesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "InvestmentObjectivesAndPracticesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objectives and Practices [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1091"
     ]
    },
    "us-gaap_InvestmentOwnedAtCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedAtCost",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentOwnedAtCostAfterCashEquivalents",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment cost",
        "verboseLabel": "Investment Cost",
        "label": "Amortized cost",
        "documentation": "Cost of the investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r680",
      "r681",
      "r782",
      "r792",
      "r810",
      "r875",
      "r997",
      "r1009",
      "r1360"
     ]
    },
    "mfic_InvestmentOwnedAtCostAfterCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentOwnedAtCostAfterCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentAssetsAndLiabilitiesOwnedAtCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment owned at cost after cash equivalents.",
        "label": "Investment Owned at Cost After Cash Equivalents",
        "terseLabel": "Total Investments after Cash Equivalents",
        "totalLabel": "Total Investments after Cash Equivalents",
        "verboseLabel": "Total Investments after Cash Equivalents, Cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentOwnedAtCostBeforeCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentOwnedAtCostBeforeCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Owned at Cost Before Cash Equivalents",
        "documentation": "Investment owned at cost before cash equivalents.",
        "terseLabel": "Total Investments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentOwnedAtFairValueAfterCashEquivalents",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value",
        "terseLabel": "Total investments at fair value",
        "verboseLabel": "Investments at fair value",
        "periodEndLabel": "Investments in and Advances to Affiliates, at Fair Value, Ending Balance",
        "periodStartLabel": "Investments in and Advances to Affiliates, at Fair Value, Beginning Balance",
        "documentation": "Fair value of investment in security owned."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r673",
      "r674",
      "r675",
      "r677",
      "r679",
      "r680",
      "r681",
      "r684",
      "r689",
      "r692",
      "r704",
      "r705",
      "r769",
      "r778",
      "r779",
      "r788",
      "r802",
      "r803",
      "r817",
      "r818",
      "r819",
      "r852",
      "r855",
      "r874",
      "r876",
      "r879",
      "r997",
      "r1009",
      "r1360"
     ]
    },
    "mfic_InvestmentOwnedAtFairValueAfterCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentOwnedAtFairValueAfterCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail": {
       "parentTag": "mfic_InvestmentAssetsAndLiabilitiesOwnedAtFairValue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment owned at fair value after cash equivalents.",
        "label": "Investment Owned at Fair Value After Cash Equivalents",
        "terseLabel": "Total Investments after Cash Equivalents, Fair Value",
        "totalLabel": "Total Investments after Cash Equivalents, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_InvestmentOwnedAtFairValueBeforeCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentOwnedAtFairValueBeforeCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Owned at Fair Value Before Cash Equivalents",
        "documentation": "Investment owned at fair value before cash equivalents.",
        "terseLabel": "Total Investments, Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedBalancePrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedBalancePrincipalAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Owned, Balance, Principal Amount",
        "terseLabel": "Par",
        "verboseLabel": "Balance of debt amount",
        "documentation": "Amount of principal of investment owned."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r684",
      "r776",
      "r807",
      "r860",
      "r997"
     ]
    },
    "us-gaap_InvestmentOwnedBalanceShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedBalanceShares",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Owned, Balance, Shares",
        "terseLabel": "Shares",
        "documentation": "Number of shares of investment owned."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r684",
      "r776",
      "r807",
      "r860",
      "r997"
     ]
    },
    "mfic_InvestmentOwnedPercentAtCost": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentOwnedPercentAtCost",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment owned percent at cost.",
        "label": "Investment Owned Percent At Cost",
        "terseLabel": "Investment owned percent at cost"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentOwnedPercentOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentOwnedPercentOfNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment owned, percent of net assets",
        "label": "Investment Owned, Net Assets, Percentage",
        "terseLabel": "% of Net Assets",
        "documentation": "Percentage of investment owned to net assets."
       }
      }
     },
     "auth_ref": [
      "r676",
      "r680",
      "r681",
      "r778",
      "r802",
      "r817",
      "r820",
      "r876",
      "r997",
      "r1360"
     ]
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Policy [Policy Text Block]",
        "terseLabel": "Investment Transactions",
        "documentation": "Disclosure of accounting policy for investment in financial asset."
       }
      }
     },
     "auth_ref": [
      "r606",
      "r628",
      "r629",
      "r630",
      "r631",
      "r789",
      "r791"
     ]
    },
    "mfic_InvestmentReferenceRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentReferenceRatePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Reference Rate Percentage",
        "documentation": "Investment reference rate percentage.",
        "terseLabel": "Investment reference rate percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r674",
      "r676",
      "r677",
      "r680",
      "r684",
      "r769",
      "r778",
      "r795",
      "r803",
      "r817",
      "r847",
      "r876",
      "r880",
      "r881",
      "r882",
      "r883",
      "r997"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Domain]",
        "terseLabel": "Investments",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r674",
      "r676",
      "r677",
      "r680",
      "r684",
      "r769",
      "r778",
      "r795",
      "r803",
      "r817",
      "r847",
      "r876",
      "r880",
      "r881",
      "r882",
      "r883",
      "r997"
     ]
    },
    "us-gaap_InvestmentTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r674",
      "r680",
      "r770",
      "r778",
      "r793",
      "r795",
      "r796",
      "r817",
      "r857",
      "r876"
     ]
    },
    "us-gaap_InvestmentUnaffiliatedIssuerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentUnaffiliatedIssuerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlled/Non-affiliated Investments",
        "label": "Investment, Unaffiliated Issuer [Member]",
        "documentation": "Unaffiliated issuer of investment."
       }
      }
     },
     "auth_ref": [
      "r628",
      "r689",
      "r719",
      "r728",
      "r729",
      "r731",
      "r738",
      "r744",
      "r769",
      "r774",
      "r778",
      "r779",
      "r785",
      "r805",
      "r813",
      "r817",
      "r818"
     ]
    },
    "mfic_InvestmentValuationProcessPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentValuationProcessPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment valuation process.",
        "label": "Investment Valuation Process [Policy Text Block]",
        "terseLabel": "Investment Valuation Process"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentVariableInterestRateTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentVariableInterestRateTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Variable Interest Rate, Type [Extensible Enumeration]",
        "documentation": "Indicates type of variable interest rate of investment."
       }
      }
     },
     "auth_ref": [
      "r773",
      "r794",
      "r798",
      "r858"
     ]
    },
    "mfic_InvestmentsBeforeCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "InvestmentsBeforeCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Before Cash Equivalents",
        "documentation": "Investments before cash equivalents.",
        "terseLabel": "Investments before cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Investments, Fair Value Disclosure, Total",
        "label": "Investments, Fair Value Disclosure",
        "terseLabel": "Investments, fair value",
        "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": [
      "r1305",
      "r1306",
      "r1316",
      "r1319",
      "r1320",
      "r1321",
      "r1322"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossAdditions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Additions",
        "terseLabel": "Gross Additions",
        "documentation": "Gross additions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r853"
     ]
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "InvestmentsInAndAdvancesToAffiliatesAtFairValueGrossReductions",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in and Advances to Affiliates, at Fair Value, Gross Reductions",
        "negatedLabel": "Gross Reductions",
        "documentation": "Gross reductions to the investment in and advance to the affiliate."
       }
      }
     },
     "auth_ref": [
      "r854"
     ]
    },
    "mfic_IronCladMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IronCladMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IronClad [Member]",
        "documentation": "IronClad.",
        "terseLabel": "IronClad"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_IronhorsePurchaserLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "IronhorsePurchaserLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ironhorse Purchaser, LLC [Member]",
        "documentation": "Ironhorse purchaser, LLC.",
        "terseLabel": "Ironhorse Purchaser, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ItServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ItServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IT Services [Member]",
        "documentation": "IT Services.",
        "verboseLabel": "IT Services",
        "terseLabel": "IT Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JFAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JFAcquisitionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "JF Acquisition, LLC.",
        "label": "J F Acquisition L L C [Member]",
        "terseLabel": "JF Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JPMorganUSGovernmentMoneyMarketFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JPMorganUSGovernmentMoneyMarketFundMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "J.P. Morgan U.S. Government Money Market Fund [Member]",
        "documentation": "J.P. Morgan U.S. Government Money Market Fund.",
        "terseLabel": "J.P. Morgan U.S. Government Money Market Fund"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JPWMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JPWMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "JPW [Member]",
        "documentation": "JPW [Member]",
        "terseLabel": "JPW"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JacentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JacentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Jacent",
        "documentation": "Jacent.",
        "label": "Jacent [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JacentStrategicMerchandisingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JacentStrategicMerchandisingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Jacent Strategic Merchandising.",
        "label": "Jacent Strategic Merchandising [Member]",
        "terseLabel": "Jacent Strategic Merchandising"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JonesAndFrankMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JonesAndFrankMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Jones and Frank.",
        "label": "Jones And Frank [Member]",
        "terseLabel": "Jones &amp; Frank"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JonesFrankMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JonesFrankMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jones &amp; Frank [Member]",
        "documentation": "Jones &amp; Frank [Member].",
        "terseLabel": "Jones &amp; Frank"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JustinsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JustinsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Justin's LLC",
        "label": "Justin's LLC [Member]",
        "documentation": "Justin's LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_JustinsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "JustinsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Justin's",
        "label": "Justin's [Member]",
        "documentation": "Justin's."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KLCharlieAcquisitionCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KLCharlieAcquisitionCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "KL Charlie Acquisition Company.",
        "label": "K L Charlie Acquisition Company [Member]",
        "terseLabel": "KL Charlie Acquisition Company"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KLOHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KLOHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "KLO Holdings, LLC.",
        "label": "K L O Holdings L L C [Member]",
        "terseLabel": "KLO Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KauffmanHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KauffmanHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kauffman Holdco, LLC.",
        "label": "Kauffman Holdco L L C [Member]",
        "terseLabel": "Kauffman Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KauffmanIntermediateLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KauffmanIntermediateLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kauffman Intermediate, LLC.",
        "label": "Kauffman Intermediate L L C [Member]",
        "terseLabel": "Kauffman Intermediate, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KauffmanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KauffmanMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kauffman.",
        "label": "Kauffman [Member]",
        "terseLabel": "Kauffman"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KurePainHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KurePainHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Kure Pain Holdings Inc [Member]",
        "documentation": "Kure pain holdings, inc.",
        "terseLabel": "Kure Pain Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_KureSmartMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "KureSmartMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kure smart.",
        "label": "Kure Smart [Member]",
        "terseLabel": "KureSmart"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LSClinicalServicesHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LSClinicalServicesHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "LS Clinical Services Holdings, Inc.",
        "label": "L S Clinical Services Holdings Inc [Member]",
        "terseLabel": "LS Clinical Services Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LSGMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LSGMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LSG",
        "label": "L S G [Member]",
        "documentation": "LSG."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LashCoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LashCoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "LashCo",
        "label": "LashCo [Member]",
        "documentation": "LashCo."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LashOpCoLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LashOpCoLlcMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lash opco, Llc.",
        "label": "Lash Op Co Llc [Member]",
        "terseLabel": "Lash OpCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LatestPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LatestPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1103"
     ]
    },
    "mfic_LegacyComMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LegacyComMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legacy.com [Member]",
        "documentation": "Legacy.com.",
        "terseLabel": "Legacy.Com"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LegacyFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LegacyFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legacy Fee",
        "label": "Legacy Fee [Member]",
        "documentation": "Legacy fee [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LeisureProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LeisureProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Leisure Products",
        "label": "Leisure Products [Member]",
        "documentation": "Leisure products.",
        "terseLabel": "Leisure Products"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LendingPoint2018-1FundingTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LendingPoint2018-1FundingTrustMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LendingPoint 2018-1 Funding Trust [Member]",
        "documentation": "LendingPoint 2018-1 Funding Trust.",
        "terseLabel": "LendingPoint 2018-1 Funding Trust"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LendingPointLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LendingPointLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lending point LLC.",
        "label": "Lending Point L L C [Member]",
        "terseLabel": "LendingPoint LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LendingPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LendingPointMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lending point.",
        "label": "Lending Point [Member]",
        "terseLabel": "Lending Point"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LetterOfCreditMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letter of Credit [Member]",
        "terseLabel": "Letter of Credit",
        "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_LettersOfCreditExpirationYear": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LettersOfCreditExpirationYear",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Letters of credit expiration year",
        "label": "Letters of Credit Expiration Year",
        "documentation": "Letters of credit expiration year."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LettersOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LettersOfCreditMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letters of Credit [Member]",
        "documentation": "Letters of credit.",
        "terseLabel": "Letters of Credit"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LexitasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LexitasMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lexitas [Member]",
        "documentation": "Lexitas.",
        "terseLabel": "Lexitas"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_AssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities",
        "totalLabel": "Total Liabilities",
        "documentation": "Amount of liability recognized for present obligation requiring transfer or otherwise providing economic benefit to others."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r33",
      "r34",
      "r35",
      "r39",
      "r40",
      "r41",
      "r42",
      "r140",
      "r143",
      "r144",
      "r213",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r446",
      "r449",
      "r450",
      "r540",
      "r699",
      "r918",
      "r939",
      "r1009",
      "r1240",
      "r1331",
      "r1332"
     ]
    },
    "us-gaap_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LibertyTireRecyclingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LibertyTireRecyclingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liberty Tire Recycling [Member]",
        "documentation": "Liberty Tire Recycling [Member].",
        "terseLabel": "Liberty Tire Recycling"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LifeSciencesToolsAndServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LifeSciencesToolsAndServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Life Sciences Tools &amp; Services",
        "label": "Life Sciences Tools And Services [Member]",
        "documentation": "Life Sciences Tools and Services.",
        "terseLabel": "Life Sciences Tools &amp; Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LifelongLearnerHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LifelongLearnerHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lifelong Learner Holdings, LLC.",
        "label": "Lifelong Learner Holdings L L C [Member]",
        "terseLabel": "Lifelong Learner Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LindstromLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LindstromLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lindstrom, LLC [Member]",
        "documentation": "Lindstrom, LLC.",
        "terseLabel": "Lindstrom, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Long-Term Line of Credit, Total",
        "label": "Long-Term Line of Credit",
        "terseLabel": "Line of credit",
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r70",
      "r1341"
     ]
    },
    "us-gaap_LineOfCreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "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": [
      "r32",
      "r38",
      "r1209",
      "r1212",
      "r1237",
      "r1238"
     ]
    },
    "us-gaap_LineOfCreditFacilityCommitmentFeeAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityCommitmentFeeAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitment fee for unused portion of facility",
        "label": "Line of Credit Facility, Commitment Fee Amount",
        "documentation": "Amount of the fee for available but unused credit capacity under the credit facility."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r38",
      "r239"
     ]
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitment of Merx revolver",
        "label": "Line of Credit Facility, Current Borrowing Capacity",
        "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": [
      "r32",
      "r38"
     ]
    },
    "us-gaap_LineOfCreditFacilityExpirationDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityExpirationDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Expiration Date",
        "terseLabel": "Credit facility expiration date",
        "documentation": "Date the credit facility terminates, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r38"
     ]
    },
    "us-gaap_LineOfCreditFacilityFrequencyOfPaymentAndPaymentTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityFrequencyOfPaymentAndPaymentTerms",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Frequency of Payment and Payment Terms",
        "terseLabel": "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": [
      "r32",
      "r38"
     ]
    },
    "mfic_LineOfCreditFacilityInterestRateDecreasePercentage": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LineOfCreditFacilityInterestRateDecreasePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Of Credit Facility Interest Rate Decrease Percentage",
        "documentation": "Line of credit facility interest rate decrease percentage.",
        "terseLabel": "Interest rate, decrease in percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityLenderDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityLenderDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "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": [
      "r32",
      "r38",
      "r1209",
      "r1212",
      "r1237",
      "r1238"
     ]
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "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": [
      "r32",
      "r38"
     ]
    },
    "mfic_LineOfCreditFacilityMaximumBorrowingCapacityUnderAccordionFeature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacityUnderAccordionFeature",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility maximum borrowing capacity under accordion feature.",
        "label": "Line Of Credit Facility Maximum Borrowing Capacity Under Accordion Feature",
        "terseLabel": "Maximum borrowing capacity under accordian feature"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Remaining Borrowing Capacity",
        "terseLabel": "Available remaining capacity",
        "verboseLabel": "Available borrowing capacity",
        "documentation": "Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding)."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r38",
      "r239"
     ]
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "terseLabel": "Commitment fee per annum",
        "verboseLabel": "Unused commitment fee",
        "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": []
    },
    "mfic_LitifyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LitifyLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Litify LLC",
        "label": "Litify LLC [Member]",
        "documentation": "Litify LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LitifyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LitifyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Litify [Member]",
        "documentation": "Litify.",
        "terseLabel": "Litify"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LoanServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LoanServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/20260630",
     "localname": "LockUpPeriod",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lock up period",
        "label": "Lock Up Period",
        "documentation": "Lock up period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt",
        "verboseLabel": "Total Bethesda CLO 1 Notes",
        "totalLabel": "Total Debt Obligations, net of Deferred Financing Cost and Debt Discount",
        "terseLabel": "Debt (net of deferred financing costs and unamortized original discount of 5,396 and 5,838, respectively)",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r10",
      "r70",
      "r141",
      "r150",
      "r256",
      "r268",
      "r588",
      "r935",
      "r936",
      "r988",
      "r1341"
     ]
    },
    "us-gaap_LongTermDebtAverageAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongTermDebtAverageAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Average Amount Outstanding",
        "terseLabel": "Average debt outstanding (in millions)",
        "verboseLabel": "Average debt outstanding",
        "documentation": "Average amount outstanding of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r80",
      "r81",
      "r736"
     ]
    },
    "cef_LongTermDebtDividendsAndCovenantsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1055"
     ]
    },
    "cef_LongTermDebtIssuanceAndSubstitutionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1056"
     ]
    },
    "cef_LongTermDebtPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtPrincipal",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Principal"
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "cef_LongTermDebtRightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1057"
     ]
    },
    "cef_LongTermDebtStructuringTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtStructuringTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Structuring [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1054"
     ]
    },
    "cef_LongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "cef_LongTermDebtTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LongTermDebtTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1053"
     ]
    },
    "us-gaap_LongTermDebtWeightedAverageInterestRateOverTime": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LongTermDebtWeightedAverageInterestRateOverTime",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails": {
       "parentTag": "us-gaap_DebtInstrumentInterestRateDuringPeriod",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Weighted Average Interest Rate, over Time",
        "terseLabel": "Weighted average annualized interest cost",
        "documentation": "Weighted average interest rate of long-term debt outstanding calculated over time."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LookoutIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LookoutIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lookout, Inc. [Member]",
        "documentation": "Lookout, Inc.",
        "terseLabel": "Lookout, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LookoutMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LookoutMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lookout",
        "label": "Lookout [Member]",
        "documentation": "Lookout",
        "terseLabel": "Lookout"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LossContingenciesByNatureOfContingencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LossContingenciesByNatureOfContingencyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency Nature [Axis]",
        "terseLabel": "Loss Contingency Nature",
        "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": [
      "r190",
      "r233",
      "r234",
      "r235",
      "r238",
      "r346",
      "r624",
      "r933",
      "r1234",
      "r1235"
     ]
    },
    "us-gaap_LossContingencyNatureDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "LossContingencyNatureDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Nature [Domain]",
        "terseLabel": "Loss Contingency, Nature",
        "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": [
      "r190",
      "r233",
      "r234",
      "r235",
      "r238",
      "r346",
      "r624",
      "r933",
      "r1234",
      "r1235"
     ]
    },
    "mfic_LotusTopcoIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LotusTopcoIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lotus Topco Inc [Member]",
        "documentation": "Lotus Topco Inc.",
        "terseLabel": "Lotus Topco Inc."
       }
      }
     },
     "auth_ref": []
    },
    "cef_LowestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LowestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r1097"
     ]
    },
    "cef_LowestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "LowestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r1101"
     ]
    },
    "cef_LowestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1102"
     ]
    },
    "mfic_LucidHealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LucidHealthMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lucid health.",
        "label": "Lucid Health [Member]",
        "terseLabel": "LucidHealth"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_LunarBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "LunarBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lunar Buyer, LLC",
        "label": "Lunar Buyer, LLC [Member]",
        "documentation": "Lunar buyer, llc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MAndMOPCOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MAndMOPCOLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "M And M OPCO LLC [Member]",
        "documentation": "M&amp;M OPCO, LLC.",
        "terseLabel": "M&amp;M OPCO, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MCAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MCAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MCA [Member]",
        "documentation": "MCA.",
        "terseLabel": "MCA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MFICBethesdaCLOTwoLLCDebtSecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MFICBethesdaCLOTwoLLCDebtSecuritizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MFIC Bethesda CLO Two LLC Debt Securitization [Member]",
        "documentation": "MFIC Bethesda Clo two LLC debt securitization.",
        "terseLabel": "MFIC Bethesda CLO 2 LLC Debt Securitization"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MFICBethesdaCloOneUpsizeDebtSecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MFICBethesdaCloOneUpsizeDebtSecuritizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MFIC Bethesda Clo One Upsize Debt Securitization [Member]",
        "documentation": "Mfic Bethesda clo one upsize debt securitization.",
        "terseLabel": "MFIC Bethesda CLO 1 Upsize Debt Securitization"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MGPHoldingsIIICorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MGPHoldingsIIICorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MGP Holdings III Corp.",
        "label": "MGP Holdings III Corp [Member]",
        "documentation": "MGP holdings III Corp.",
        "verboseLabel": "MGP Holdings III Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MMOPCOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MMOPCOLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "M&amp;M OPCO, LLC [Member]",
        "documentation": "M&amp;M OPCO, LLC.",
        "terseLabel": "M&amp;M OPCO, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MPulseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MPulseMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "mPulse",
        "label": "mPulse [Member]",
        "documentation": "mPulse."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MPulseMobileIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MPulseMobileIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "mPulse Mobile, Inc [Member]",
        "documentation": "mPulse Mobile, Inc.",
        "terseLabel": "mPulse Mobile, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MROParentCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MROParentCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MRO Parent Corporation [Member]",
        "documentation": "MRO parent corporation.",
        "terseLabel": "MRO Parent Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MSIExpressIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MSIExpressIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSI Express, Inc.",
        "label": "MSI Express, Inc. [Member]",
        "terseLabel": "MSI Express, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MacQueenEquipmentLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MacQueenEquipmentLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MacQueen Equipment, LLC [Member]",
        "documentation": "MacQueen Equipment, LLC.",
        "terseLabel": "MacQueen Equipment, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MachineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MachineryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Machinery",
        "label": "Machinery [Member]",
        "documentation": "Machinery.",
        "terseLabel": "Machinery"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManagementAndPerformanceBasedIncentiveFeesWaived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ManagementAndPerformanceBasedIncentiveFeesWaived",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management and performance-based incentive fees waived.",
        "label": "Management And Performance Based Incentive Fees Waived",
        "negatedLabel": "Management and performance-based incentive fees waived"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ManagementAndServiceFeesBaseRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementAndServiceFeesBaseRate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fee annual rate percentage",
        "label": "Management and Service Fees, Base Rate",
        "documentation": "Base rate for management and service fees under arrangement to manage operations, including, but not limited to, investment."
       }
      }
     },
     "auth_ref": [
      "r1372"
     ]
    },
    "mfic_ManagementFeeAnnualRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ManagementFeeAnnualRatePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management fee annual rate percentage.",
        "label": "Management Fee Annual Rate Percentage",
        "terseLabel": "Management fee annual rate percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ManagementFeeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementFeeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Management fees recognized",
        "label": "Management Fee Expense",
        "terseLabel": "Management fees",
        "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": [
      "r7",
      "r729",
      "r1007",
      "r1365"
     ]
    },
    "cef_ManagementFeeNotBasedOnNetAssetsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1076"
     ]
    },
    "us-gaap_ManagementFeePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ManagementFeePayable",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fees payable",
        "label": "Management Fee Payable",
        "verboseLabel": "Management fees, accrued",
        "documentation": "Amount of fee payable for management of fund or trust."
       }
      }
     },
     "auth_ref": [
      "r693"
     ]
    },
    "mfic_ManagementFeeQuarterRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ManagementFeeQuarterRatePercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management fee quarter rate percentage.",
        "label": "Management Fee Quarter Rate Percentage",
        "terseLabel": "Management fee quarter rate percentage"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ManagementFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ManagementFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1075"
     ]
    },
    "mfic_ManagementServicesAnnualFee": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ManagementServicesAnnualFee",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management services annual fee.",
        "label": "Management Services Annual Fee",
        "terseLabel": "Management services annual fee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MannkindCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MannkindCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mannkind Corporation",
        "label": "Mannkind Corporation [Member]",
        "documentation": "Mannkind corporation."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ManufacturingCapitalEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ManufacturingCapitalEquipmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Manufacturing Capital Equipment.",
        "label": "Manufacturing Capital Equipment [Member]",
        "terseLabel": "Manufacturing, Capital Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MarianiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MarianiMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mariani [Member]",
        "documentation": "Mariani.",
        "terseLabel": "Mariani"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MarlinDTC-LSMidco2LLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MarlinDTC-LSMidco2LLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marlin DTC-LS Midco 2, LLC [Member]",
        "documentation": "Marlin DTC-LS Midco 2, LLC.",
        "terseLabel": "Marlin DTC-LS Midco 2, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MaximumAmountOfDebtOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MaximumAmountOfDebtOutstanding",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum amount of debt outstanding",
        "label": "Maximum Amount of Debt Outstanding",
        "documentation": "Maximum amount of debt outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "MaximumMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum",
        "documentation": "Upper limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r84",
      "r85",
      "r86",
      "r87",
      "r88",
      "r89",
      "r93",
      "r94",
      "r190",
      "r234",
      "r235",
      "r236",
      "r237",
      "r312",
      "r337",
      "r338",
      "r339",
      "r346",
      "r521",
      "r581",
      "r608",
      "r610",
      "r624",
      "r685",
      "r686",
      "r772",
      "r793",
      "r799",
      "r800",
      "r857",
      "r895",
      "r896",
      "r897",
      "r898",
      "r902",
      "r903",
      "r928",
      "r940",
      "r948",
      "r950",
      "r956",
      "r959",
      "r980",
      "r981",
      "r985",
      "r986",
      "r992",
      "r1242",
      "r1333",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1338"
     ]
    },
    "mfic_MaximumOfferingPriceThroughEquityFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MaximumOfferingPriceThroughEquityFinancing",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum offering price through equity financing.",
        "label": "Maximum Offering Price Through Equity Financing",
        "terseLabel": "Aggregate maximum offering price through equity financing"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MaxorNationalPharmacyServicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MaxorNationalPharmacyServicesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maxor national pharmacy services, llc.",
        "label": "Maxor National Pharmacy Services L L C [Member]",
        "terseLabel": "Maxor National Pharmacy Services, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_McClatchyMediaCompanyLLCFkaAccelerate360HoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "McClatchyMediaCompanyLLCFkaAccelerate360HoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "McClatchy Media Company, LLC (fka Accelerate360 Holdings, LLC) [Member]",
        "documentation": "McClatchy Media Company, LLC (fka Accelerate360 Holdings, LLC)",
        "terseLabel": "McClatchy Media Company, LLC (fka Accelerate360 Holdings, LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_McNicholsCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "McNicholsCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "McNichols Company [Member]",
        "documentation": "McNichols Company Member.",
        "terseLabel": "McNichols Company"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r1133"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1133"
     ]
    },
    "mfic_MeasurementCostApproachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementCostApproachMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Cost Approach [Member]",
        "documentation": "Measurement cost approach.",
        "terseLabel": "Cost Approach"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputBrokerQuoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputBrokerQuoteMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Broker Quote [Member]",
        "documentation": "Measurement Input Broker Quote.",
        "terseLabel": "Broker Quote"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputComparableMultipleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputComparableMultipleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input comparable multiple.",
        "label": "Measurement Input Comparable Multiple [Member]",
        "terseLabel": "Comparable Multiple"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputDiscountRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input, Discount Rate [Member]",
        "terseLabel": "Discount Rate",
        "documentation": "Measurement input using interest rate to determine present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r950",
      "r956",
      "r959",
      "r1307",
      "r1308",
      "r1309"
     ]
    },
    "mfic_MeasurementInputEstimatedProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputEstimatedProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input estimated proceeds.",
        "label": "Measurement Input Estimated Proceeds [Member]",
        "terseLabel": "Estimated Proceeds"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputExpectedVolatilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputExpectedVolatilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input expected volatility.",
        "label": "Measurement Input Expected Volatility [Member]",
        "terseLabel": "Expected Volatility"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputPublicMarkedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputPublicMarkedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Public Marked [Member]",
        "documentation": "Measurement input public marked.",
        "terseLabel": "Public Marked"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputRecentTransactionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputRecentTransactionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input recent transaction.",
        "label": "Measurement Input Recent Transaction [Member]",
        "terseLabel": "Recent Transaction"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputRecoverableAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputRecoverableAmountMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoverable Amount",
        "documentation": "Measurement input recoverable amount.",
        "label": "Measurement Input Recoverable Amount [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputResidualValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputResidualValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input residual value.",
        "label": "Measurement Input Residual Value [Member]",
        "terseLabel": "Residual Value"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeasurementInputSaleProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementInputSaleProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input, sale proceeds.",
        "label": "Measurement Input Sale Proceeds [Member]",
        "terseLabel": "Sale Proceeds"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r519",
      "r520",
      "r521",
      "r950",
      "r956",
      "r959",
      "r980"
     ]
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MeasurementInputTypeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement Input Type [Domain]",
        "terseLabel": "Measurement Input Type",
        "documentation": "Measurement input used to determine value of asset and liability."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r520",
      "r521",
      "r950",
      "r956",
      "r959",
      "r980"
     ]
    },
    "mfic_MeasurementTransactionalValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeasurementTransactionalValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transactional Value",
        "label": "Measurement Transactional Value [Member]",
        "documentation": "Measurement Transactional Value [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MediaDiversifiedProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MediaDiversifiedProductionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Media-Diversified &amp; Production.",
        "label": "Media Diversified Production [Member]",
        "terseLabel": "Media \u2013 Diversified &amp; Production"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MediaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MediaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Media",
        "label": "Media [Member]",
        "documentation": "Media.",
        "terseLabel": "Media"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MedicalGuardianLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MedicalGuardianLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Medical guardian, LLC.",
        "label": "Medical Guardian L L C [Member]",
        "terseLabel": "Medical Guardian, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MedicalGuardianMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MedicalGuardianMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Medical guardian.",
        "label": "Medical Guardian [Member]",
        "terseLabel": "Medical Guardian"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerativeLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerativeLPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Merative L P [Member]",
        "documentation": "Merative L.P.",
        "terseLabel": "Merative L.P."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerativeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerativeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Merative [Member]",
        "documentation": "Merative.",
        "terseLabel": "Merative"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeristemCropPerformanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeristemCropPerformanceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Meristem Crop Performance",
        "label": "Meristem Crop Performance [Member]",
        "documentation": "Meristem Crop Performance"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MeritusGasPartnersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MeritusGasPartnersMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Meritus Gas Partners [Member]",
        "documentation": "Meritus Gas Partners.",
        "terseLabel": "Meritus Gas Partners"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MersinoINCFkaIronhorsePurchaserLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MersinoINCFkaIronhorsePurchaserLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mersino INC Fka Ironhorse Purchaser LLC [Member]",
        "documentation": "Mersino Inc fka ironhorse purchaser Llc.",
        "terseLabel": "Mersino, Inc. (fka Ironhorse Purchaser, LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAdministrationAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerxAdministrationAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merx administration agreement.",
        "label": "Merx Administration Agreement [Member]",
        "terseLabel": "Merx Administration Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAndAIAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerxAndAIAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Merx and AIA [Member]",
        "documentation": "Merx and AIA.",
        "terseLabel": "Merx and AIA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAndApolloMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerxAndApolloMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merx and Apollo.",
        "label": "Merx and Apollo [Member]",
        "terseLabel": "Merx and Apollo"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAviationFinanceLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerxAviationFinanceLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merx Aviation Finance, LLC.",
        "label": "Merx Aviation Finance L L C [Member]",
        "terseLabel": "Merx Aviation Finance, LLC",
        "verboseLabel": "Merx Aviation Finance, L L C"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MerxAviationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MerxAviationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merx aviation.",
        "label": "Merx Aviation [Member]",
        "terseLabel": "Merx Aviation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MetzCulinaryManagementLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MetzCulinaryManagementLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Metz Culinary Management, LLC [Member]",
        "documentation": "Metz Culinary Management, LLC.",
        "terseLabel": "Metz Culinary Management, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MetzCulinaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MetzCulinaryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Metz Culinary",
        "label": "Metz Culinary [Member]",
        "documentation": "Metz culinary."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MficbethesdacloonellcdebtsecuritizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MficbethesdacloonellcdebtsecuritizationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mfic Bethesda Clo one Llc debt securitization member.",
        "label": "MficBethesdaCloOneLlcDebtSecuritization[Member]",
        "terseLabel": "MFIC Bethesda CLO 1 LLC Debt Securitization"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MiddleMarketInvestmentCompaniesEbidta": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MiddleMarketInvestmentCompaniesEbidta",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Middle market investment companies EBIDTA.",
        "label": "Middle Market Investment Companies EBIDTA",
        "terseLabel": "Middle market investment companies EBIDTA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MidwestVisionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MidwestVisionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Midwest vision.",
        "label": "Midwest Vision [Member]",
        "terseLabel": "Midwest Vision"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MidwestVisionPartnersManagementLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MidwestVisionPartnersManagementLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Midwest vision partners management, LLC.",
        "label": "Midwest Vision Partners Management L L C [Member]",
        "terseLabel": "Midwest Vision Partners Management, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MilacronProjectIotaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MilacronProjectIotaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Milacron (Project Iota) [Member]",
        "documentation": "Milacron (project Iota).",
        "terseLabel": "Milacron (Project Iota)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MinimumCapitalGainsDistributionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MinimumCapitalGainsDistributionPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum Capital Gains Distribution Percentage",
        "documentation": "Minimum capital gains distribution percentage.",
        "terseLabel": "Minimum capital gains distribution percentage"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "MinimumMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum",
        "label": "Minimum [Member]",
        "documentation": "Lower limit of the provided range."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r84",
      "r85",
      "r86",
      "r87",
      "r88",
      "r89",
      "r93",
      "r94",
      "r190",
      "r234",
      "r235",
      "r236",
      "r237",
      "r312",
      "r337",
      "r338",
      "r339",
      "r346",
      "r521",
      "r581",
      "r608",
      "r610",
      "r624",
      "r685",
      "r686",
      "r772",
      "r793",
      "r799",
      "r800",
      "r857",
      "r895",
      "r896",
      "r897",
      "r898",
      "r902",
      "r903",
      "r928",
      "r940",
      "r948",
      "r950",
      "r956",
      "r959",
      "r980",
      "r981",
      "r985",
      "r992",
      "r1242",
      "r1333",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1338"
     ]
    },
    "mfic_MinimumOrdinaryIncomeDistributionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MinimumOrdinaryIncomeDistributionPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum Ordinary Income Distribution Percentage",
        "documentation": "Minimum ordinary income distribution percentage.",
        "terseLabel": "Minimum ordinary income distribution percentage"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MitelNetworksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MitelNetworksMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mitel Networks [Member]",
        "documentation": "Mitel Networks",
        "terseLabel": "Mitel Networks"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1152"
     ]
    },
    "mfic_MobileCommunicationsAmericaIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MobileCommunicationsAmericaIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mobile Communications America Inc [Member]",
        "documentation": "Mobile communications america, Inc.",
        "terseLabel": "Mobile Communications America, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ModernCampusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ModernCampusMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Modern Campus.",
        "label": "Modern Campus [Member]",
        "terseLabel": "Modern Campus"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MomentxCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MomentxCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Momentx Corporation.",
        "label": "Momentx Corporation [Member]",
        "terseLabel": "Momentx Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MoneyMarketFundsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MoneyMarketFundsAtCarryingValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Money Market Funds, at Carrying Value",
        "terseLabel": "Money Market Funds Cost",
        "documentation": "Investment in short-term money-market instruments (such as commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and so forth) which are highly liquid (that is, readily convertible to known amounts of cash) and so near their maturity that they present an insignificant risk of changes in value because of changes in interest rates. Generally, only investments with original maturities of three months or less qualify as cash equivalents by definition. Original maturity means an original maturity to the entity holding the investment. For example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents. However, a Treasury note purchased three-years ago does not become a cash equivalent when its remaining maturity is three months."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MoneyMarketFundsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MoneyMarketFundsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Money Market Funds At Fair Value",
        "documentation": "Money market funds at fair value.",
        "terseLabel": "Money Market Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MoneyMarketFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "MoneyMarketFundsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Money Market Funds [Member]",
        "terseLabel": "Money Market Fund",
        "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": [
      "r1249",
      "r1250"
     ]
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1160"
     ]
    },
    "mfic_MultiUtilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MultiUtilitiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multi-Utilities [Member]",
        "documentation": "Multi-Utilities Member.",
        "terseLabel": "Multi-Utilities"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MunsonBuffaloRestaurantGroupLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MunsonBuffaloRestaurantGroupLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Munson Buffalo Restaurant Group LLC [Member]",
        "documentation": "Munson Buffalo Restaurant Group LLC",
        "terseLabel": "Munson Buffalo Restaurant Group LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_MunsonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "MunsonMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Munson",
        "label": "Munson [Member]",
        "documentation": "Munson."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NCP-MSIBuyerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NCP-MSIBuyerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NCP-MSI Buyer [Member]",
        "documentation": "NCP-MSI Buyer.",
        "terseLabel": "NCP-MSI Buyer"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NPPIBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NPPIBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NPPI Buyer LLC [Member]",
        "documentation": "NPPI buyer, LLC.",
        "terseLabel": "NPPI Buyer, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1134"
     ]
    },
    "mfic_NatusSensoryIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NatusSensoryIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natus Sensory, Inc. [Member]",
        "documentation": "Natus Sensory, Inc.",
        "terseLabel": "Natus Sensory, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NatusSensoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NatusSensoryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natus Sensory [Member]",
        "documentation": "Natus Sensory",
        "terseLabel": "Natus Sensory"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NavigaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NavigaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Naviga.",
        "label": "Naviga [Member]",
        "terseLabel": "Naviga"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetAssetValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetAssetValuePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NAV Per Share",
        "verboseLabel": "Net Asset Value Per Share",
        "terseLabel": "Net asset value per share",
        "periodStartLabel": "Net asset value at beginning of period",
        "periodEndLabel": "Net asset value at end of period",
        "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": [
      "r662",
      "r669",
      "r671",
      "r703",
      "r720",
      "r885",
      "r1009"
     ]
    },
    "mfic_NetAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NetAssetsAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net assets.",
        "label": "Net Assets [Abstract]",
        "terseLabel": "Net Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Provided by (Used in) Financing Activity, Including Discontinued Operation",
        "totalLabel": "Net Cash (Used in)/Provided by Financing Activities",
        "documentation": "Amount of cash inflow (outflow) from financing activity, including, but not limited to, discontinued operation. Financing activity includes, but is not limited to, obtaining resource from owner and providing return on, and return of, their investment; borrowing money and repaying amount borrowed, or settling obligation; and obtaining and paying for other resource obtained from creditor on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r134"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing Activities",
        "label": "Cash Provided by (Used in) Financing Activity, Including Discontinued Operation [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Provided by (Used in) Operating Activity, Including Discontinued Operation",
        "totalLabel": "Net Cash (Used in)/Provided by Operating Activities",
        "documentation": "Amount of cash inflow (outflow) from operating activity, including, but not limited to, discontinued operation. Operating activity includes, but is not limited to, transaction, adjustment, and change in value not defined as investing or financing activity."
       }
      }
     },
     "auth_ref": [
      "r55",
      "r56",
      "r57"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Provided by (Used in) Operating Activity, Including Discontinued Operation [Abstract]",
        "terseLabel": "Operating Activities"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NetChangeInUnrealizedGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NetChangeInUnrealizedGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net change in unrealized gains (losses).",
        "label": "Net Change In Unrealized Gains Losses [Abstract]",
        "terseLabel": "Net change in unrealized gains (losses):",
        "verboseLabel": "Net Realized and Change in Unrealized Gains (Losses)"
       }
      }
     },
     "auth_ref": []
    },
    "cef_NetExpenseOverAssetsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NetExpenseOverAssetsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Expense over Assets [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_StockholdersEquityPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20260630/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",
        "verboseLabel": "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": [
      "r50",
      "r57",
      "r74",
      "r105",
      "r111",
      "r121",
      "r122",
      "r126",
      "r140",
      "r143",
      "r144",
      "r146",
      "r155",
      "r160",
      "r161",
      "r162",
      "r163",
      "r164",
      "r167",
      "r168",
      "r175",
      "r213",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r272",
      "r275",
      "r278",
      "r282",
      "r344",
      "r369",
      "r443",
      "r515",
      "r540",
      "r599",
      "r724",
      "r750",
      "r753",
      "r912",
      "r913",
      "r914",
      "r1007",
      "r1240"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToReportingEntityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetIncomeLossAttributableToReportingEntityAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest [Abstract]",
        "terseLabel": "Operations"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetInvestmentIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetInvestmentIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net investment income",
        "totalLabel": "Net Investment Income",
        "label": "Net Investment Income",
        "verboseLabel": "Net Investment Income, Total",
        "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": [
      "r77",
      "r602",
      "r603",
      "r737",
      "r993",
      "r994",
      "r1007"
     ]
    },
    "mfic_NetRealizedAndChangeInUnrealizedGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NetRealizedAndChangeInUnrealizedGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net realized and change in unrealized gains (losses).",
        "label": "Net Realized And Change In Unrealized Gains Losses [Abstract]",
        "terseLabel": "Net Realized and Change in Unrealized Gains (Losses)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NeuroPaceIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NeuroPaceIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NeuroPace, Inc. [Member]",
        "documentation": "NeuroPace, Inc..",
        "terseLabel": "NeuroPace, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NeuroPaceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NeuroPaceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Neuro Pace [Member]",
        "documentation": "Neuro pace.",
        "terseLabel": "NeuroPace"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/20260630",
     "localname": "NewAircraftFundorNewManagedAccounts",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate capital of New Aircraft Funds and New Balance Sheet Investments",
        "label": "New Aircraft Fundor New Managed Accounts",
        "documentation": "New aircraft fundor new managed accounts."
       }
      }
     },
     "auth_ref": []
    },
    "cef_NewCefOrBdcRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NewCefOrBdcRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New CEF or BDC Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "dei_NewEffectiveDateForPreviousFiling": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NewEffectiveDateForPreviousFiling",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Effective Date for Previous Filing"
       }
      }
     },
     "auth_ref": [
      "r1039",
      "r1105",
      "r1106",
      "r1107"
     ]
    },
    "mfic_NewEraTechnologyIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NewEraTechnologyIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "New Era Technology, Inc.",
        "label": "New Era Technology Inc [Member]",
        "terseLabel": "New Era Technology, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NewRelicMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NewRelicMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "New Relic",
        "label": "New Relic [Member]",
        "documentation": "New Relic",
        "terseLabel": "New Relic"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NexityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NexityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nexity [Member]",
        "documentation": "Nexity",
        "terseLabel": "Nexity"
       }
      }
     },
     "auth_ref": []
    },
    "cef_NoPublicTradingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NoPublicTradingTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Public Trading [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1100"
     ]
    },
    "dei_NoSubstantiveChanges462c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NoSubstantiveChanges462c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c)"
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "dei_NoSubstantiveChanges462cFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NoSubstantiveChanges462cFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c), File Number"
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "cef_NoTradingHistoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "NoTradingHistoryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading History [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1104"
     ]
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1133"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r1024",
      "r1035",
      "r1115",
      "r1141",
      "r1149"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1124"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1123"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1141"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1160"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1160"
     ]
    },
    "mfic_NorthHighlandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NorthHighlandMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "North Highland [Member]",
        "documentation": "North highland member",
        "terseLabel": "North Highland"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NorvaxLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NorvaxLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Norvax, LLC.",
        "label": "Norvax L L C [Member]",
        "terseLabel": "Norvax, LLC (dba GoHealth)",
        "verboseLabel": "Norvax, LLC (dba GoHealth)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_NumberOfComponentsConsistsInIncentiveFee": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NumberOfComponentsConsistsInIncentiveFee",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of components consists in incentive fee",
        "label": "Number of Components Consists In Incentive Fee",
        "documentation": "Number of components consists in incentive fee."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NumberOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NumberOfOperatingSegments",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of Operating Segments",
        "terseLabel": "Number of operating segment",
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues."
       }
      }
     },
     "auth_ref": [
      "r924",
      "r1222"
     ]
    },
    "us-gaap_NumberOfReportableSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NumberOfReportableSegments",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of Reportable Segments",
        "terseLabel": "Number of reporting unit",
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r919",
      "r926",
      "r1222"
     ]
    },
    "mfic_NutpodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "NutpodsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nutpods [Member]",
        "documentation": "Nutpods member",
        "terseLabel": "Nutpods"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_O2025Q2DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "O2025Q2DividendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "O 2025 Q2 Dividends [Member]",
        "documentation": "O 2025 Q2 Dividends",
        "terseLabel": "O 2025 Q2 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_O2025Q3DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "O2025Q3DividendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "O 2025 Q3 Dividends [Member]",
        "documentation": "O 2025 Q3 Dividends.",
        "terseLabel": "O 2025 Q3 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_O2026Q1DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "O2026Q1DividendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O 2026 Q1 Dividends",
        "label": "O 2026 Q1 Dividends [Member]",
        "documentation": "O 2026 Q1 dividends."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_O2026Q2DividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "O2026Q2DividendsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "O2026 Q2 Dividends [Member]",
        "documentation": "O2026 Q2 Dividends.",
        "terseLabel": "O 2026 Q2 Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OMH-HealthedgeHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OMH-HealthedgeHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OMH-Healthedge Holdings, Inc.[Member]",
        "documentation": "OMH-Healthedge Holdings, Inc.",
        "terseLabel": "OMH-Healthedge Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OMHHealthedgeHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OMHHealthedgeHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OMH Healthedge Holdings Inc [Member]",
        "documentation": "OMH healthedge holdings, Inc.",
        "terseLabel": "OMH-Healthedge Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ORSNascoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ORSNascoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ORS Nasco [Member]",
        "documentation": "ORS nasco.",
        "terseLabel": "ORS Nasco"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OfferingCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OfferingCost",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Offering cost",
        "label": "Offering Cost",
        "documentation": "Offering cost."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OilGasConsumableFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OilGasConsumableFuelsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil, Gas &amp; Consumable Fuels [Member]",
        "documentation": "Oil, Gas &amp; Consumable Fuels",
        "terseLabel": "Oil, Gas &amp; Consumable Fuels"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OlympusTerminalsHoldcoIILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OlympusTerminalsHoldcoIILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Olympus Terminals Holdco II LLC",
        "label": "Olympus Terminals Holdco II LLC [Member]",
        "documentation": "Olympus terminals holdco II LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OlympusTerminalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OlympusTerminalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Olympus Terminals [Member]",
        "documentation": "Olympus Terminals.",
        "terseLabel": "Olympus Terminals"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OmadaHealthIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OmadaHealthIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Omada Health, Inc.",
        "label": "Omada Health, Inc. [Member]",
        "documentation": "Omada Health, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OmadaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OmadaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Omada",
        "label": "Omada [Member]",
        "documentation": "Omada",
        "terseLabel": "Omada"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OmegaHealthcareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OmegaHealthcareMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Omega Healthcare [Member]",
        "documentation": "Omega healthcare.",
        "verboseLabel": "Omega Healthcare",
        "terseLabel": "Omega Healthcare"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OmniMaxInternationalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OmniMaxInternationalLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OmniMax International LLC [Member]",
        "documentation": "Omnimax international llc member",
        "terseLabel": "OmniMax International, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthCorraInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OneMonthCorraInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1 Month CORRA",
        "documentation": "One month CORRA interest rate.",
        "label": "One Month CORRA Interest Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OneMonthSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OneMonthSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "One Month Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]",
        "terseLabel": "1 Month SOFR",
        "documentation": "One month secured overnight financing rate SOFR overnight index swap rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OpenForwardForeignCurrencyContractIdentifierAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OpenForwardForeignCurrencyContractIdentifierAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Open Forward Foreign Currency Contract, Identifier [Axis]",
        "documentation": "Identification of contract for foreign currency transaction at fixed rate at future date, including, but not limited to, description of contract and other identifying information."
       }
      }
     },
     "auth_ref": [
      "r673",
      "r686",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r839"
     ]
    },
    "us-gaap_OperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OperatingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses",
        "totalLabel": "Total 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": [
      "r914"
     ]
    },
    "us-gaap_OperatingExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OperatingExpensesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses [Abstract]",
        "terseLabel": "Expenses",
        "verboseLabel": "Operating Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperationsCommencedDate1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OperationsCommencedDate1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operations Commenced Date",
        "terseLabel": "Operations commenced date",
        "documentation": "Date the operations of the entity commenced, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OraLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OraLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ora LLC [Member]",
        "documentation": "Ora LLC.",
        "verboseLabel": "Ora LLC",
        "terseLabel": "Ora LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganization"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Organization",
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure."
       }
      }
     },
     "auth_ref": [
      "r65",
      "r106",
      "r107",
      "r109",
      "r626",
      "r627"
     ]
    },
    "mfic_OrganizationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OrganizationLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Organization [Line Items]",
        "label": "Organization [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OrganizationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OrganizationTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Organization.",
        "label": "Organization [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OrigamiOpportunitiesFundIIILPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OrigamiOpportunitiesFundIIILPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Origami Opportunities Fund III, L.P. [Member]",
        "documentation": "Origami Opportunities Fund III, L.P.",
        "terseLabel": "Origami Opportunities Fund III, L.P."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OrigamiOpportunitiesFundIIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OrigamiOpportunitiesFundIIIMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Origami Opportunities Fund III [Member]",
        "documentation": "Origami Opportunities Fund III [Member]",
        "terseLabel": "Origami Opportunities Fund III"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OrionBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OrionBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Orion Buyer, LLC [Member]",
        "documentation": "Orion buyer, llc.",
        "terseLabel": "Orion Buyer, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherAnnualExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1078"
     ]
    },
    "cef_OtherAnnualExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1078"
     ]
    },
    "cef_OtherAnnualExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1078"
     ]
    },
    "cef_OtherAnnualExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherAnnualExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "cef_OtherAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1078"
     ]
    },
    "cef_OtherExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1074"
     ]
    },
    "cef_OtherFeederFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherFeederFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Feeder Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "us-gaap_OtherGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other General and Administrative Expense",
        "terseLabel": "Other general and administrative expenses",
        "documentation": "Amount of general and administrative expense classified as other."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r1371"
     ]
    },
    "us-gaap_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_GrossInvestmentIncomeOperating",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Income",
        "terseLabel": "Other income",
        "documentation": "Amount of revenue and income classified as other."
       }
      }
     },
     "auth_ref": [
      "r607",
      "r727",
      "r868",
      "r869",
      "r871",
      "r993",
      "r994"
     ]
    },
    "us-gaap_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other Liabilities, Total",
        "label": "Other Liabilities",
        "terseLabel": "Other Liabilities",
        "documentation": "Amount of liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r69",
      "r592",
      "r695",
      "r696",
      "r939",
      "r993",
      "r994",
      "r1009",
      "r1342",
      "r1364"
     ]
    },
    "us-gaap_OtherLiabilityRelatedPartyTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OtherLiabilityRelatedPartyTypeExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1330",
      "r1342"
     ]
    },
    "cef_OtherMasterFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherMasterFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Master Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1133"
     ]
    },
    "cef_OtherSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_OtherSecurityDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecurityDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_OtherSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_OtherTransactionExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1073"
     ]
    },
    "cef_OtherTransactionExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1073"
     ]
    },
    "cef_OtherTransactionExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1073"
     ]
    },
    "cef_OtherTransactionExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "cef_OtherTransactionExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1073"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisMaximum",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "cef_OtherTransactionFeesBasisNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesBasisNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "cef_OtherTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OtherTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1022",
      "r1033",
      "r1113",
      "r1147"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r1025",
      "r1036",
      "r1116",
      "r1150"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1025",
      "r1036",
      "r1116",
      "r1150"
     ]
    },
    "cef_OutstandingSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1059"
     ]
    },
    "cef_OutstandingSecurityAuthorizedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityAuthorizedShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Authorized [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1061"
     ]
    },
    "cef_OutstandingSecurityHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1062"
     ]
    },
    "cef_OutstandingSecurityNotHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityNotHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Not Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r1063"
     ]
    },
    "cef_OutstandingSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "OutstandingSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1060"
     ]
    },
    "us-gaap_OverAllotmentOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "OverAllotmentOptionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/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_OverhaulGroupIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OverhaulGroupIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Overhaul Group, Inc.",
        "label": "Overhaul Group, Inc. [Member]",
        "documentation": "Overhaul Group, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_OwnershipPercentageOfOutstandingVotingSecuritiesOfInvestment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "OwnershipPercentageOfOutstandingVotingSecuritiesOfInvestment",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ownership percentage of outstanding voting securities of investment.",
        "label": "Ownership Percentage Of Outstanding Voting Securities Of Investment",
        "terseLabel": "Ownership percentage of outstanding voting securities of investment"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PAICo-InvestorFTAggregatorLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PAICo-InvestorFTAggregatorLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PAI Co-Investor FT Aggregator LLC [Member]",
        "documentation": "PAI Co-Investor FT Aggregator LLC [Member]",
        "terseLabel": "PAI Co-Investor FT Aggregator LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PAIPharmaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PAIPharmaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PAI Pharma",
        "label": "PAI Pharma [Member]",
        "documentation": "Pai pharma."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PGMHoldingsCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PGMHoldingsCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PGM Holdings Corporation",
        "label": "PGM Holdings Corporation [Member]",
        "documentation": "PGM Holdings Corporation."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PHOENIXYWBUYERINCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PHOENIXYWBUYERINCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PHOENIX YW BUYER, INC. [Member]",
        "documentation": "PHOENIX YW BUYER, INC.",
        "terseLabel": "PHOENIX YW BUYER, INC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PHSBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PHSBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PHS buyer, inc.",
        "label": "P H S Buyer Inc [Member]",
        "terseLabel": "PHS Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PHSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PHSMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PHS.",
        "label": "P H S [Member]",
        "terseLabel": "PHS"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PIKCapitalizedExitedFromInvestmentSalesRepaymentsAndRestructurings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PIKCapitalizedExitedFromInvestmentSalesRepaymentsAndRestructurings",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PIK Capitalized Exited From Investment Sales, Repayments, And Restructurings",
        "documentation": "Pik capitalized exited from investment sales, repayments, and restructurings.",
        "terseLabel": "Pik capitalized exited from investment sales, repayments, and restructurings",
        "negatedLabel": "Pik capitalized exited from investment sales, repayments, and restructurings"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PMAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PMAMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PMA [Member]",
        "documentation": "PMA.",
        "terseLabel": "PMA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PMAParentHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PMAParentHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PMA Parent Holdings, LLC [Member]",
        "documentation": "PMA Parent Holdings, LLC.",
        "terseLabel": "PMA Parent Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PSEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PSEMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PSE.",
        "label": "P S E [Member]",
        "terseLabel": "PSE"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PSIServicesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PSIServicesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PSI Services, LLC",
        "label": "PSI Services, LLC [Member]",
        "documentation": "PSI Services, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaceHealthCompaniesLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaceHealthCompaniesLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pace Health Companies, LLC.",
        "label": "Pace Health Companies L L C [Member]",
        "terseLabel": "Pace Health Companies L L C",
        "verboseLabel": "Pace Health Companies, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaiMiddleTierLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaiMiddleTierLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pai Middle Tier LLC [Member]",
        "documentation": "Pai middle tier, LLC.",
        "terseLabel": "Pai Middle Tier, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaidInKindBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaidInKindBalance",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paid in kind balance.",
        "label": "Paid In Kind Balance",
        "periodEndLabel": "PIK balance at end of period",
        "periodStartLabel": "PIK balance at beginning of period"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaidInKindIncomeCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaidInKindIncomeCapitalized",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfChangeInCapitalizedPIKBalanceDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paid-in-kind income capitalized.",
        "label": "Paid In Kind Income Capitalized",
        "terseLabel": "PIK income capitalized"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaidInKindInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaidInKindInterest",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Paid-in-Kind Interest",
        "terseLabel": "PIK income",
        "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": [
      "r5"
     ]
    },
    "mfic_PaintersSupplyAndEquipmentCoFkaGraffitiBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaintersSupplyAndEquipmentCoFkaGraffitiBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Painters Supply and Equipment Co. (fka Graffiti Buyer, Inc.) [Member]",
        "documentation": "Painters Supply and Equipment Co. (fka Graffiti Buyer, Inc.).",
        "terseLabel": "Painters Supply and Equipment Co. (fka Graffiti Buyer, Inc.)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaladoneGroupBidcoLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaladoneGroupBidcoLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paladone group bidco limited.",
        "label": "Paladone Group Bidco Limited [Member]",
        "terseLabel": "Paladone Group Bidco Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaladoneGroupBidcoLimitedTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaladoneGroupBidcoLimitedTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paladone Group Bidco Limited two.",
        "label": "Paladone Group Bidco Limited Two [Member]",
        "terseLabel": "Paladone Group Bidco Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaladoneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaladoneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paladone.",
        "label": "Paladone [Member]",
        "terseLabel": "Paladone"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaperAndForestProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaperAndForestProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Paper &amp; Forest Products",
        "label": "Paper And Forest Products [Member]",
        "documentation": "Paper and forest products.",
        "terseLabel": "Paper &amp; Forest Products"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ParsGroupLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ParsGroupLlcMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PARS Group LLC [Member]",
        "documentation": "PARS Group LLC [Member]",
        "terseLabel": "PARS Group LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PartnerTherapeuticsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PartnerTherapeuticsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Partner therapeutics, inc.",
        "label": "Partner Therapeutics Inc [Member]",
        "terseLabel": "Partner Therapeutics, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PassengerAirlinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PassengerAirlinesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Passenger Airlines",
        "verboseLabel": "Passenger Airlines",
        "label": "Passenger Airlines [Member]",
        "terseLabel": "Passenger Airlines"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PatriotFoodsBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PatriotFoodsBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Patriot Foods Buyer, Inc. [Member]",
        "documentation": "Patriot Foods Buyer, Inc.",
        "terseLabel": "Patriot Foods Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PatriotMCNBuyerCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PatriotMCNBuyerCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Patriot MCN Buyer Corp.",
        "label": "Patriot MCN Buyer Corp. [Member]",
        "documentation": "Patriot MCN Buyer Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PatriotPickleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PatriotPickleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Patriot Pickle [Member]",
        "documentation": "Patriot pickle member",
        "terseLabel": "Patriot Pickle"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaveAmericaIntercoLLCFKAPavementPartnersIntercoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaveAmericaIntercoLLCFKAPavementPartnersIntercoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pave America Interco, LLC (f/k/a Pavement Partners Interco, LLC) [Member]",
        "documentation": "Pave America Interco, LLC (f/k/a Pavement Partners Interco, LLC).",
        "terseLabel": "Pave America Interco, LLC (f/k/a Pavement Partners Interco, LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PaveAmericaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PaveAmericaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pave America [Member]",
        "documentation": "Pave america member",
        "terseLabel": "Pave America"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PavementPreservationAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PavementPreservationAcquisitionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pavement Preservation Acquisition, LLC",
        "label": "Pavement Preservation Acquisition, LLC [Member]",
        "documentation": "Pavement preservation acquisition, llc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PavementPreservationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PavementPreservationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pavement Preservation [Member]",
        "documentation": "Pavement preservation member",
        "terseLabel": "Pavement Preservation"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r1122"
     ]
    },
    "us-gaap_PayableCommonStockRedeemed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PayableCommonStockRedeemed",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payable, Common Stock Redeemed",
        "terseLabel": "Shares Repurchase Payable",
        "documentation": "Amount of payable for common stock reacquired. Includes, but is not limited to, unit, membership interest, or other ownership interest."
       }
      }
     },
     "auth_ref": [
      "r691",
      "r884",
      "r1009"
     ]
    },
    "us-gaap_PayableInvestmentPurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PayableInvestmentPurchase",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payable, Investment, Purchase",
        "terseLabel": "Payable for investments purchased",
        "documentation": "Amount of payable for purchase of investment."
       }
      }
     },
     "auth_ref": [
      "r690",
      "r884",
      "r1009"
     ]
    },
    "us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsForPurchaseOfInvestmentOperatingActivity",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 28.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Purchases of investments",
        "label": "Payment for Purchase, Investment, Operating Activity",
        "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": [
      "r1378"
     ]
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchased common stock value",
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Repurchase of common stock",
        "documentation": "The cash outflow to reacquire common stock during the period."
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_PaymentsOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsOfDividends",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Distributions paid",
        "label": "Payments of Dividends",
        "totalLabel": "Payments of Dividends, Total",
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests."
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_PaymentsOfFinancingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsOfFinancingCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Financing costs paid and deferred",
        "label": "Payments of Financing Costs",
        "totalLabel": "Payments of Financing Costs, Total",
        "terseLabel": "Financing costs paid and deferred",
        "documentation": "The cash outflow for loan and debt issuance costs."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PaymentsToAcquireBusinessesGross",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Businesses, Gross",
        "terseLabel": "Cash paid",
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r422",
      "r950",
      "r954",
      "r961"
     ]
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1132"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1132"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1124"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r1141"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r1134"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1123"
     ]
    },
    "mfic_PercentageOfCumulativePreIncentiveFeeNetReturn": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfCumulativePreIncentiveFeeNetReturn",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of cumulative pre-Incentive fee net return.",
        "label": "Percentage Of Cumulative Pre Incentive Fee Net Return",
        "terseLabel": "Percentage of cumulative pre-Incentive fee net return"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfEquityOwnershipInterest": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfEquityOwnershipInterest",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment, ownership percentage",
        "label": "Percentage of Equity Ownership Interest",
        "documentation": "Percentage of equity ownership interest."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfFederalExciseTaxOnIncomeWhereDistributionRequirementsNotMet": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfFederalExciseTaxOnIncomeWhereDistributionRequirementsNotMet",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Federal Excise Tax On Income Where Distribution Requirements Not Met",
        "documentation": "Percentage of federal excise tax on income where distribution requirements not met.",
        "terseLabel": "Investment company, pay excise tax equal to percentage of amount of annual income and capital gains exceed distribution from taxable income"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfManagementFeeRevenueEarnedAndIncentiveFeeRevenueOffset": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfManagementFeeRevenueEarnedAndIncentiveFeeRevenueOffset",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of management fee revenue earned and incentive fee revenue offset.",
        "label": "Percentage Of Management Fee Revenue Earned And Incentive Fee Revenue Offset",
        "terseLabel": "Percentage of management fee revenue earned and incentive fee revenue offset"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfNonQualifyingAssetsRepresentingCompanyTotalAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfNonQualifyingAssetsRepresentingCompanyTotalAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of non-qualifying assets",
        "label": "Percentage Of Non Qualifying Assets Representing Company Total Assets",
        "documentation": "Percentage of non qualifying assets representing company total assets."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfPreIncentiveFeeNetInvestmentIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfPreIncentiveFeeNetInvestmentIncome",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of pre-incentive fee net investment income.",
        "label": "Percentage Of Pre Incentive Fee Net Investment Income",
        "terseLabel": "Percentage of pre-incentive fee net investment income"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfQualifyingAssetsRepresentingCompanyTotalAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfQualifyingAssetsRepresentingCompanyTotalAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of qualifying assets representing company total assets.",
        "label": "Percentage Of Qualifying Assets Representing Company Total Assets",
        "terseLabel": "Percentage of qualifying assets"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfSalesAgentCommission": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfSalesAgentCommission",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of sales agent commission.",
        "label": "Percentage Of Sales Agent Commission",
        "terseLabel": "Percentage of sales agent receive commission"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOfTotalInvestmentsAtFairValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOfTotalInvestmentsAtFairValue",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of Total Investments (at Fair Value)",
        "label": "Percentage of Total Investments at Fair Value",
        "documentation": "Percentage of total investments at fair value."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOnInvestmentsOnNonAccrualAtAmortizedCost": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOnInvestmentsOnNonAccrualAtAmortizedCost",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage on investments on non-accrual at amortized cost.",
        "label": "Percentage on Investments On Non-Accrual at Amortized Cost",
        "terseLabel": "Percentage on investments on non-accrual at amortized cost"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageOnInvestmentsOnNonAccrualAtFairValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageOnInvestmentsOnNonAccrualAtFairValue",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage on investments on non-accrual at fair value.",
        "label": "Percentage on Investments On Non-Accrual at Fair Value",
        "terseLabel": "Percentage on investments on non-accrual at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PercentageRetainedForNewlyFormedWhollyOwnedSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PercentageRetainedForNewlyFormedWhollyOwnedSubsidiary",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Retained for Newly Formed Wholly Owned Subsidiary",
        "documentation": "Percentage retained for newly formed wholly Owned Subsidiary.",
        "terseLabel": "Percentage retained for newly formed wholly owned subsidiary"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PerformanceBasedIncentiveFeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PerformanceBasedIncentiveFeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Performance-based Incentive Fee",
        "label": "Performance-based Incentive Fee [Member]",
        "documentation": "Performance-based incentive fee."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PerformanceBasedIncentiveFeesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PerformanceBasedIncentiveFeesPayable",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance-based incentive fees payable.",
        "label": "Performance-based Incentive Fees Payable",
        "terseLabel": "Performance-based incentive fees payable"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PersonalCareProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PersonalCareProductsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Personal Care Products [Member]",
        "documentation": "Personal care products.",
        "verboseLabel": "Personal Care Products",
        "terseLabel": "Personal Care Products"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PetSmartMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PetSmartMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PetSmart [Member]",
        "documentation": "PetSmart.",
        "terseLabel": "PetSmart"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PharmaceuticalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PharmaceuticalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pharmaceuticals.",
        "label": "Pharmaceuticals [Member]",
        "verboseLabel": "Pharmaceuticals"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PledgingPurposeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PledgingPurposeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pledging Purpose [Axis]",
        "terseLabel": "Pledging Purpose",
        "documentation": "Information by pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r142",
      "r578",
      "r963",
      "r990",
      "r1188"
     ]
    },
    "us-gaap_PledgingPurposeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PledgingPurposeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pledging Purpose",
        "label": "Pledging Purpose [Domain]",
        "documentation": "Pledging purpose of pledged asset owned."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r142",
      "r578",
      "r963",
      "r990",
      "r1188"
     ]
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1125"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1169"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1124"
     ]
    },
    "mfic_Poly-WoodLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "Poly-WoodLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Poly-Wood, LLC [Member]",
        "documentation": "Poly-Wood, LLC.",
        "terseLabel": "Poly-Wood, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PolywoodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PolywoodMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Polywood",
        "label": "Polywood [Member]",
        "documentation": "Polywood."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PoppuloIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PoppuloIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Poppulo Inc [Member]",
        "documentation": "Poppulo Inc.",
        "terseLabel": "Poppulo, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "dei_PostEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PostEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r1010"
     ]
    },
    "dei_PostEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1010"
     ]
    },
    "dei_PreEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "PreEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r1010"
     ]
    },
    "dei_PreEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "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": [
      "r1010"
     ]
    },
    "mfic_PreIncentiveFeeNetInvestmentIncomeDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PreIncentiveFeeNetInvestmentIncomeDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "pre-incentive fee net investment income description.",
        "label": "Pre Incentive Fee Net Investment Income Description",
        "terseLabel": "Pre-incentive fee net investment income description"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PrecisionRefrigerationAirConditioningLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PrecisionRefrigerationAirConditioningLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Precision Refrigeration &amp; Air Conditioning LLC.",
        "label": "Precision Refrigeration Air Conditioning L L C [Member]",
        "terseLabel": "Precision Refrigeration &amp; Air Conditioning LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PreferredReturnMultiplyingNetAssetPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PreferredReturnMultiplyingNetAssetPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred return multiplying net asset percentage.",
        "label": "Preferred Return Multiplying Net Asset Percentage",
        "terseLabel": "Preferred return multiplying net asset percentage"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PreferredReturnMultiplyingNetAssetsPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PreferredReturnMultiplyingNetAssetsPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred return multiplying net assets percentage.",
        "label": "Preferred return multiplying net assets percentage",
        "terseLabel": "Preferred return multiplying net assets percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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": [
      "r21",
      "r22",
      "r43",
      "r1209",
      "r1211",
      "r1243"
     ]
    },
    "us-gaap_PreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PreferredStockMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Preferred Equity - Preferred Stock",
        "label": "Preferred Stock [Member]",
        "terseLabel": "Preferred Equity",
        "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": [
      "r995",
      "r996",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1351",
      "r1376"
     ]
    },
    "cef_PreferredStockRestrictionsArrearageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PreferredStockRestrictionsArrearageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Arrearage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1049"
     ]
    },
    "cef_PreferredStockRestrictionsOtherTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PreferredStockRestrictionsOtherTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Other [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1050"
     ]
    },
    "us-gaap_PrepaidExpenseAndOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PrepaidExpenseAndOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prepaid Expense and Other Assets",
        "terseLabel": "Prepaid expenses 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/2025",
     "localname": "PrimaryShelfFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_PrimaryShelfQualifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PrimaryShelfQualifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf Qualified [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "us-gaap_PrimeRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "PrimeRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prime Rate [Member]",
        "terseLabel": "Prime Rate",
        "documentation": "Interest rate charged by financial institutions to their most creditworthy borrowers."
       }
      }
     },
     "auth_ref": [
      "r1194",
      "r1239"
     ]
    },
    "mfic_PrimeflightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PrimeflightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primeflight [Member]",
        "documentation": "Primeflight.",
        "terseLabel": "Primeflight"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_Pro-VigilHoldingCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "Pro-VigilHoldingCompanyLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pro-Vigil Holding Company, LLC [Member]",
        "documentation": "Pro-Vigil Holding Company, LLC.",
        "terseLabel": "Pro-Vigil Holding Company, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ProVigilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProVigilMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pro Vigil.",
        "label": "Pro Vigil [Member]",
        "terseLabel": "Pro Vigil"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromDispositionOfInvestmentOperatingActivity",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 29.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sales and repayments of investments",
        "label": "Proceeds from Disposition of Investment, Operating Activity",
        "verboseLabel": "Repayment of investment to company",
        "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": [
      "r1378"
     ]
    },
    "us-gaap_ProceedsFromIssuanceInitialPublicOffering": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceInitialPublicOffering",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance Initial Public Offering",
        "terseLabel": "Proceeds from initial public offering",
        "documentation": "The cash inflow associated with the amount received from entity's first offering of stock to the public."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proceeds from additional offerings of common stock",
        "terseLabel": "Net proceeds from the issuance of common stock",
        "verboseLabel": "Equity offerings of common stock",
        "documentation": "The cash inflow from the additional capital contribution to the entity."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceOfDebt",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Debt",
        "terseLabel": "Issuances 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": [
      "r1206"
     ]
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Issuance of Unsecured Debt",
        "terseLabel": "Net proceeds from senior unsecured notes",
        "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": [
      "r12"
     ]
    },
    "mfic_ProceedsFromSaleOfAircraft": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProceedsFromSaleOfAircraft",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Sale of Aircraft",
        "documentation": "Proceeds from sale of aircraft.",
        "terseLabel": "Proceeds from sale of aircraft"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ProceedsFromSaleOfReceivedHoldbackInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProceedsFromSaleOfReceivedHoldbackInvestment",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Received Holdback Investment",
        "documentation": "Proceeds from sale of received holdback investment.",
        "terseLabel": "Proceeds from sale of received holdback investment"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ProfessionalServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProfessionalServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Professional Services [Member]",
        "documentation": "Professional services.",
        "verboseLabel": "Professional Services",
        "terseLabel": "Professional Services"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net increase (decrease) in net assets resulting from operations",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net profit (loss)",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r111",
      "r121",
      "r122",
      "r133",
      "r140",
      "r143",
      "r144",
      "r146",
      "r155",
      "r164",
      "r167",
      "r168",
      "r213",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r246",
      "r247",
      "r248",
      "r272",
      "r344",
      "r369",
      "r443",
      "r444",
      "r447",
      "r448",
      "r515",
      "r540",
      "r585",
      "r587",
      "r598",
      "r653",
      "r724",
      "r750",
      "r753",
      "r964",
      "r965",
      "r1008",
      "r1204",
      "r1240"
     ]
    },
    "mfic_ProjectComfortBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProjectComfortBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Project comfort buyer inc.",
        "label": "Project Comfort Buyer Inc [Member]",
        "terseLabel": "Project Comfort Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ProjectTitanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProjectTitanMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Project Titan [Member]",
        "documentation": "Project Titan.",
        "terseLabel": "Project Titan"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ProspectusLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ProspectusLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "cef_ProspectusTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ProspectusTable",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus:"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "mfic_ProteinForPetsOpcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ProteinForPetsOpcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Protein for pets opco, Llc.",
        "label": "Protein For Pets Opco L L C [Member]",
        "terseLabel": "Protein For Pets Opco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PurchasesOfInvestmentsOnTradeDateBasis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PurchasesOfInvestmentsOnTradeDateBasis",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchases of investments on trade date basis.",
        "label": "Purchases Of Investments On Trade Date Basis",
        "terseLabel": "Purchases of investments on trade date basis"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PurchasingPowerFundingILLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PurchasingPowerFundingILLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchasing power funding I, LLC.",
        "label": "Purchasing Power Funding I L L C [Member]",
        "terseLabel": "Purchasing Power Funding I, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_PureUpperHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "PureUpperHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pure Upper Holdco LLC [Member]",
        "documentation": "Pure Upper Holdco LLC.",
        "terseLabel": "Pure Upper Holdco LLC"
       }
      }
     },
     "auth_ref": []
    },
    "cef_PurposeOfFeeTableNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "PurposeOfFeeTableNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose of Fee Table , Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1065"
     ]
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1122"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1122"
     ]
    },
    "mfic_QuarterlyPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "QuarterlyPayment",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Quarterly payment",
        "label": "Quarterly Payment",
        "documentation": "Quarterly payment."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RFFagerCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RFFagerCompanyLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "R.F. Fager Company, LLC [Member]",
        "documentation": "R.F. Fager Company, LLC.",
        "terseLabel": "R.F. Fager Company, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RFFagerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RFFagerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "RF Fager [Member]",
        "documentation": "Rf fager member",
        "terseLabel": "RF Fager"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RHAHealthServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RHAHealthServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RHA Health Services,",
        "label": "R H A Health Services [Member]",
        "terseLabel": "R H A Health Services"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RHIAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RHIAcquisitionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "RHI Acquisition LLC [Member]",
        "documentation": "RHI Acquisition LLC.",
        "terseLabel": "RHI Acquisition LLC"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement",
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r84",
      "r85",
      "r86",
      "r87",
      "r88",
      "r89",
      "r93",
      "r94",
      "r190",
      "r234",
      "r235",
      "r236",
      "r237",
      "r300",
      "r312",
      "r337",
      "r338",
      "r339",
      "r341",
      "r346",
      "r521",
      "r577",
      "r579",
      "r581",
      "r608",
      "r610",
      "r624",
      "r685",
      "r686",
      "r772",
      "r793",
      "r799",
      "r800",
      "r857",
      "r895",
      "r896",
      "r897",
      "r898",
      "r902",
      "r903",
      "r928",
      "r940",
      "r948",
      "r950",
      "r956",
      "r959",
      "r980",
      "r981",
      "r985",
      "r986",
      "r992",
      "r997",
      "r1232",
      "r1242",
      "r1308",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1338"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RangeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement",
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r84",
      "r85",
      "r86",
      "r87",
      "r88",
      "r89",
      "r93",
      "r94",
      "r190",
      "r234",
      "r235",
      "r236",
      "r237",
      "r300",
      "r312",
      "r337",
      "r338",
      "r339",
      "r341",
      "r346",
      "r521",
      "r577",
      "r579",
      "r581",
      "r608",
      "r610",
      "r624",
      "r685",
      "r686",
      "r772",
      "r793",
      "r799",
      "r800",
      "r857",
      "r895",
      "r896",
      "r897",
      "r898",
      "r902",
      "r903",
      "r928",
      "r940",
      "r948",
      "r950",
      "r956",
      "r959",
      "r980",
      "r981",
      "r985",
      "r986",
      "r992",
      "r997",
      "r1232",
      "r1242",
      "r1308",
      "r1334",
      "r1335",
      "r1336",
      "r1337",
      "r1338"
     ]
    },
    "mfic_RarebreedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RarebreedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rarebreed [Member]",
        "documentation": "Rarebreed.",
        "verboseLabel": "Rarebreed",
        "terseLabel": "Rarebreed"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RarebreedVeterinaryPartnersIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RarebreedVeterinaryPartnersIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rarebreed Veterinary Partners, Inc. [Member]",
        "documentation": "Rarebreed Veterinary Partners, Inc.",
        "terseLabel": "Rarebreed Veterinary Partners, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RealEstateManagementAndDevelopmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RealEstateManagementAndDevelopmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate Management And Development [Member]",
        "documentation": "Real estate management and development.",
        "verboseLabel": "Real Estate Management &amp; Development"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency",
       "weight": 1.0,
       "order": 0.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Gain (Loss), Investment, Derivative, and Foreign Currency Transaction Price Change, Operating, after Tax",
        "terseLabel": "Net realized (gains) losses",
        "negatedLabel": "Net realized (gains) losses",
        "verboseLabel": "Net realized gains (losses)",
        "totalLabel": "Net realized gains (losses)",
        "negatedTotalLabel": "Net realized gains (losses)",
        "negatedTerseLabel": "Net realized (gains) losses",
        "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": [
      "r653",
      "r751",
      "r893",
      "r1367"
     ]
    },
    "mfic_RealizedGainsOrLossesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RealizedGainsOrLossesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Realized gains or losses, policy.",
        "label": "Realized Gains Or Losses Policy [Policy Text Block]",
        "terseLabel": "Realized Gains or Losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RealizedInvestmentGainsLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net realized gains (losses)",
        "label": "Realized Investment Gains (Losses)",
        "terseLabel": "Net realized gains (losses)",
        "negatedLabel": "Net realized (gains) losses",
        "negatedTerseLabel": "Net realized (gains) losses on investments",
        "verboseLabel": "Net realized gains (losses) on Investments",
        "documentation": "Amount of realized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "us-gaap_RealizedInvestmentGainsLossesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RealizedInvestmentGainsLossesAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Realized Investment Gains (Losses) [Abstract]",
        "terseLabel": "Net realized gains (losses):",
        "verboseLabel": "Net realized gains (losses) on Investments:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReceivableInvestmentSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ReceivableInvestmentSale",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivable for investments sold",
        "label": "Receivable, Investment, Sale",
        "documentation": "Amount of receivable from sale of investment."
       }
      }
     },
     "auth_ref": [
      "r709",
      "r765",
      "r1009"
     ]
    },
    "us-gaap_RecoveryOfDirectCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RecoveryOfDirectCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Direct Costs",
        "terseLabel": "Administrative service expense reimbursements",
        "negatedLabel": "Expense reimbursements",
        "documentation": "Return of or reimbursements received in relation to direct costs and expenses previously paid or incurred."
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r1017",
      "r1028",
      "r1108",
      "r1142"
     ]
    },
    "mfic_RedfinCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RedfinCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Redfin Corporation [Member]",
        "documentation": "Redfin Corporation.",
        "terseLabel": "Redfin Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RegisCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RegisCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regis Corporation [Member]",
        "documentation": "Regis corporation.",
        "terseLabel": "Regis Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "cef_RegisteredClosedEndFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RegisteredClosedEndFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registered Closed-End Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r1039"
     ]
    },
    "us-gaap_RelatedPartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related and Nonrelated Parties [Domain]",
        "terseLabel": "Related Party",
        "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": [
      "r140",
      "r145",
      "r146",
      "r208",
      "r307",
      "r311",
      "r567",
      "r568",
      "r593",
      "r597",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r719",
      "r766",
      "r1366"
     ]
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Axis]",
        "terseLabel": "Related Party Transaction",
        "documentation": "Information by type of related party transaction."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r145",
      "r146",
      "r567",
      "r568",
      "r1330"
     ]
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Domain]",
        "terseLabel": "Related Party Transaction",
        "documentation": "Transaction between related party."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r145",
      "r146",
      "r1330"
     ]
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Line Items]",
        "terseLabel": "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": [
      "r140",
      "r145",
      "r146",
      "r208",
      "r567",
      "r568",
      "r569",
      "r731",
      "r732",
      "r735"
     ]
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related and Nonrelated Parties [Axis]",
        "terseLabel": "Related Party",
        "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": [
      "r140",
      "r145",
      "r146",
      "r208",
      "r307",
      "r311",
      "r567",
      "r568",
      "r593",
      "r597",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r719",
      "r766",
      "r1330",
      "r1366"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureRelatedPartyAgreementsAndTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Party Agreements and Transactions",
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r564",
      "r565",
      "r566",
      "r568",
      "r570",
      "r647",
      "r648",
      "r649",
      "r733",
      "r734",
      "r735",
      "r762",
      "r764"
     ]
    },
    "mfic_RelevantIndustrialLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RelevantIndustrialLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Relevant Industrial, LLC [Member]",
        "documentation": "Relevant industrial llc.",
        "terseLabel": "Relevant Industrial, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RelevantIndustrialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RelevantIndustrialMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Relevant Industrial [Member]",
        "documentation": "Relevant industrial.",
        "terseLabel": "Relevant Industrial"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RenewFinancialLLCFKARenewableFundingLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RenewFinancialLLCFKARenewableFundingLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Renew Financial LLC (f/k/a Renewable Funding, LLC) [Member]",
        "documentation": "Renew Financial LLC (f/k/a Renewable Funding, LLC).",
        "terseLabel": "Renew Financial LLC (f/k/a Renewable Funding, LLC)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RenovoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RenovoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Renovo.",
        "label": "Renovo [Member]",
        "terseLabel": "Renovo"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RepaymentsOfLongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of debt",
        "label": "Repayments of Long-Term Debt",
        "totalLabel": "Repayments of Long-Term Debt, Total",
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r54",
      "r640"
     ]
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "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": [
      "r90",
      "r91",
      "r140",
      "r147",
      "r148",
      "r252",
      "r286",
      "r569",
      "r580",
      "r590",
      "r908",
      "r910",
      "r911",
      "r1195",
      "r1196",
      "r1197",
      "r1198",
      "r1199",
      "r1200",
      "r1201",
      "r1202",
      "r1203",
      "r1299",
      "r1300",
      "r1301",
      "r1302"
     ]
    },
    "mfic_RequiredAssetsCoverageRatioPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RequiredAssetsCoverageRatioPercentage",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Required assets coverage percentage.",
        "terseLabel": "Required assets coverage percentage",
        "label": "Required Assets Coverage Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RequiredIndebtednessRatioForCovenants": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RequiredIndebtednessRatioForCovenants",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Required indebtedness ratio for covenants",
        "label": "Required Indebtedness Ratio for Covenants",
        "documentation": "Required indebtedness ratio for covenants."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RequiredMinimumPercentageOfEquityToAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RequiredMinimumPercentageOfEquityToAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Required minimum percentage of equity to assets",
        "label": "Required Minimum Percentage of Equity to Assets",
        "documentation": "Required minimum percentage of equity to assets."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1018",
      "r1029",
      "r1109",
      "r1143"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r1019",
      "r1030",
      "r1110",
      "r1144"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1026",
      "r1037",
      "r1117",
      "r1151"
     ]
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Domain]",
        "terseLabel": "Cash and Cash Equivalents",
        "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": [
      "r112"
     ]
    },
    "us-gaap_RestrictedInvestmentsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RestrictedInvestmentsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Investments, at Fair Value",
        "terseLabel": "Restricted securities fair value",
        "documentation": "The aggregate value of all restricted investments."
       }
      }
     },
     "auth_ref": [
      "r785",
      "r813",
      "r875",
      "r899",
      "r900"
     ]
    },
    "us-gaap_RestrictedInvestmentsPercentOfNetAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RestrictedInvestmentsPercentOfNetAssets",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Investments, Percent of Net Assets",
        "terseLabel": "Restricted securities percent of net assets",
        "documentation": "The percent of net assets of the aggregate value of all restricted investments."
       }
      }
     },
     "auth_ref": [
      "r785",
      "r813",
      "r875"
     ]
    },
    "mfic_RestrictedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RestrictedSecuritiesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted Securities [Member]",
        "label": "Restricted Securities [Member]",
        "terseLabel": "Restricted Securities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetailSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RetailSectorMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retail",
        "label": "Retail Sector [Member]",
        "documentation": "Sector of economy consisting of companies engaged in business activity related to sale of goods to public for use or consumption."
       }
      }
     },
     "auth_ref": [
      "r997",
      "r1380",
      "r1384",
      "r1387",
      "r1390"
     ]
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Accumulated under-distributed (over-distributed) earnings",
        "verboseLabel": "Accumulated under-distributed (over-distributed) earnings",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r63",
      "r596",
      "r618",
      "r623",
      "r643",
      "r702",
      "r989"
     ]
    },
    "cef_ReturnAtMinusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtMinusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_ReturnAtMinusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtMinusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_ReturnAtPlusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtPlusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_ReturnAtPlusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtPlusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "cef_ReturnAtZeroPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ReturnAtZeroPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Zero [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "us-gaap_RevenueRecognitionInterest": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RevenueRecognitionInterest",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment Income Recognition",
        "terseLabel": "Investment Valuation Process",
        "label": "Revenue Recognition, Interest [Policy Text Block]",
        "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": []
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "RevenueRecognitionPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue [Policy Text Block]",
        "terseLabel": "Non-Accrual Income",
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources."
       }
      }
     },
     "auth_ref": [
      "r728"
     ]
    },
    "mfic_RicIncomeDistributionRequirement": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RicIncomeDistributionRequirement",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment company taxable income percentage",
        "label": "RIC Income Distribution Requirement",
        "documentation": "RIC Income Distribution Requirement."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RigelPharmaceuticalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RigelPharmaceuticalsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rigel Pharmaceuticals",
        "documentation": "Rigel Pharmaceuticals.",
        "label": "Rigel Pharmaceuticals [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_RightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1052"
     ]
    },
    "cef_RightsSubjectToOtherThanMajorityVoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "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": [
      "r1051"
     ]
    },
    "cef_RiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Axis]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "cef_RiskFactorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskFactorsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk Factors [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "cef_RiskTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "RiskTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1092"
     ]
    },
    "mfic_RisksRelatingToTheMergersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RisksRelatingToTheMergersMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risks Relating to the Mergers [Member]",
        "documentation": "Risks relating to the mergers.",
        "terseLabel": "Risks Relating to the Mergers"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RiverbedTechnologyIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RiverbedTechnologyIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Riverbed Technology, Inc. [Member]",
        "documentation": "Riverbed Technology, Inc.",
        "terseLabel": "Riverbed Technology, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RoCHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RoCHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RoC Holdco LLC",
        "label": "RoC Holdco LLC [Member]",
        "documentation": "RoC Holdco LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RoCSkincareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RoCSkincareMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "RoC Skincare [Member]",
        "documentation": "RoC Skincare",
        "terseLabel": "RoC Skincare"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RonnocoCoffeeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RonnocoCoffeeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ronnoco Coffee [Member]",
        "documentation": "Ronnoco coffee.",
        "terseLabel": "Ronnoco Coffee"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RonnocoHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RonnocoHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ronnoco Holdings, Inc. [Member]",
        "documentation": "Ronnoco Holdings, Inc..",
        "terseLabel": "Ronnoco Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_RoscoeMedicalIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "RoscoeMedicalIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Roscoe Medical, Inc.",
        "label": "Roscoe Medical Inc [Member]",
        "terseLabel": "Roscoe Medical Inc"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1160"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1160"
     ]
    },
    "mfic_SECRule10b51RepurchasePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SECRule10b51RepurchasePlanMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SEC rule 10b5-1 repurchase plan.",
        "label": "S E C Rule10b51 Repurchase Plan [Member]",
        "terseLabel": "10b5-1 Repurchase Plans"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SEERMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SEERMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEER [Member]",
        "documentation": "Seer [Member]",
        "terseLabel": "SEER"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SEVIntermediateHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SEVIntermediateHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEV Intermediate Holdco, LLC [Member]",
        "documentation": "SEV Intermediate Holdco, LLC.",
        "terseLabel": "SEV Intermediate Holdco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SIHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SIHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SI Holdings, Inc.",
        "label": "S I Holdings Inc [Member]",
        "terseLabel": "SI Holdings, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SONIAInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SONIAInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SONIA Interest Rate.",
        "label": "S O N I A Interest Rate [Member]",
        "terseLabel": "SONIA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SafetyCoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SafetyCoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SafetyCo",
        "label": "SafetyCo [Member]",
        "documentation": "SafetyCo."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SaffronBidcoLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SaffronBidcoLtdMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saffron Bidco Ltd [Member]",
        "documentation": "Saffron bidco ltd.",
        "terseLabel": "Saffron Bidco Ltd"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SaleOfStockNameOfTransactionDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/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/20260630",
     "localname": "SalesAndRepaymentOfInvestmentsOnTradeDateBasis",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales and Repayment of Investments on Trade Date Basis",
        "documentation": "Sales and repayment of investments on trade date basis."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SalesLoadPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SalesLoadPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "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": [
      "r313",
      "r1190"
     ]
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]",
        "terseLabel": "Scenario",
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r108",
      "r110",
      "r170",
      "r313",
      "r1183"
     ]
    },
    "mfic_ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ScheduleOfAllocatedAmountsToBeRepurchasePlansTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of allocated amounts to be repurchase plans.",
        "label": "Schedule Of Allocated Amounts To Be Repurchase Plans Table [Text Block]",
        "terseLabel": "Summary of Allocated Amounts to be Repurchased"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination [Table]",
        "documentation": "Disclosure of information about business combination. Includes, but is not limited to, recognized asset and liability."
       }
      }
     },
     "auth_ref": [
      "r219",
      "r374",
      "r375",
      "r376",
      "r377",
      "r383",
      "r384",
      "r385",
      "r386",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r431",
      "r432",
      "r433",
      "r437",
      "r950",
      "r959",
      "r1282",
      "r1286",
      "r1288"
     ]
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfDebtTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Debt [Table Text Block]",
        "terseLabel": "Schedule of Outstanding Debt Obligations",
        "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_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Derivative Instruments, Gain (Loss)",
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r454",
      "r457",
      "r462",
      "r470",
      "r481"
     ]
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1221"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Axis]",
        "terseLabel": "Investment, Name",
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r211",
      "r212",
      "r361",
      "r540",
      "r1184",
      "r1185",
      "r1186",
      "r1277",
      "r1278",
      "r1279",
      "r1280"
     ]
    },
    "mfic_ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ScheduleOfForeignDenominatedDebtOutstandingTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Foreign-denominated Debt Outstanding [Table Text Block]",
        "documentation": "Schedule of foreign-denominated debt outstanding.",
        "terseLabel": "Summary of Foreign Denominated Debt Outstanding on Senior Secured Facility"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfForeignExchangeContractsStatementOfFinancialPositionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfForeignExchangeContractsStatementOfFinancialPositionTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Foreign Exchange Contracts, Statement of Financial Position [Table Text Block]",
        "terseLabel": "Schedule of Foreign Currency Forward Contracts",
        "documentation": "Tabular disclosure of the presentation of foreign exchange contracts on the statement of financial position, including the fair value amounts and location of such amounts."
       }
      }
     },
     "auth_ref": [
      "r1294",
      "r1295",
      "r1297"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Line Items]",
        "terseLabel": "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": [
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r790",
      "r792",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r848",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878",
      "r879"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfInvestmentsTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfForeignCurrencyForwardContractsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Table]",
        "terseLabel": "Schedule Of Investments [Table]",
        "documentation": "Disclosure of information about investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r790",
      "r792",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r848",
      "r849",
      "r850",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r857",
      "r858",
      "r859",
      "r860",
      "r874",
      "r875",
      "r876",
      "r877",
      "r878",
      "r879"
     ]
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Asset Acquired and Liability Assumed [Table Text Block]",
        "terseLabel": "Summary of Allocation of Purchase Price to Assets Acquired and Liabilities Assumed",
        "documentation": "Tabular disclosure of asset acquired and liability assumed in business combination and recognized at acquisition date."
       }
      }
     },
     "auth_ref": [
      "r1287",
      "r1289"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Table]",
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]",
        "documentation": "Disclosure of information about related party transaction."
       }
      }
     },
     "auth_ref": [
      "r140",
      "r145",
      "r146",
      "r567",
      "r568",
      "r569",
      "r731",
      "r732",
      "r735"
     ]
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfStockByClassTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock, Class of Stock [Table]",
        "terseLabel": "Schedule Of Stock By Class [Table]",
        "documentation": "Disclosure of information about stock by class. Includes, but is not limited to, common, convertible, and preferred stocks."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r20",
      "r21",
      "r22",
      "r23",
      "r24",
      "r61",
      "r62",
      "r63",
      "r116",
      "r117",
      "r118",
      "r185",
      "r284",
      "r285",
      "r286",
      "r288",
      "r291",
      "r296",
      "r298",
      "r489",
      "r637",
      "r638",
      "r639",
      "r640",
      "r940",
      "r1182",
      "r1209",
      "r1211"
     ]
    },
    "us-gaap_ScheduleOfTreasuryStockByClassTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ScheduleOfTreasuryStockByClassTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Treasury Stock [Table Text Block]",
        "terseLabel": "Schedule of Repurchase Plans",
        "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": [
      "r25",
      "r26",
      "r27",
      "r28"
     ]
    },
    "mfic_SecondLienSecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SecondLienSecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Second lien secured debt.",
        "label": "Second Lien Secured Debt [Member]",
        "terseLabel": "Second Lien Secured Debt"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]",
        "terseLabel": "SOFR",
        "documentation": "Fixed rate on U.S. dollar, constant-notional interest rate swap that has its variable-rate leg referenced to Secured Overnight Financing Rate (SOFR) with no additional spread over SOFR on variable-rate leg."
       }
      }
     },
     "auth_ref": [
      "r976"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1011"
     ]
    },
    "cef_SecurityDividendsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityDividendsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Dividends [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1042"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r1013"
     ]
    },
    "cef_SecurityLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityLiabilitiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liabilities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1045"
     ]
    },
    "cef_SecurityLiquidationRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityLiquidationRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liquidation Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1044"
     ]
    },
    "cef_SecurityObligationsOfOwnershipTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityObligationsOfOwnershipTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Obligations of Ownership [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1047"
     ]
    },
    "cef_SecurityPreemptiveAndOtherRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityPreemptiveAndOtherRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Preemptive and Other Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1046"
     ]
    },
    "cef_SecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1041"
     ]
    },
    "cef_SecurityVotingRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SecurityVotingRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Voting Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1043"
     ]
    },
    "mfic_SecurusTechnologiesHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SecurusTechnologiesHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securus Technologies Holdings Inc.",
        "label": "Securus Technologies Holdings Inc [Member]",
        "terseLabel": "Securus Technologies Holdings, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingCodmIndividualTitleAndPositionOrGroupOrCommitteeNameExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SegmentReportingCodmIndividualTitleAndPositionOrGroupOrCommitteeNameExtensibleEnumeration",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting, CODM, Individual Title and Position or Group Name [Extensible Enumeration]",
        "documentation": "Indicates title and position of individual or name of group identified as chief operating decision maker (CODM) for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r922",
      "r927"
     ]
    },
    "us-gaap_SegmentReportingExpenseInformationUsedByCodmDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SegmentReportingExpenseInformationUsedByCodmDescription",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting, Expense Information Used by CODM, Description",
        "terseLabel": "Segment Reporting, Expense Information Used by CODM, Description",
        "documentation": "Description of nature of expense information used by chief operating decision maker (CODM) to manage operation when segment expense information by category is not disclosed."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r194",
      "r203"
     ]
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment Reporting",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r195",
      "r196",
      "r197",
      "r198",
      "r199",
      "r200",
      "r201",
      "r204",
      "r205",
      "r920",
      "r921",
      "r925"
     ]
    },
    "mfic_SemiconductorsSemiconductorEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SemiconductorsSemiconductorEquipmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Semiconductors &amp; Semiconductor Equipment",
        "label": "Semiconductors &amp; Semiconductor Equipment [Member]",
        "documentation": "Semiconductors &amp; semiconductor equipment."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorSecuredFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorSecuredFacilityMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Senior Secured Facility",
        "documentation": "Senior secured facility.",
        "label": "Senior Secured Facility [Member]",
        "terseLabel": "Second Lien Secured Debt"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorSecuredFloatingRateNotesDueTwoThousandThirtySevenMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Secured Floating Rate Notes Due Two Thousand Thirty Seven [Member]",
        "documentation": "Senior secured floating rate notes due two thousand thirty seven.",
        "terseLabel": "Senior Secured Floating Rate Notes due 2037"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SeniorSecuritiesAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Amount"
       }
      }
     },
     "auth_ref": [
      "r1084"
     ]
    },
    "cef_SeniorSecuritiesAverageMarketValuePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAverageMarketValuePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Average Market Value per Unit"
       }
      }
     },
     "auth_ref": [
      "r1086"
     ]
    },
    "cef_SeniorSecuritiesAveragingMethodNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesAveragingMethodNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Averaging Method, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1088"
     ]
    },
    "cef_SeniorSecuritiesCvgPerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesCvgPerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Coverage per Unit"
       }
      }
     },
     "auth_ref": [
      "r1085"
     ]
    },
    "cef_SeniorSecuritiesHeadingsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHeadingsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Headings, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1089"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAnnualizedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHighlightsAnnualizedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Annualized, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1081",
      "r1087"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAuditedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesHighlightsAuditedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Audited, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1082",
      "r1087"
     ]
    },
    "cef_SeniorSecuritiesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1080",
      "r1087"
     ]
    },
    "cef_SeniorSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SeniorSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1083"
     ]
    },
    "mfic_SeniorUnsecuredMFICBethesdaCLO1LLCNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredMFICBethesdaCLO1LLCNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Unsecured MFIC Bethesda CLO 1 LLC Notes [Member]",
        "documentation": "Senior unsecured MFIC Bethesda CLO 1 LLC notes.",
        "terseLabel": "MFIC Bethesda CLO 1 LLC Notes (Class A-1, Class A-2, Class B and Class C)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredMFICBethesdaCLO2LLCNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredMFICBethesdaCLO2LLCNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Unsecured MFIC Bethesda CLO 2 LLC Notes [Member]",
        "documentation": "Senior unsecured MFIC Bethesda CLO 2 LLC notes.",
        "verboseLabel": "MFIC Bethesda CLO 2 LLC Notes (Class A-1, Class A-2, Class B and Class C)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredMFICBethesdaCLOIILLCNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredMFICBethesdaCLOIILLCNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Unsecured MFIC Bethesda CLO II LLC Notes[Member]",
        "documentation": "Senior unsecured mfic bethesda clo ii llc notes.",
        "terseLabel": "MFIC Bethesda CLO II LLC Notes (Class A-1, Class A-2, Class B and Class C)"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredMFICBethesdaCLOILLCNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredMFICBethesdaCLOILLCNotesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummarizesAverageAndMaximumDebtOutstandingAndInterestAndDebtIssuanceCostParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MFIC Bethesda CLO I LLC Notes (Class A-1R, Class A-2,R Class BR and Class CR)",
        "label": "Senior Unsecured MFIC Bethesda CLO I LLC Notes [Member]",
        "documentation": "Senior unsecured MFIC Bethesda CLO I LLC notes."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentyEightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior unsecured 2028 notes.",
        "label": "Senior Unsecured Notes Two Thousand Twenty Eight [Member]",
        "terseLabel": "2028 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025 Notes",
        "documentation": "Senior unsecured 2025 note.",
        "label": "Senior Unsecured Notes Two Thousand Twenty Five [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SeniorUnsecuredNotesTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SeniorUnsecuredNotesTwoThousandTwentySixMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsScheduleOfOutstandingDebtObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior unsecured 2026 notes.",
        "label": "Senior Unsecured Notes Two Thousand Twenty Six [Member]",
        "terseLabel": "2026 Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SequentialBrandsGroupIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SequentialBrandsGroupIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sequential brands group, inc.",
        "label": "Sequential Brands Group Inc [Member]",
        "terseLabel": "Sequential Brands Group, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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": [
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340"
     ]
    },
    "us-gaap_SharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SharePrice",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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/2025",
     "localname": "SharePriceTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1098"
     ]
    },
    "cef_SharePricesNotActualTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "SharePricesNotActualTransactionsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Prices Not Actual Transactions [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1099"
     ]
    },
    "srt_ShareRepurchaseProgramAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ShareRepurchaseProgramAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program [Axis]",
        "terseLabel": "Share Repurchase Program",
        "documentation": "Information by share repurchase program."
       }
      }
     },
     "auth_ref": [
      "r1246"
     ]
    },
    "srt_ShareRepurchaseProgramDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ShareRepurchaseProgramDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program [Domain]",
        "terseLabel": "Share Repurchase Program",
        "documentation": "Name of share repurchase program."
       }
      }
     },
     "auth_ref": [
      "r1246"
     ]
    },
    "mfic_ShareRepurchasesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ShareRepurchasesPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share repurchases.",
        "label": "Share Repurchases [Policy Text Block]",
        "terseLabel": "Share Repurchases"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ShareholderTransactionExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "ShareholderTransactionExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Transaction Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r1064"
     ]
    },
    "us-gaap_SharesIssuedPricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SharesIssuedPricePerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Share purchase price par value",
        "label": "Shares Issued, Price Per Share",
        "terseLabel": "Common stock issued, price per share",
        "documentation": "Per share or per unit amount of equity securities issued."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SharesIssuedPricePerShareAdjustedForReverseStockSplits": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SharesIssuedPricePerShareAdjustedForReverseStockSplits",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares issued price per share adjusted for reverse stock splits.",
        "label": "Shares Issued Price Per Share Adjusted for Reverse Stock Splits",
        "terseLabel": "Shares issued price per share adjusted for reverse stock split"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_Shelby2021HoldingsCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "Shelby2021HoldingsCorpMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shelby 2021 Holdings Corp [Member]",
        "documentation": "Shelby 2021 Holdings Corp.",
        "terseLabel": "Shelby 2021 Holdings Corp."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ShoutFactoryLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ShoutFactoryLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shout! Factory LLC [Member]",
        "documentation": "Shout! Factory LLC.",
        "terseLabel": "Shout! Factory LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ShoutFactoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ShoutFactoryMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shout Factory",
        "label": "Shout Factory [Member]",
        "documentation": "Shout factory."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SigmaBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SigmaBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sigma Buyer LLC",
        "label": "Sigma Buyer LLC [Member]",
        "documentation": "Sigma Buyer LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Significant accounting policies.",
        "label": "Significant Accounting Policies [Line Items]",
        "terseLabel": "Significant Accounting Policies [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SignificantAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SignificantAccountingPoliciesTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Significant accounting policies.",
        "label": "Significant Accounting Policies [Table]",
        "terseLabel": "Significant Accounting Policies [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Significant Accounting Policies",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r138",
      "r139"
     ]
    },
    "mfic_SimeioGroupHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SimeioGroupHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Simeio Group Holdings, Inc.",
        "label": "Simeio Group Holdings Inc [Member]",
        "terseLabel": "Simeio Group Holdings Inc",
        "verboseLabel": "Simeio Group Holdings, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SimeioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SimeioMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Simeio",
        "label": "Simeio [Member]",
        "terseLabel": "Simeio"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SixMonthsEuriborInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SixMonthsEuriborInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Six Months EURIBOR Interest Rate [member]",
        "label": "Six Months EURIBOR Interest Rate [member]",
        "terseLabel": "6 Months EURIBOR"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SixMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SixMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Six Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]",
        "terseLabel": "6 Month SOFR",
        "documentation": "Six months secured overnight financing rate SOFR overnight index swap rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SmithSystemMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SmithSystemMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Smith System [Member]",
        "documentation": "Smith system.",
        "terseLabel": "Smith System"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SmithTopcoIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SmithTopcoIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Smith Topco, Inc.",
        "label": "Smith Topco, Inc. [Member]",
        "documentation": "Smith Topco, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SoftwareMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Software [Member]",
        "documentation": "Software.",
        "verboseLabel": "Software",
        "terseLabel": "Software"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SolarplicityGroupLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SolarplicityGroupLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Solarplicity Group Limited.",
        "label": "Solarplicity Group Limited [Member]",
        "terseLabel": "Solarplicity Group Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SoleraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SoleraMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Solera [Member]",
        "documentation": "Solera member",
        "terseLabel": "Solera"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SorensonHoldingsLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SorensonHoldingsLlcMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sorenson holdings llc.",
        "label": "Sorenson Holdings Llc [Member]",
        "terseLabel": "Sorenson Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SpaceFincoIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SpaceFincoIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Space Finco Inc [Member]",
        "documentation": "Space finco, Inc.",
        "terseLabel": "Space Finco, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SpaceParentLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SpaceParentLPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Space Parent LP [Member]",
        "documentation": "Space parent LP.",
        "terseLabel": "Space Parent, LP"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SpecialtyRetailMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SpecialtyRetailMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Specialty Retail [Member]",
        "documentation": "Specialty retail.",
        "terseLabel": "Specialty Retail"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SpectrumAutomotiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SpectrumAutomotiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Spectrum automotive.",
        "label": "Spectrum Automotive [Member]",
        "terseLabel": "Spectrum Automotive"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SperryAcquisitionLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SperryAcquisitionLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sperry Acquisition, LLC [Member]",
        "documentation": "Sperry Acquisition, LLC.",
        "terseLabel": "Sperry Acquisition, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StandbyLettersOfCreditMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Standby Letters of Credit",
        "label": "Standby Letters of Credit [Member]",
        "terseLabel": "Standby Letters of Credit Issued and Outstanding",
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r1236",
      "r1346",
      "r1347"
     ]
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/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": [
      "r80",
      "r116",
      "r117",
      "r118",
      "r140",
      "r144",
      "r173",
      "r174",
      "r176",
      "r178",
      "r185",
      "r186",
      "r213",
      "r240",
      "r242",
      "r243",
      "r244",
      "r247",
      "r248",
      "r273",
      "r274",
      "r276",
      "r277",
      "r279",
      "r281",
      "r284",
      "r285",
      "r288",
      "r291",
      "r298",
      "r540",
      "r637",
      "r638",
      "r639",
      "r640",
      "r655",
      "r659",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r667",
      "r668",
      "r669",
      "r671",
      "r701",
      "r725",
      "r756",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r1182",
      "r1211",
      "r1213",
      "r1220"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureMergersWithAftAndAifSummaryOfAllocationOfPurchasePriceToAssetsAcquiredAndLiabilitiesAssumedParentheticalDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r44",
      "r47",
      "r48",
      "r97",
      "r104",
      "r105",
      "r124",
      "r125",
      "r126",
      "r151",
      "r152",
      "r153",
      "r156",
      "r164",
      "r166",
      "r168",
      "r184",
      "r214",
      "r218",
      "r226",
      "r271",
      "r299",
      "r344",
      "r356",
      "r357",
      "r365",
      "r366",
      "r367",
      "r370",
      "r442",
      "r443",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r513",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r556",
      "r557",
      "r563",
      "r600",
      "r614",
      "r615",
      "r616",
      "r655",
      "r756"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r151",
      "r152",
      "r153",
      "r184",
      "r273",
      "r274",
      "r276",
      "r279",
      "r557",
      "r582",
      "r628",
      "r656",
      "r671",
      "r689",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r701",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r710",
      "r711",
      "r712",
      "r713",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r728",
      "r729",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r756",
      "r913",
      "r914",
      "r998",
      "r1366"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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/2025",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]",
        "terseLabel": "Scenario",
        "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": [
      "r92",
      "r108",
      "r110",
      "r170",
      "r313",
      "r1183",
      "r1187"
     ]
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StatementTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedAcquisitionDatesOfRestrictedSecurities",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedInterestRateSwap",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilitiesParenthetical",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]",
        "documentation": "Presentation of information about comprehensive income, income, other comprehensive income, financial position, cash flows, and shareholders' equity."
       }
      }
     },
     "auth_ref": [
      "r151",
      "r152",
      "r153",
      "r184",
      "r208",
      "r273",
      "r274",
      "r276",
      "r279",
      "r557",
      "r582",
      "r628",
      "r656",
      "r671",
      "r689",
      "r694",
      "r695",
      "r696",
      "r697",
      "r698",
      "r701",
      "r704",
      "r705",
      "r706",
      "r707",
      "r708",
      "r710",
      "r711",
      "r712",
      "r713",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r728",
      "r729",
      "r738",
      "r739",
      "r740",
      "r741",
      "r742",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r756",
      "r913",
      "r914",
      "r998",
      "r1366"
     ]
    },
    "mfic_SterlingOvernightIndexAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SterlingOvernightIndexAverageMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "SONIA",
        "terseLabel": "Sterling Overnight Index Average",
        "label": "Sterling Overnight Index Average [Member]",
        "documentation": "Sterling overnight index."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SterlingPharmaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SterlingPharmaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Sterling Pharma",
        "documentation": "Sterling Pharma.",
        "label": "Sterling Pharma [Member]",
        "terseLabel": "Sterling Pharma"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1021",
      "r1032",
      "r1112",
      "r1146"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "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": [
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1271",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Shares issued during the period",
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Common stock shares issued",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r43",
      "r44",
      "r63",
      "r637",
      "r756",
      "r886"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesReverseStockSplits": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockIssuedDuringPeriodSharesReverseStockSplits",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Number of shares, reverse stock splits",
        "label": "Stock Issued During Period, Shares, Reverse Stock Splits",
        "terseLabel": "Stock issued, reverse stock splits",
        "documentation": "Reduction in the number of shares during the period as a result of a reverse stock split."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "srt_StockRepurchaseProgramAuthorizedAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program, Authorized, Amount",
        "terseLabel": "Maximum Cost of Shares That May Be Repurchased",
        "verboseLabel": "Stock repurchase plan acquired",
        "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": [
      "r1246"
     ]
    },
    "srt_StockRepurchaseProgramExpirationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StockRepurchaseProgramExpirationDate",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program, Expiration Date",
        "terseLabel": "Termination 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": [
      "r1246"
     ]
    },
    "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program, Remaining Authorized, Amount",
        "terseLabel": "Remaining Cost of Shares That May Be Repurchased",
        "verboseLabel": "Remaining repurchase capacity",
        "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/2025",
     "localname": "StockRepurchasedAndRetiredDuringPeriodValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost of Shares Repurchased",
        "label": "Stock Repurchased and Retired During Period, Value",
        "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": [
      "r9",
      "r43",
      "r44",
      "r63"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchasedDuringPeriodShares",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Shares repurchased during the period",
        "terseLabel": "Shares repurchased during the period",
        "label": "Stock Repurchased During Period, Shares",
        "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": [
      "r9",
      "r43",
      "r44",
      "r63",
      "r640",
      "r756",
      "r888"
     ]
    },
    "us-gaap_StockRepurchasedDuringPeriodValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockRepurchasedDuringPeriodValue",
     "crdr": "debit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyIncreaseDecreaseFromShareTransaction",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repurchase of common stock",
        "label": "Stock Repurchased During Period, Value",
        "terseLabel": "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": [
      "r9",
      "r43",
      "r44",
      "r63",
      "r655",
      "r756",
      "r888",
      "r1008"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent",
        "periodEndLabel": "Equity, Attributable to Parent, Ending Balance",
        "periodStartLabel": "Equity, Attributable to Parent, Beginning Balance",
        "totalLabel": "Net Assets",
        "terseLabel": "Net assets at end of period (in millions)",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r47",
      "r48",
      "r58",
      "r703",
      "r720",
      "r758",
      "r759",
      "r989",
      "r1009",
      "r1209",
      "r1213",
      "r1214",
      "r1227",
      "r1323",
      "r1376"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfAssetsAndLiabilities3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent [Abstract]",
        "terseLabel": "Net Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Text Block]",
        "terseLabel": "Stockholders' Equity",
        "documentation": "The entire disclosure for equity."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r283",
      "r285",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r297",
      "r299",
      "r489",
      "r504",
      "r760",
      "r763",
      "r891"
     ]
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "xbrltype": "pureItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio",
        "terseLabel": "Reverse 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": [
      "r64"
     ]
    },
    "us-gaap_StockholdersEquityPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityPeriodIncreaseDecrease",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Period Increase (Decrease)",
        "terseLabel": "Net increase (decrease) in net assets during the period",
        "totalLabel": "Net increase (decrease) in net assets during the period",
        "documentation": "The increase (decrease) in stockholders' equity during the period."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r63",
      "r757",
      "r889",
      "r1008",
      "r1350"
     ]
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Policy [Policy Text Block]",
        "terseLabel": "Retroactive Adjustments for Common Stock Reverse Split",
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r761"
     ]
    },
    "us-gaap_StockholdersEquityReverseStockSplit": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockholdersEquityReverseStockSplit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity, Reverse Stock Split",
        "terseLabel": "Reverse stock split, description",
        "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": [
      "r64"
     ]
    },
    "mfic_StructuredProductsAndOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "StructuredProductsAndOtherMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Structured products and other.",
        "label": "Structured Products And Other [Member]",
        "terseLabel": "Structured Products And Other"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SuaveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SuaveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Suave [Member]",
        "documentation": "Suave",
        "terseLabel": "Suave"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SubServicingAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SubServicingAgreementMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureRelatedPartyAgreementsAndTransactionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sub-servicing agreement.",
        "label": "Sub-servicing Agreement [Member]",
        "terseLabel": "Sub-servicing Agreement"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SubordinateNoteDueOnTwoThousandOneHundredTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SubordinateNoteDueOnTwoThousandOneHundredTwentyFiveMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Subordinate note due on two thousand one hundred twenty five.",
        "terseLabel": "Subordinated notes due 2125",
        "label": "Subordinate Notes"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SubordinateNoteDueOnTwoThousandOneHundredTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SubordinateNoteDueOnTwoThousandOneHundredTwentyThreeMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subordinated notes due 2123",
        "label": "Subordinate Note Due on Two Thousand One Hundred Twenty Three [Member]",
        "documentation": "Subordinate note due on two thousand one hundred twenty three."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventLineItems",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Line Items]",
        "terseLabel": "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": [
      "r552",
      "r572"
     ]
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Events",
        "label": "Subsequent Event [Member]",
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r552",
      "r572"
     ]
    },
    "us-gaap_SubsequentEventTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTable",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Table]",
        "terseLabel": "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": [
      "r552",
      "r572"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r552",
      "r572"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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": [
      "r552",
      "r572"
     ]
    },
    "us-gaap_SubsequentEventsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsequentEventsTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events",
        "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": [
      "r571",
      "r573"
     ]
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SubsidiarySaleOfStockAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/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/20260630",
     "localname": "SummaryOfAverageAndMaximumDebtOutstandingInterestAndDebtIssuanceCostTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "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]",
        "documentation": "Summary of average and maximum debt outstanding, interest and debt issuance cost."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfUnauditedSummarizedFinancialInformationOfSubsidiaryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SummaryOfUnauditedSummarizedFinancialInformationOfSubsidiaryTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Unaudited Summarized Financial Information of Subsidiary",
        "label": "Summary of Unaudited Summarized Financial Information of Subsidiary [Table Text Block]",
        "documentation": "Summary of unaudited summarized financial information of subsidiary."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummaryOfUnfundedCommitmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SummaryOfUnfundedCommitmentsTableTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of unfunded commitments.",
        "label": "Summary Of Unfunded Commitments [Table Text Block]",
        "terseLabel": "Summary of Unfunded Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SummerFridaysLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SummerFridaysLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summer Fridays",
        "label": "Summer Fridays, LLC [Member]",
        "documentation": "Summer Fridays, LLC.",
        "verboseLabel": "Summer Fridays, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental Disclosure of Cash Flow Information"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SurfOpcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SurfOpcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Surf Opco, LLC.",
        "label": "Surf Opco L L C [Member]",
        "terseLabel": "Surf Opco, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_SysnetNorthAmericaIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "SysnetNorthAmericaIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sysnet North America, Inc. [Member]",
        "documentation": "Sysnet North America, Inc.",
        "terseLabel": "Sysnet North America, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TCWMidcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TCWMidcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TCW Midco LLC [Member]",
        "documentation": "TCW midco llc.",
        "terseLabel": "TCW Midco LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TELABioIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TELABioIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TELA Bio, Inc. [Member]",
        "documentation": "TELA Bio, Inc.",
        "terseLabel": "TELA Bio, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_THLPCOLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "THLPCOLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "THLP CO. LLC",
        "label": "T H L P C O L L C [Member]",
        "terseLabel": "THLP CO. LLC",
        "verboseLabel": "THLP CO., LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TSInvestorsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TSInvestorsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TS Investors, LLC",
        "label": "TS Investors, LLC [Member]",
        "documentation": "TS Investors, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TVGOrionBlockerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TVGOrionBlockerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TVG Orion Blocker Inc [Member]",
        "documentation": "Tvg orion blocker inc.",
        "terseLabel": "TVG Orion Blocker, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1140"
     ]
    },
    "mfic_TarrytownAcquisitionHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TarrytownAcquisitionHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tarrytown Acquisition Holdings, LLC [Member]",
        "documentation": "Tarrytown Acquisition Holdings, LLC",
        "terseLabel": "Tarrytown Acquisition Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TarrytownMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TarrytownMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tarrytown [Member]",
        "documentation": "Tarrytown.",
        "terseLabel": "Tarrytown"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TastyChicknLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TastyChicknLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tasty Chick'n LLC [Member]",
        "documentation": "Tasty Chick'n LLC",
        "terseLabel": "Tasty Chick'n LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TastyChicknMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TastyChicknMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tasty Chick'n [Member]",
        "documentation": "Tasty Chick'n.",
        "terseLabel": "Tasty Chick'n"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TaxBasisOfInvestmentsCostForIncomeTaxPurposes",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Tax Basis, Cost",
        "terseLabel": "Aggregate cost of federal income tax",
        "documentation": "Amount of cost of investment for federal income tax purpose."
       }
      }
     },
     "auth_ref": [
      "r636"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TaxBasisOfInvestmentsGrossUnrealizedAppreciation",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate gross unrealized gain of federal income tax",
        "label": "Investment, Tax Basis, Unrealized Gain",
        "documentation": "Amount of cumulative increase in investment from unrealized gain when value exceeds cost for federal income tax purpose."
       }
      }
     },
     "auth_ref": [
      "r633"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TaxBasisOfInvestmentsGrossUnrealizedDepreciation",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate gross unrealized loss of federal income tax",
        "label": "Investment, Tax Basis, Unrealized Loss",
        "documentation": "Amount of cumulative decrease in investment from unrealized loss when cost for federal income tax purpose exceeds value."
       }
      }
     },
     "auth_ref": [
      "r634"
     ]
    },
    "us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate net unrealized loss of federal income tax",
        "label": "Investment, Tax Basis, Unrealized Gain (Loss)",
        "totalLabel": "Tax Basis of Investments, Unrealized Appreciation (Depreciation), Net, Total",
        "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": [
      "r635"
     ]
    },
    "mfic_TeamCarWashMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TeamCarWashMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Team Car Wash [Member]",
        "documentation": "Team Car Wash",
        "terseLabel": "Team Car Wash"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TeamLINXBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TeamLINXBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TeamLINX Buyer, LLC",
        "label": "TeamLINX Buyer, LLC [Member]",
        "documentation": "TeamLINX buyer, llc ."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TeamLINXLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TeamLINXLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Team LINX, LLC",
        "label": "Team LINX, LLC [Member]",
        "documentation": "Team LINX, LLC",
        "terseLabel": "Team LINX, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TeamSelectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TeamSelectMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Team Select",
        "label": "Team Select [Member]",
        "documentation": "Team Select.",
        "terseLabel": "Team Select"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TechnologyHardwareStoragePeripheralsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TechnologyHardwareStoragePeripheralsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Technology Hardware, Storage &amp; Peripherals",
        "label": "Technology Hardware, Storage &amp; Peripherals [Member]",
        "documentation": "Technology Hardware, Storage &amp; Peripherals",
        "terseLabel": "Technology Hardware, Storage &amp; Peripherals"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TelecommunicationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TelecommunicationsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Telecommunications.",
        "label": "Telecommunications [Member]",
        "terseLabel": "Telecommunications"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TelesoftHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TelesoftHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Telesoft Holdings, LLC.",
        "label": "Telesoft Holdings L L C [Member]",
        "terseLabel": "Telesoft Holdings L L C",
        "verboseLabel": "Telesoft Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TerSeraTherapeuticsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TerSeraTherapeuticsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TerSera Therapeutics LLC [Member]",
        "documentation": "TerSera Therapeutics LLC.",
        "terseLabel": "TerSera Therapeutics LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TersSeraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TersSeraMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "TersSera",
        "label": "TersSera [Member]",
        "documentation": "TersSera.",
        "terseLabel": "TersSera"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TexadaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TexadaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Texada [Member]",
        "documentation": "Texada",
        "terseLabel": "Texada"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TexadaSoftwareLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TexadaSoftwareLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Texada Software LLC [Member]",
        "documentation": "Texada Software LLC.",
        "terseLabel": "Texada Software LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TextilesApparelLuxuryGoodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TextilesApparelLuxuryGoodsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Textiles, Apparel &amp; Luxury Goods [Member]",
        "documentation": "Textiles, Apparel &amp; Luxury Goods",
        "verboseLabel": "Textiles, Apparel &amp; Luxury Goods",
        "terseLabel": "Textiles, Apparel &amp; Luxury Goods"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TheClubCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TheClubCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The club company.",
        "label": "The Club Company [Member]",
        "terseLabel": "The Club Company"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TheNorthHighlandCompanyLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TheNorthHighlandCompanyLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "The North Highland Company LLC [Member]",
        "documentation": "The North Highland Company LLC.",
        "terseLabel": "The North Highland Company LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TheWeatherCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TheWeatherCompanyMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "The Weather Company",
        "label": "The Weather Company [Member]",
        "documentation": "The Weather Company ["
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThomasScientificLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThomasScientificLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Thomas Scientific, LLC",
        "documentation": "Thomas Scientific, LLC.",
        "label": "Thomas Scientific L L C [Member]",
        "terseLabel": "Thomas Scientific L L C"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThomasScientificMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThomasScientificMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Thomas Scientific.",
        "label": "Thomas Scientific [Member]",
        "terseLabel": "Thomas Scientific"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeDProteinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThreeDProteinMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "3D protein.",
        "label": "Three D Protein [Member]",
        "terseLabel": "3D Protein",
        "verboseLabel": "3D Protein [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeMonthCORRAInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThreeMonthCORRAInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Month CORRA Interest Rate [Member]",
        "documentation": "Three month CORRA interest rate.",
        "terseLabel": "3 Month CORRA"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeMonthsEuriborInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThreeMonthsEuriborInterestRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3 month EURIBOR",
        "documentation": "Three Months EURIBOR Interest Rate",
        "label": "Three Months EURIBOR Interest Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ThreeMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ThreeMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]",
        "terseLabel": "3 Month SOFR",
        "documentation": "Three months secured overnight financing rate SOFR overnight index swap rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TitanLuxcoISARLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TitanLuxcoISARLMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Titan Luxco I SARL [Member]",
        "documentation": "Titan Luxco I SARL.",
        "terseLabel": "Titan Luxco I SARL"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TitanLuxcoISARLTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TitanLuxcoISARLTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Titan Luxco I SARL",
        "label": "Titan Luxco I SARL Two [Member]",
        "documentation": "Titan Luxco I SARL Two."
       }
      }
     },
     "auth_ref": []
    },
    "cef_TotalAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "TotalAnnualExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1077"
     ]
    },
    "mfic_TotalCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TotalCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFundsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total commitments.",
        "label": "Total Commitments [Member]",
        "terseLabel": "Total Commitments",
        "verboseLabel": "Total Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TotalCommitmentsUndrawnCommitmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TotalCommitmentsUndrawnCommitmentMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Commitments Undrawn Commitment [Member]",
        "documentation": "Total Commitments Undrawn Commitment.",
        "terseLabel": "Total Commitments Undrawn Commitment"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TotalPowerLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TotalPowerLimitedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Power Limited [Member]",
        "documentation": "Total power limited.",
        "terseLabel": "Total Power Limited"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TotalPowerLimitedTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TotalPowerLimitedTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Power Limited Two [Member]",
        "documentation": "Total power limited two.",
        "terseLabel": "Total Power Limited"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1132"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1139"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r1159"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1161"
     ]
    },
    "mfic_TradingCompaniesAndDistributorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TradingCompaniesAndDistributorsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Companies And Distributors [Member]",
        "documentation": "Trading Companies &amp; Distributors.",
        "verboseLabel": "Trading Companies &amp; Distributors",
        "terseLabel": "Trading Companies &amp; Distributors"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TradingCompaniesDistributorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TradingCompaniesDistributorsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Companies &amp; Distributors [Member]",
        "documentation": "Trading Companies &amp; Distributors.",
        "terseLabel": "Trading Companies &amp; Distributors"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/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_TrafficManagementSolutionsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrafficManagementSolutionsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Traffic Management Solutions LLC [Member]",
        "documentation": "Traffic management solutions llc member",
        "terseLabel": "Traffic Management Solutions, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_Transportation-CargoDistributionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "Transportation-CargoDistributionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportation - Cargo, Distribution [Member]",
        "documentation": "Transportation - Cargo, Distribution",
        "terseLabel": "Transportation - Cargo, Distribution"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TransportationInfrastructureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TransportationInfrastructureMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Transportation Infrastructure",
        "label": "Transportation Infrastructure [Member]",
        "documentation": "Transportation infrastructure.",
        "terseLabel": "Transportation Infrastructure"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r1162"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r1163"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Expiration Date",
        "terseLabel": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r1163"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r1161"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r1161"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1164"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r1162"
     ]
    },
    "mfic_TreaceMedicalConceptsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TreaceMedicalConceptsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treace Medical Concepts Inc",
        "label": "Treace Medical Concepts Inc [Member]",
        "documentation": "Treace Medical Concepts, Inc.",
        "verboseLabel": "Treace Medical Concepts, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TreaceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TreaceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Treace.",
        "label": "Treace [Member]",
        "terseLabel": "Treace"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TreasuryStockAcquiredAverageCostPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TreasuryStockAcquiredAverageCostPerShare",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares Acquired, Average Cost Per Share",
        "terseLabel": "Weighted-average price per share",
        "documentation": "Total cost of shares repurchased divided by the total number of shares repurchased."
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "us-gaap_TreasuryStockCommonValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TreasuryStockCommonValue",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfAllocatedAmountsToBeRepurchasedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Common, Value",
        "verboseLabel": "Amount Allocated to 10b5-1 Repurchase Plans",
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r28",
      "r47"
     ]
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TreasuryStockSharesAcquired",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Shares, Acquired",
        "verboseLabel": "Shares repurchased",
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r44",
      "r63"
     ]
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfRepurchasePlansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock, Value, Acquired, Cost Method",
        "terseLabel": "Cost of Shares Repurchased",
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r25",
      "r63"
     ]
    },
    "mfic_TreasuryStockValueAcquiredCostMethodIncludingCommissions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TreasuryStockValueAcquiredCostMethodIncludingCommissions",
     "crdr": "debit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost of Shares Repurchased inclusive commissions",
        "label": "Treasury Stock Value Acquired Cost Method Including Commissions",
        "documentation": "Treasury stock value acquired cost method including commissions."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TrenchPlateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrenchPlateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trench Plate.",
        "label": "Trench Plate [Member]",
        "terseLabel": "Trench Plate"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TrenchPlateRentalCoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrenchPlateRentalCoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trench Plate Rental Co.",
        "documentation": "Trench Plate Rental Co.",
        "label": "Trench Plate Rental Co [Member]",
        "terseLabel": "Trench Plate Rental Co"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TrilliumHealthCareProductsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrilliumHealthCareProductsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trillium Health Care Products Inc. [Member]",
        "documentation": "Trillium Health Care Products Inc.",
        "terseLabel": "Trillium Health Care Products Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TrilliumHealthCareProductsIncTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrilliumHealthCareProductsIncTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trillium Health Care Products Inc. Two [Member]",
        "documentation": "Trillium Health Care Products Inc. Two.",
        "terseLabel": "Trillium Health Care Products Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TrilliumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TrilliumMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trillium",
        "label": "Trillium [Member]",
        "documentation": "Trillium.",
        "terseLabel": "Trillium"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TruckLiteCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TruckLiteCoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Truck-Lite Co., LLC",
        "label": "Truck-Lite Co., LLC [Member]",
        "documentation": "Truck-Lite Co., LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TruvantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TruvantMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Truvant [Member]",
        "documentation": "Truvant.",
        "terseLabel": "Truvant"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TurboBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TurboBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Turbo Buyer, Inc.",
        "label": "Turbo Buyer Inc [Member]",
        "terseLabel": "Turbo Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TurkeyHillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TurkeyHillMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Turkey hill.",
        "label": "Turkey Hill [Member]",
        "terseLabel": "Turkey Hill"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TwelveMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TwelveMonthsSecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "12 Month SOFR",
        "label": "Twelve Months Secured Overnight Financing Rate Sofr Overnight Index Swap Rate [Member]",
        "documentation": "Twelve months secured overnight financing rate sofr overnight index swap rate."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TyberMedicalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TyberMedicalLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tyber Medical LLC [Member]",
        "documentation": "Tyber medical llc.",
        "terseLabel": "Tyber Medical LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_TyberMedicalLLCTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "TyberMedicalLLCTwoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tyber Medical LLC Two",
        "label": "Tyber Medical LLC Two [Member]",
        "documentation": "Tyber medical llc two member"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_USLSAcquisitionIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "USLSAcquisitionIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "USLS Acquisition, Inc.",
        "label": "U S L S Acquisition Inc [Member]",
        "terseLabel": "U S L S Acquisition Inc",
        "verboseLabel": "USLS Acquisition, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_USLegalSupportMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "USLegalSupportMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US Legal Support [Member]",
        "documentation": "US legal support.",
        "terseLabel": "US Legal Support"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_USMetalCoHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "USMetalCoHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "US MetalCo Holdings LLC",
        "label": "US MetalCo Holdings LLC [Member]",
        "documentation": "US MetalCo Holdings LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_USMetalCoHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "USMetalCoHoldingsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US MetalCo Holdings [Member]",
        "documentation": "US MetalCo Holdings.",
        "terseLabel": "US MetalCo Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UltraCleanHoldcoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UltraCleanHoldcoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ultra Clean Holdco LLC",
        "label": "Ultra Clean Holdco LLC [Member]",
        "documentation": "Ultra clean holdco llc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UltraCleanNewcoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UltraCleanNewcoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ultra Clean Newco [Member]",
        "documentation": "Ultra clean newco member",
        "terseLabel": "Ultra Clean Newco"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnchainedLabsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnchainedLabsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unchained Labs, LLC",
        "label": "Unchained Labs L L C [Member]",
        "terseLabel": "Unchained Labs L L C",
        "verboseLabel": "Unchained Labs, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnchainedLabsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnchainedLabsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unchained Labs.",
        "label": "Unchained Labs [Member]",
        "terseLabel": "Unchained Labs"
       }
      }
     },
     "auth_ref": []
    },
    "cef_UnderwritersCompensationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "UnderwritersCompensationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underwriters Compensation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1073"
     ]
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1158"
     ]
    },
    "mfic_UnfundedDelayedDrawLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnfundedDelayedDrawLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded delayed draw loan commitments.",
        "label": "Unfunded Delayed Draw Loan Commitments [Member]",
        "terseLabel": "Unfunded Delayed Draw Loan Commitments (Including Commitments with Performance thresholds Not Met)",
        "verboseLabel": "Unfunded Delayed Draw Loan Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnfundedRevolverCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnfundedRevolverCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsParentheticalDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded revolver commitments.",
        "label": "Unfunded Revolver Commitments [Member]",
        "terseLabel": "Unfunded Revolver Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UnfundedRevolverObligationsAndBridgeLoanCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnfundedRevolverObligationsAndBridgeLoanCommitmentsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesSummaryOfUnfundedCommitmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded revolver obligations and bridge loan commitments.",
        "label": "Unfunded Revolver Obligations And Bridge Loan Commitments [Member]",
        "terseLabel": "Unfunded Revolver Obligations and Bridge Loan Commitments"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UniguestHoldingsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UniguestHoldingsIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Uniguest Holdings, Inc.",
        "label": "Uniguest Holdings, Inc [Member]",
        "terseLabel": "Uniguest Holdings, Inc"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UniguestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UniguestMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uniguest [Member]",
        "documentation": "Uniguest.",
        "verboseLabel": "Uniguest",
        "terseLabel": "Uniguest"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UniversalAirConditionerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UniversalAirConditionerMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Universal Air Conditioner [Member]",
        "documentation": "Universal air conditioner.",
        "terseLabel": "Universal Air Conditioner"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrealizedGainLossInvestmentAndDerivativeOperatingAfterTax",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized Gain (Loss), Investment and Derivative, Operating, after Tax",
        "negatedLabel": "Net change in unrealized (gains) losses",
        "documentation": "Amount, after tax, of unrealized gain (loss) from investment and derivative, classified as operating. Investment includes, but is not limited to, debt and equity securities, security sold short, real estate, and commodity."
       }
      }
     },
     "auth_ref": [
      "r653",
      "r752",
      "r894",
      "r1008",
      "r1368"
     ]
    },
    "us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_InvestmentCompanyRealizedAndUnrealizedGainLossOnInvestmentAndForeignCurrency",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssetsUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized Gain (Loss), Investment, Derivative, and Foreign Currency Transaction Price Change, Operating, after Tax",
        "terseLabel": "Net change in unrealized gains (losses)",
        "negatedLabel": "Net change in unrealized (gains) losses",
        "totalLabel": "Net change in unrealized gains (losses)",
        "negatedTerseLabel": "Net change in unrealized (gains) losses",
        "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": [
      "r653",
      "r752",
      "r894",
      "r1368"
     ]
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrealizedGainLossOnDerivatives",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInstrumentsGailLossDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net change in unrealized appreciation (depreciation) on foreign currency forward contracts",
        "label": "Unrealized Gain (Loss) on Derivatives",
        "verboseLabel": "Foreign currency forward contracts",
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r746",
      "r747",
      "r748",
      "r749",
      "r831"
     ]
    },
    "us-gaap_UnrealizedGainLossOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrealizedGainLossOnInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited": {
       "parentTag": "us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingAfterTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInAffiliatedInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedFairValueAlongWithTransactionsInControlledInvestments",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedStatementsOfOperationsUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net change in unrealized gains (losses)",
        "label": "Unrealized Gain (Loss) on Investments",
        "terseLabel": "Net change in unrealized gains (losses)",
        "negatedLabel": "Net change in unrealized (gains) losses",
        "verboseLabel": "Net Change in Unrealized Gains (Losses)",
        "documentation": "Amount of unrealized gain (loss) on investment."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "mfic_UnrealizedGainLossesOnForeignDenominatedDebtTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UnrealizedGainLossesOnForeignDenominatedDebtTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsSummaryOfForeignDenominatedDebtOutstandingOnSeniorSecuredFacilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized Gain/(Loss)",
        "label": "Unrealized Gain Losses on Foreign Denominated Debt Transactions",
        "documentation": "Unrealized gain losses on foreign denominated debt transactions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrecognizedTaxBenefits",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Unrecognized Tax Benefits, Ending Balance",
        "periodStartLabel": "Unrecognized Tax Benefits, Beginning Balance",
        "label": "Unrecognized Tax Benefits",
        "terseLabel": "Uncertain tax positions",
        "documentation": "Amount of unrecognized tax benefits."
       }
      }
     },
     "auth_ref": [
      "r347",
      "r351",
      "r949"
     ]
    },
    "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued, Total",
        "label": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued",
        "terseLabel": "Interest and penalties accrued",
        "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": [
      "r350",
      "r949"
     ]
    },
    "us-gaap_UnsecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UnsecuredDebtMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unsecured Debt [Member]",
        "terseLabel": "Unsecured Debt",
        "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/20260630",
     "localname": "UnsuccessfulInOriginatingLoansRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unsuccessful in Originating Loans Risk [Member]",
        "documentation": "Unsuccessful in Originating Loans Risk."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UplightIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UplightIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uplight, Inc. [Member]",
        "documentation": "Uplight, Inc.",
        "terseLabel": "Uplight, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_UplightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UplightMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uplight [Member]",
        "documentation": "Uplight",
        "verboseLabel": "Uplight",
        "terseLabel": "Uplight"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UseOfEstimates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "UseOfEstimates",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates",
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r79",
      "r187",
      "r188",
      "r189",
      "r190",
      "r585",
      "r587",
      "r917"
     ]
    },
    "mfic_UtilitiesElectricMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "UtilitiesElectricMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Utilities - Electric.",
        "label": "Utilities Electric [Member]",
        "terseLabel": "Utilities - Electric"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationOfOtherFinancialAssetsAndFinancialLiabilitiesPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationOfOtherFinancialAssetsAndFinancialLiabilitiesPolicyPolicyTextBlock",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation of other financial assets and financial liabilities, policy.",
        "label": "Valuation Of Other Financial Assets And Financial Liabilities Policy [Policy Text Block]",
        "terseLabel": "Valuation of Other Financial Assets and Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Axis]",
        "terseLabel": "Valuation Approach and Technique",
        "documentation": "Information by valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r520",
      "r950",
      "r959",
      "r980",
      "r1309"
     ]
    },
    "mfic_ValuationTechniqueBrokerQuotedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueBrokerQuotedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique Broker Quoted [Member]",
        "documentation": "Valuation Technique Broker Quoted.",
        "terseLabel": "Broker Quote"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueCostApproachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueCostApproachMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique Cost Approach [Member]",
        "documentation": "Valuation technique cost approach.",
        "terseLabel": "Cost Approach"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "terseLabel": "Discounted Cash Flow",
        "documentation": "Valuation technique calculating present value of future cash flows."
       }
      }
     },
     "auth_ref": [
      "r931",
      "r932",
      "r980",
      "r1307",
      "r1308",
      "r1309"
     ]
    },
    "us-gaap_ValuationTechniqueDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Approach and Technique [Domain]",
        "terseLabel": "Valuation Approach and Technique",
        "documentation": "Valuation approach and technique."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r520",
      "r950",
      "r959",
      "r980",
      "r1309"
     ]
    },
    "mfic_ValuationTechniqueEstimatedProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueEstimatedProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique estimated proceeds.",
        "label": "Valuation Technique Estimated Proceeds [Member]",
        "terseLabel": "Estimated Proceeds"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueMarketComparableTechniqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueMarketComparableTechniqueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique market comparable technique.",
        "label": "Valuation Technique Market Comparable Technique [Member]",
        "terseLabel": "Market Comparable Technique"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationTechniqueOptionPricingModelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ValuationTechniqueOptionPricingModelMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique, Option Pricing Model [Member]",
        "terseLabel": "Option Pricing Model",
        "documentation": "Valuation technique calculating price of option."
       }
      }
     },
     "auth_ref": [
      "r980",
      "r1307",
      "r1308",
      "r1309"
     ]
    },
    "mfic_ValuationTechniquePublicMarkedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniquePublicMarkedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique, Public Marked [Member]",
        "documentation": "Valuation technique, public marked.",
        "terseLabel": "Public Marked"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueRecentTransactionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueRecentTransactionMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique recent transaction .",
        "label": "Valuation Technique Recent Transaction [Member]",
        "terseLabel": "Recent Transaction"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueRecoveryAnalysisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueRecoveryAnalysisMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique recovery analysis.",
        "label": "Valuation Technique Recovery Analysis [Member]",
        "terseLabel": "Recovery Analysis"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueRecoveryAnalysisOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueRecoveryAnalysisOneMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique recovery analysis one.",
        "label": "Valuation Technique Recovery Analysis One [Member]",
        "terseLabel": "Recovery Analysis"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueResidualValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueResidualValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique residual value.",
        "label": "Valuation Technique Residual Value [Member]",
        "terseLabel": "Residual Value"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueSaleProceedsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueSaleProceedsMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique sale proceeds.",
        "label": "Valuation Technique Sale Proceeds [Member]",
        "terseLabel": "Sale Proceeds"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueTransactionalValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueTransactionalValueMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation Technique Transactional Value [Member]",
        "documentation": "Valuation technique transactional value.",
        "terseLabel": "Transactional Value"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ValuationTechniqueYieldAnalysisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ValuationTechniqueYieldAnalysisMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique yield analysis.",
        "label": "Valuation Technique Yield Analysis [Member]",
        "terseLabel": "Yield Analysis"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate",
        "label": "Variable Rate [Axis]",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": [
      "r1194",
      "r1239",
      "r1303"
     ]
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/DisclosureDebtAndForeignCurrencyTransactionsAndTranslationsAdditionalInformationDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticalUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": [
      "r1194",
      "r1239",
      "r1303"
     ]
    },
    "mfic_VikingCloudMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "VikingCloudMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "VikingCloud [Member]",
        "documentation": "VikingCloud.",
        "terseLabel": "VikingCloud"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_VillagePetCareLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "VillagePetCareLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Village Pet Care, LLC",
        "label": "Village Pet Care, LLC [Member]",
        "documentation": "Village Pet Care, LLC."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_VixxoCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "VixxoCorporationMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vixxo Corporation [Member]",
        "documentation": "Vixxo corporation.",
        "terseLabel": "Vixxo Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_VixxoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "VixxoMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vixxo [Member]",
        "documentation": "Vixxo member",
        "terseLabel": "Vixxo"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1128"
     ]
    },
    "mfic_VybondBuyerLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "VybondBuyerLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Vybond buyer, LLC.",
        "terseLabel": "Vybond Buyer, LLC",
        "label": "Vybond Buyer LLC [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WCORSBuyerIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WCORSBuyerIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "WC ORS Buyer, Inc. [Member]",
        "documentation": "WC ORS Buyer, Inc.",
        "terseLabel": "WC ORS Buyer, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WHBorrowerCoLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WHBorrowerCoLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "WH BorrowerCo, LLC [Member]",
        "documentation": "WH BorrowerCo, LLC.",
        "terseLabel": "WH BorrowerCo, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WRGraceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WRGraceMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "W R Grace [Member]",
        "documentation": "W r grace member"
       }
      }
     },
     "auth_ref": []
    },
    "cef_WaiversAndReimbursementsOfFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WaiversAndReimbursementsOfFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Waivers and Reimbursements of Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r1078"
     ]
    },
    "mfic_WaltersWeddingEstatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WaltersWeddingEstatesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Walters Wedding Estates",
        "label": "Walters Wedding Estates [Member]",
        "documentation": "Walters Wedding Estates"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_WarrantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "WarrantMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfChangesInFairValueOfInvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsScheduleOfCompositionOfInvestmentPortfolioDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtCostByControlDesignationInvestmentTypeAndIndustry",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCompositionOfPortfolioAtFairValueByControlDesignationInvestmentTypeAndIndustry"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Warrants - Warrants",
        "label": "Warrant [Member]",
        "verboseLabel": "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": [
      "r995",
      "r996",
      "r999",
      "r1000",
      "r1001",
      "r1002"
     ]
    },
    "cef_WarrantsOrRightsCalledAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledAmount",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Amount"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_WarrantsOrRightsCalledPeriodDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledPeriodDate",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Period [Date]"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_WarrantsOrRightsCalledTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsCalledTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Title"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "cef_WarrantsOrRightsExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2025",
     "localname": "WarrantsOrRightsExercisePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r1058"
     ]
    },
    "srt_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureInvestmentsSummaryOfUnobservableInputsUsedInFairValueMeasurementsOfLevel3InvestmentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average",
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance."
       }
      }
     },
     "auth_ref": [
      "r337",
      "r338",
      "r521",
      "r579",
      "r902",
      "r903",
      "r980",
      "r1333",
      "r1335",
      "r1338"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureEarningsPerShareScheduleOfComputationOfEarningsLossPerShareDetails",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfFinancialHighlightsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted average shares outstanding",
        "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_WellDyneRxLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WellDyneRxLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "WellDyneRx, LLC [Member]",
        "documentation": "WellDyneRx, LLC.",
        "terseLabel": "WellDyneRx, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WholesaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WholesaleMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Wholesale.",
        "label": "Wholesale [Member]",
        "terseLabel": "Wholesale"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WildBrainLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WildBrainLtdMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "WildBrain Ltd. [Member]",
        "documentation": "WildBrain Ltd.",
        "terseLabel": "WildBrain Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WilsonLanguageTrainingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WilsonLanguageTrainingMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Wilson language training.",
        "label": "Wilson Language Training [Member]",
        "terseLabel": "Wilson Language Training"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_WirelessTelecommunicationServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "WirelessTelecommunicationServicesMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedSummaryOfPercentageOfTotalInvestment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wireless Telecommunication Services",
        "label": "Wireless Telecommunication Services [Member]",
        "documentation": "Wireless telecommunication services."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_XanitosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "XanitosMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Xanitos",
        "label": "Xanitos [Member]",
        "documentation": "Xanitos."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "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": [
      "r1126"
     ]
    },
    "mfic_ZafinLabsAmericasIncorporatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZafinLabsAmericasIncorporatedMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Zafin Labs Americas Incorporated [Member]",
        "documentation": "Zafin labs Americas incorporated.",
        "terseLabel": "Zafin Labs Americas Incorporated"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZafinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZafinMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Zafin",
        "label": "Zafin [Member]",
        "documentation": "Zafin."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZendeskIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZendeskIncMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Zendesk, Inc [Member]",
        "documentation": "Zendesk, Inc.",
        "terseLabel": "Zendesk, Inc."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZendeskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZendeskMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Zendesk",
        "label": "Zendesk [Member]",
        "documentation": "Zendesk",
        "terseLabel": "Zendesk"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZephyrBuyerLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZephyrBuyerLPMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Zephyr Buyer, L.P. [Member]",
        "documentation": "Zephyr Buyer, L.P.",
        "terseLabel": "Zephyr Buyer, L.P."
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZinniaCorporateHoldingsLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZinniaCorporateHoldingsLLCMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited",
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsUnauditedCommitmentsToFunds1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Zinnia Corporate Holdings, LLC [Member]",
        "documentation": "Zinnia Corporate Holdings, LLC.",
        "terseLabel": "Zinnia Corporate Holdings, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "mfic_ZinniaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.midcapfinancialic.com/20260630",
     "localname": "ZinniaMember",
     "presentation": [
      "http://www.midcapfinancialic.com/20260630/taxonomy/role/Role_StatementCONSOLIDATEDSCHEDULEOFINVESTMENTSUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Zinnia [Member]",
        "documentation": "Zinnia",
        "verboseLabel": "Zinnia",
        "terseLabel": "Zinnia"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "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": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477401/830-230-45-1"
  },
  "r3": {
   "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"
  },
  "r4": {
   "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"
  },
  "r5": {
   "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"
  },
  "r6": {
   "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"
  },
  "r7": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "850",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483326/850-10-50-1"
  },
  "r8": {
   "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"
  },
  "r9": {
   "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"
  },
  "r10": {
   "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"
  },
  "r11": {
   "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"
  },
  "r12": {
   "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"
  },
  "r13": {
   "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"
  },
  "r14": {
   "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"
  },
  "r15": {
   "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"
  },
  "r16": {
   "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"
  },
  "r17": {
   "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"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "320",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/320/tableOfContent"
  },
  "r19": {
   "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"
  },
  "r20": {
   "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"
  },
  "r21": {
   "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"
  },
  "r22": {
   "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"
  },
  "r23": {
   "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"
  },
  "r24": {
   "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"
  },
  "r25": {
   "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"
  },
  "r26": {
   "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"
  },
  "r27": {
   "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"
  },
  "r28": {
   "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"
  },
  "r29": {
   "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"
  },
  "r30": {
   "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"
  },
  "r31": {
   "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"
  },
  "r32": {
   "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"
  },
  "r33": {
   "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"
  },
  "r34": {
   "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"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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"
  },
  "r37": {
   "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"
  },
  "r38": {
   "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"
  },
  "r39": {
   "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"
  },
  "r40": {
   "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"
  },
  "r41": {
   "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"
  },
  "r42": {
   "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"
  },
  "r43": {
   "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"
  },
  "r44": {
   "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"
  },
  "r45": {
   "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"
  },
  "r46": {
   "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"
  },
  "r47": {
   "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"
  },
  "r48": {
   "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"
  },
  "r49": {
   "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"
  },
  "r50": {
   "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"
  },
  "r51": {
   "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"
  },
  "r52": {
   "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"
  },
  "r53": {
   "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"
  },
  "r54": {
   "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"
  },
  "r55": {
   "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"
  },
  "r56": {
   "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"
  },
  "r57": {
   "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"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 4.E)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480418/310-10-S99-2"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/440/tableOfContent"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/505/tableOfContent"
  },
  "r61": {
   "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"
  },
  "r62": {
   "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"
  },
  "r63": {
   "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"
  },
  "r64": {
   "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"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/810/tableOfContent"
  },
  "r66": {
   "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"
  },
  "r67": {
   "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"
  },
  "r68": {
   "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"
  },
  "r69": {
   "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"
  },
  "r70": {
   "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"
  },
  "r71": {
   "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"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(13)(h))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478524/942-220-S99-1"
  },
  "r73": {
   "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"
  },
  "r74": {
   "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"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "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"
  },
  "r79": {
   "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"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r82": {
   "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"
  },
  "r83": {
   "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"
  },
  "r84": {
   "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"
  },
  "r85": {
   "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"
  },
  "r86": {
   "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"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column A",
   "Footnote": "3",
   "Publisher": "SEC"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r90": {
   "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"
  },
  "r91": {
   "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"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "M",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 4",
   "Publisher": "SEC"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r97": {
   "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"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-6"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-7"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/205/tableOfContent"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481034/205-10-S45-5"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481003/205-10-S50-2"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480922/205-10-S99-3"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SAB Topic 1.B.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480922/205-10-S99-7"
  },
  "r111": {
   "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"
  },
  "r112": {
   "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"
  },
  "r113": {
   "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"
  },
  "r114": {
   "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"
  },
  "r115": {
   "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"
  },
  "r116": {
   "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"
  },
  "r117": {
   "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"
  },
  "r118": {
   "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"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-10"
  },
  "r121": {
   "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"
  },
  "r122": {
   "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"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476148/220-40-50-21"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476151/220-40-65-1"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476151/220-40-65-1"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476151/220-40-65-1"
  },
  "r132": {
   "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"
  },
  "r133": {
   "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"
  },
  "r134": {
   "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"
  },
  "r135": {
   "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"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/235/tableOfContent"
  },
  "r139": {
   "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"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-1"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-4"
  },
  "r142": {
   "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(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r143": {
   "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)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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(k)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r146": {
   "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(k)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r155": {
   "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"
  },
  "r156": {
   "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"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483443/250-10-50-1"
  },
  "r160": {
   "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"
  },
  "r161": {
   "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"
  },
  "r162": {
   "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"
  },
  "r163": {
   "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"
  },
  "r164": {
   "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"
  },
  "r165": {
   "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"
  },
  "r166": {
   "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"
  },
  "r167": {
   "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"
  },
  "r168": {
   "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"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480530/250-10-S99-3"
  },
  "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": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-12"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-4"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-6"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482861/275-10-50-9"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-21"
  },
  "r192": {
   "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"
  },
  "r193": {
   "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"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "26C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-26C"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-29"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "36",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-36"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-41"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476173/280-10-65-1"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476173/280-10-65-1"
  },
  "r208": {
   "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"
  },
  "r209": {
   "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"
  },
  "r210": {
   "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"
  },
  "r211": {
   "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"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "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"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479654/326-10-65-4"
  },
  "r218": {
   "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"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-4"
  },
  "r220": {
   "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"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476166/350-60-65-1"
  },
  "r226": {
   "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"
  },
  "r227": {
   "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"
  },
  "r228": {
   "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"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477123/405-50-65-1"
  },
  "r230": {
   "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"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "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"
  },
  "r244": {
   "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"
  },
  "r245": {
   "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"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r250": {
   "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"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "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"
  },
  "r254": {
   "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"
  },
  "r255": {
   "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"
  },
  "r256": {
   "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"
  },
  "r257": {
   "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"
  },
  "r258": {
   "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"
  },
  "r259": {
   "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"
  },
  "r260": {
   "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"
  },
  "r261": {
   "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"
  },
  "r262": {
   "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"
  },
  "r263": {
   "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"
  },
  "r264": {
   "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"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(f)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481538/470-20-65-4"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-1"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-2"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479887/480-10-S45-3"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-1"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-2"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479857/480-10-S50-3"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(01)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-1"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3A",
   "Subparagraph": "(24)(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480244/480-10-S99-3A"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "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"
  },
  "r288": {
   "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"
  },
  "r289": {
   "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"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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"
  },
  "r292": {
   "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"
  },
  "r293": {
   "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"
  },
  "r294": {
   "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"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "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"
  },
  "r299": {
   "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"
  },
  "r300": {
   "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"
  },
  "r301": {
   "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"
  },
  "r302": {
   "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"
  },
  "r303": {
   "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"
  },
  "r304": {
   "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"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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"
  },
  "r315": {
   "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"
  },
  "r316": {
   "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"
  },
  "r317": {
   "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"
  },
  "r318": {
   "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"
  },
  "r319": {
   "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"
  },
  "r320": {
   "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"
  },
  "r321": {
   "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"
  },
  "r322": {
   "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"
  },
  "r323": {
   "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"
  },
  "r324": {
   "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"
  },
  "r325": {
   "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"
  },
  "r326": {
   "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"
  },
  "r327": {
   "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"
  },
  "r328": {
   "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"
  },
  "r329": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r336": {
   "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r340": {
   "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"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "17",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480336/718-10-65-17"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "17",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480336/718-10-65-17"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "17",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480336/718-10-65-17"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "17",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480336/718-10-65-17"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "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"
  },
  "r355": {
   "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"
  },
  "r356": {
   "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"
  },
  "r357": {
   "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"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482615/740-10-65-9"
  },
  "r361": {
   "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"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r365": {
   "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"
  },
  "r366": {
   "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"
  },
  "r367": {
   "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"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "323",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478666/740-323-65-2"
  },
  "r369": {
   "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"
  },
  "r370": {
   "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"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/805-10/tableOfContent"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "05",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479515/805-10-05-4"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479405/805-10-25-1"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-3"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-4"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-5"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-7"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/805-20/tableOfContent"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-2"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-3"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-4"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-4A"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-4A"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-4A"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479845/805-20-65-3"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/805-30/tableOfContent"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r422": {
   "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"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-2"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-3"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-4"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-4"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-4"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479326/805-40-45-1"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476176/805-60-65-1"
  },
  "r442": {
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "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"
  },
  "r445": {
   "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"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/815/tableOfContent"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480463/815-10-45-6"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CC"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CCC",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CCC"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CCC",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CCC"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CCC",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CCC"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4E"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4F"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4F"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7A"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8A"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8C"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479693/815-10-S50-1"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480528/815-20-65-6"
  },
  "r494": {
   "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"
  },
  "r495": {
   "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"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480870/815-30-50-2"
  },
  "r504": {
   "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"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480175/815-40-65-1"
  },
  "r513": {
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "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"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "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"
  },
  "r525": {
   "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"
  },
  "r526": {
   "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"
  },
  "r527": {
   "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"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2G",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2G"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2G",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2G"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482477/820-10-65-13"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482477/820-10-65-13"
  },
  "r536": {
   "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"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r540": {
   "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"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-30"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-32"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482804/825-20-50-1"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/830/tableOfContent"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "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"
  },
  "r548": {
   "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"
  },
  "r549": {
   "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"
  },
  "r550": {
   "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"
  },
  "r551": {
   "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"
  },
  "r552": {
   "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"
  },
  "r553": {
   "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"
  },
  "r554": {
   "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"
  },
  "r555": {
   "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"
  },
  "r556": {
   "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"
  },
  "r557": {
   "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"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-1"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483550/848-10-65-2"
  },
  "r563": {
   "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"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/850/tableOfContent"
  },
  "r565": {
   "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"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r570": {
   "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"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/855/tableOfContent"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "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"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478671/942-235-S50-1"
  },
  "r586": {
   "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)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-1"
  },
  "r587": {
   "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"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-2"
  },
  "r589": {
   "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"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "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"
  },
  "r593": {
   "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"
  },
  "r594": {
   "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"
  },
  "r595": {
   "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"
  },
  "r596": {
   "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"
  },
  "r597": {
   "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"
  },
  "r598": {
   "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"
  },
  "r599": {
   "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"
  },
  "r600": {
   "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"
  },
  "r601": {
   "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"
  },
  "r602": {
   "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"
  },
  "r603": {
   "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"
  },
  "r604": {
   "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"
  },
  "r605": {
   "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"
  },
  "r606": {
   "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"
  },
  "r607": {
   "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"
  },
  "r608": {
   "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"
  },
  "r609": {
   "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"
  },
  "r610": {
   "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"
  },
  "r611": {
   "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"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r614": {
   "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"
  },
  "r615": {
   "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"
  },
  "r616": {
   "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"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r618": {
   "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"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480016/944-40-65-2"
  },
  "r623": {
   "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"
  },
  "r624": {
   "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"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "805",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478072/944-805-50-1"
  },
  "r626": {
   "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"
  },
  "r627": {
   "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"
  },
  "r628": {
   "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"
  },
  "r629": {
   "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"
  },
  "r630": {
   "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"
  },
  "r631": {
   "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"
  },
  "r632": {
   "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"
  },
  "r633": {
   "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"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "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"
  },
  "r637": {
   "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"
  },
  "r638": {
   "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"
  },
  "r639": {
   "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"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "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"
  },
  "r648": {
   "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"
  },
  "r649": {
   "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"
  },
  "r650": {
   "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"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "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"
  },
  "r655": {
   "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"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478009/946-205-45-6"
  },
  "r657": {
   "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"
  },
  "r658": {
   "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"
  },
  "r659": {
   "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"
  },
  "r660": {
   "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"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "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"
  },
  "r664": {
   "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"
  },
  "r665": {
   "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"
  },
  "r666": {
   "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"
  },
  "r667": {
   "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"
  },
  "r668": {
   "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"
  },
  "r669": {
   "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"
  },
  "r670": {
   "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"
  },
  "r671": {
   "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"
  },
  "r672": {
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r680": {
   "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"
  },
  "r681": {
   "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"
  },
  "r682": {
   "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"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r684": {
   "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"
  },
  "r685": {
   "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"
  },
  "r686": {
   "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"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "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"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479170/946-210-S99-1"
  },
  "r692": {
   "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"
  },
  "r693": {
   "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"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "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"
  },
  "r698": {
   "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"
  },
  "r699": {
   "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"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "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"
  },
  "r704": {
   "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"
  },
  "r705": {
   "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"
  },
  "r706": {
   "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"
  },
  "r707": {
   "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"
  },
  "r708": {
   "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"
  },
  "r709": {
   "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"
  },
  "r710": {
   "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"
  },
  "r711": {
   "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"
  },
  "r712": {
   "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"
  },
  "r713": {
   "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"
  },
  "r714": {
   "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"
  },
  "r715": {
   "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"
  },
  "r716": {
   "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"
  },
  "r717": {
   "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"
  },
  "r718": {
   "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"
  },
  "r719": {
   "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"
  },
  "r720": {
   "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"
  },
  "r721": {
   "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"
  },
  "r722": {
   "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"
  },
  "r723": {
   "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"
  },
  "r724": {
   "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"
  },
  "r725": {
   "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"
  },
  "r726": {
   "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"
  },
  "r727": {
   "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"
  },
  "r728": {
   "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"
  },
  "r729": {
   "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"
  },
  "r730": {
   "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"
  },
  "r731": {
   "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"
  },
  "r732": {
   "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"
  },
  "r733": {
   "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"
  },
  "r734": {
   "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"
  },
  "r735": {
   "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"
  },
  "r736": {
   "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"
  },
  "r737": {
   "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"
  },
  "r738": {
   "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"
  },
  "r739": {
   "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"
  },
  "r740": {
   "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"
  },
  "r741": {
   "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"
  },
  "r742": {
   "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"
  },
  "r743": {
   "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"
  },
  "r744": {
   "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"
  },
  "r745": {
   "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"
  },
  "r746": {
   "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"
  },
  "r747": {
   "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"
  },
  "r748": {
   "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"
  },
  "r749": {
   "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"
  },
  "r750": {
   "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"
  },
  "r751": {
   "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"
  },
  "r752": {
   "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"
  },
  "r753": {
   "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"
  },
  "r754": {
   "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"
  },
  "r755": {
   "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"
  },
  "r756": {
   "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"
  },
  "r757": {
   "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"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479134/946-220-S99-3"
  },
  "r760": {
   "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"
  },
  "r761": {
   "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"
  },
  "r762": {
   "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"
  },
  "r763": {
   "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"
  },
  "r764": {
   "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"
  },
  "r765": {
   "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"
  },
  "r766": {
   "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"
  },
  "r767": {
   "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"
  },
  "r768": {
   "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"
  },
  "r769": {
   "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"
  },
  "r770": {
   "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"
  },
  "r771": {
   "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"
  },
  "r772": {
   "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"
  },
  "r773": {
   "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"
  },
  "r774": {
   "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"
  },
  "r775": {
   "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"
  },
  "r776": {
   "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"
  },
  "r777": {
   "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"
  },
  "r778": {
   "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"
  },
  "r779": {
   "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"
  },
  "r780": {
   "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"
  },
  "r781": {
   "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"
  },
  "r782": {
   "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"
  },
  "r783": {
   "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"
  },
  "r784": {
   "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"
  },
  "r785": {
   "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"
  },
  "r786": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r788": {
   "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"
  },
  "r789": {
   "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"
  },
  "r790": {
   "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"
  },
  "r791": {
   "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"
  },
  "r792": {
   "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"
  },
  "r793": {
   "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"
  },
  "r794": {
   "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"
  },
  "r795": {
   "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"
  },
  "r796": {
   "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"
  },
  "r797": {
   "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"
  },
  "r798": {
   "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"
  },
  "r799": {
   "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"
  },
  "r800": {
   "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"
  },
  "r801": {
   "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"
  },
  "r802": {
   "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"
  },
  "r803": {
   "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"
  },
  "r804": {
   "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"
  },
  "r805": {
   "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"
  },
  "r806": {
   "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"
  },
  "r807": {
   "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"
  },
  "r808": {
   "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"
  },
  "r809": {
   "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"
  },
  "r810": {
   "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"
  },
  "r811": {
   "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"
  },
  "r812": {
   "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"
  },
  "r813": {
   "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"
  },
  "r814": {
   "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"
  },
  "r815": {
   "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"
  },
  "r816": {
   "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"
  },
  "r817": {
   "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"
  },
  "r818": {
   "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"
  },
  "r819": {
   "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"
  },
  "r820": {
   "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"
  },
  "r821": {
   "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"
  },
  "r822": {
   "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))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r824": {
   "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 F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5"
  },
  "r827": {
   "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 A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r828": {
   "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 C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5A",
   "Subparagraph": "(SX 210.12-13A(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r830": {
   "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 E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r831": {
   "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 F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5A"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5B"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column B)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r845": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5C"
  },
  "r847": {
   "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"
  },
  "r848": {
   "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"
  },
  "r849": {
   "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"
  },
  "r850": {
   "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"
  },
  "r851": {
   "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"
  },
  "r852": {
   "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"
  },
  "r853": {
   "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"
  },
  "r854": {
   "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"
  },
  "r855": {
   "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"
  },
  "r856": {
   "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"
  },
  "r857": {
   "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"
  },
  "r858": {
   "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"
  },
  "r859": {
   "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"
  },
  "r860": {
   "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"
  },
  "r861": {
   "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"
  },
  "r862": {
   "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"
  },
  "r863": {
   "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"
  },
  "r864": {
   "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"
  },
  "r865": {
   "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"
  },
  "r866": {
   "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"
  },
  "r867": {
   "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"
  },
  "r868": {
   "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"
  },
  "r869": {
   "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"
  },
  "r870": {
   "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"
  },
  "r871": {
   "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"
  },
  "r872": {
   "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"
  },
  "r873": {
   "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"
  },
  "r874": {
   "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"
  },
  "r875": {
   "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"
  },
  "r876": {
   "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"
  },
  "r877": {
   "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"
  },
  "r878": {
   "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"
  },
  "r879": {
   "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"
  },
  "r880": {
   "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"
  },
  "r881": {
   "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"
  },
  "r882": {
   "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"
  },
  "r883": {
   "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"
  },
  "r884": {
   "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"
  },
  "r885": {
   "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"
  },
  "r886": {
   "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"
  },
  "r887": {
   "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"
  },
  "r888": {
   "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"
  },
  "r889": {
   "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"
  },
  "r890": {
   "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"
  },
  "r891": {
   "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"
  },
  "r892": {
   "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"
  },
  "r893": {
   "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"
  },
  "r894": {
   "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"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478322/948-310-S50-2"
  },
  "r896": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479628/948-310-S99-1"
  },
  "r899": {
   "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"
  },
  "r900": {
   "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"
  },
  "r901": {
   "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"
  },
  "r902": {
   "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"
  },
  "r903": {
   "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"
  },
  "r904": {
   "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"
  },
  "r905": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "SubTopic": "10",
   "Topic": "825",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482881/825-10-55-10"
  },
  "r906": {
   "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"
  },
  "r907": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-15"
  },
  "r908": {
   "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"
  },
  "r909": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-20"
  },
  "r910": {
   "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"
  },
  "r911": {
   "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"
  },
  "r912": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-14"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-21"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "220",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147476153/220-40-55-4"
  },
  "r915": {
   "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"
  },
  "r916": {
   "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"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "275",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482836/275-10-55-6"
  },
  "r918": {
   "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"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-47"
  },
  "r923": {
   "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"
  },
  "r924": {
   "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"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "54",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-54"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "54",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-54"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "54",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482785/280-10-55-54"
  },
  "r928": {
   "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"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r931": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482573/350-20-50-2"
  },
  "r932": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482548/350-20-55-24"
  },
  "r933": {
   "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"
  },
  "r934": {
   "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"
  },
  "r935": {
   "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"
  },
  "r936": {
   "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"
  },
  "r937": {
   "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"
  },
  "r938": {
   "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"
  },
  "r939": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "480",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "64",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481620/480-10-55-64"
  },
  "r940": {
   "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"
  },
  "r941": {
   "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"
  },
  "r942": {
   "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"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r944": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r945": {
   "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"
  },
  "r946": {
   "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"
  },
  "r947": {
   "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"
  },
  "r948": {
   "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"
  },
  "r949": {
   "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"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-8"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "29",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-29"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "29",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-29"
  },
  "r953": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "38",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-38"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-41"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "42",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-42"
  },
  "r956": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "43",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-43"
  },
  "r957": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "45",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-45"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "46",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-46"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "47",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-47"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-2"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "805",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479299/805-40-55-10"
  },
  "r963": {
   "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"
  },
  "r964": {
   "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"
  },
  "r965": {
   "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"
  },
  "r966": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r968": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r969": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r970": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r971": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4C",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4C"
  },
  "r972": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4CC"
  },
  "r973": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "181",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-181"
  },
  "r974": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-182"
  },
  "r975": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "184",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480401/815-10-55-184"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r977": {
   "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"
  },
  "r978": {
   "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"
  },
  "r979": {
   "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"
  },
  "r980": {
   "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"
  },
  "r981": {
   "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"
  },
  "r982": {
   "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"
  },
  "r983": {
   "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"
  },
  "r984": {
   "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"
  },
  "r985": {
   "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"
  },
  "r986": {
   "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"
  },
  "r987": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482881/825-10-55-12"
  },
  "r988": {
   "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"
  },
  "r989": {
   "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"
  },
  "r990": {
   "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"
  },
  "r991": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "860",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481395/860-30-55-4"
  },
  "r992": {
   "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"
  },
  "r993": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "605",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477548/944-605-55-11"
  },
  "r994": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "605",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477548/944-605-55-14"
  },
  "r995": {
   "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"
  },
  "r996": {
   "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"
  },
  "r997": {
   "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"
  },
  "r998": {
   "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"
  },
  "r999": {
   "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"
  },
  "r1000": {
   "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"
  },
  "r1001": {
   "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"
  },
  "r1002": {
   "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"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r1006": {
   "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"
  },
  "r1007": {
   "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"
  },
  "r1008": {
   "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"
  },
  "r1009": {
   "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"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form F-3"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "4"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "5"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "6"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "Instruction 2"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "c"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "d"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "a"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "b"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "c"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "e"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "3"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "1"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "2"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "3"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "4"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1"
  },
  "r1065": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 1"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a"
  },
  "r1067": {
   "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"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "f"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "g"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "i"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 11"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 4"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 5"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 6"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "a"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "b"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 9"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 2"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 3"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "2"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "3",
   "Subparagraph": "Instruction 2"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "5"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 1"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 4"
  },
  "r1089": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 5"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "2",
   "Paragraph": "b, d"
  },
  "r1092": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "a"
  },
  "r1093": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r1095": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r1096": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "3"
  },
  "r1097": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b"
  },
  "r1098": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "4"
  },
  "r1099": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 2"
  },
  "r1100": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 3"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 4"
  },
  "r1102": {
   "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"
  },
  "r1103": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "c"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "e"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-3"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-4"
  },
  "r1107": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-6"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r1112": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r1113": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r1115": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form S-3"
  },
  "r1119": {
   "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"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Investment Company Act",
   "Number": "270"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r1125": {
   "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"
  },
  "r1126": {
   "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"
  },
  "r1127": {
   "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"
  },
  "r1128": {
   "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"
  },
  "r1129": {
   "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"
  },
  "r1130": {
   "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"
  },
  "r1131": {
   "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"
  },
  "r1132": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r1133": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r1137": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r1138": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r1141": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r1142": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r1143": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r1144": {
   "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"
  },
  "r1145": {
   "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"
  },
  "r1146": {
   "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"
  },
  "r1147": {
   "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"
  },
  "r1148": {
   "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"
  },
  "r1149": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r1150": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r1151": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r1152": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r1153": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r1154": {
   "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"
  },
  "r1155": {
   "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"
  },
  "r1156": {
   "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"
  },
  "r1157": {
   "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"
  },
  "r1158": {
   "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"
  },
  "r1159": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r1160": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r1161": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r1162": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r1163": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r1164": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r1165": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r1166": {
   "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"
  },
  "r1167": {
   "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"
  },
  "r1168": {
   "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"
  },
  "r1169": {
   "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"
  },
  "r1170": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r1171": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1172": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r1173": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "413",
   "Subsection": "b"
  },
  "r1174": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "b"
  },
  "r1175": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "c"
  },
  "r1176": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "d"
  },
  "r1177": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "e"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "a"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "b"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Section": "8",
   "Subsection": "c"
  },
  "r1182": {
   "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"
  },
  "r1183": {
   "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"
  },
  "r1184": {
   "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"
  },
  "r1185": {
   "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"
  },
  "r1186": {
   "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"
  },
  "r1187": {
   "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"
  },
  "r1188": {
   "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"
  },
  "r1189": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Investment Company Act of 1940",
   "Section": "61",
   "Paragraph": "a",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r1190": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "11",
   "Subsection": "03",
   "Publisher": "SEC"
  },
  "r1191": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "9",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479343/105-10-65-9"
  },
  "r1192": {
   "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"
  },
  "r1193": {
   "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"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX210.5-02(22)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480566/210-10-S99-1"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1198": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1200": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483466/210-20-50-3"
  },
  "r1202": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-10"
  },
  "r1203": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147483444/210-20-55-12"
  },
  "r1204": {
   "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"
  },
  "r1205": {
   "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"
  },
  "r1206": {
   "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"
  },
  "r1207": {
   "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"
  },
  "r1208": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1209": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-1"
  },
  "r1210": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480738/235-10-S50-4"
  },
  "r1211": {
   "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"
  },
  "r1212": {
   "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"
  },
  "r1213": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r1214": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-1"
  },
  "r1215": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480678/235-10-S99-3"
  },
  "r1216": {
   "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"
  },
  "r1217": {
   "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"
  },
  "r1218": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1219": {
   "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"
  },
  "r1220": {
   "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"
  },
  "r1221": {
   "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"
  },
  "r1222": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482810/280-10-50-18"
  },
  "r1223": {
   "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"
  },
  "r1224": {
   "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"
  },
  "r1225": {
   "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"
  },
  "r1226": {
   "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"
  },
  "r1227": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481687/323-10-50-3"
  },
  "r1228": {
   "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"
  },
  "r1229": {
   "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"
  },
  "r1230": {
   "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"
  },
  "r1231": {
   "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"
  },
  "r1232": {
   "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"
  },
  "r1233": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/450/tableOfContent"
  },
  "r1234": {
   "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"
  },
  "r1235": {
   "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"
  },
  "r1236": {
   "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"
  },
  "r1237": {
   "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"
  },
  "r1238": {
   "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"
  },
  "r1239": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480190/470-10-S50-1"
  },
  "r1240": {
   "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"
  },
  "r1241": {
   "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"
  },
  "r1242": {
   "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"
  },
  "r1243": {
   "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"
  },
  "r1244": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147481112/505-10-50-15"
  },
  "r1245": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1246": {
   "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"
  },
  "r1247": {
   "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"
  },
  "r1248": {
   "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"
  },
  "r1249": {
   "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"
  },
  "r1250": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480506/715-20-50-5"
  },
  "r1251": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1252": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1253": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1254": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1255": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1256": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1257": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1258": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1259": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1260": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1261": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1262": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1263": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1264": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1265": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1266": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1267": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1268": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1269": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1270": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1271": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1272": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1273": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1274": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1275": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1276": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480429/718-10-50-2"
  },
  "r1277": {
   "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"
  },
  "r1278": {
   "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"
  },
  "r1279": {
   "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"
  },
  "r1280": {
   "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"
  },
  "r1281": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r1282": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-2"
  },
  "r1283": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-3"
  },
  "r1284": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479328/805-10-50-8"
  },
  "r1285": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "42",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479303/805-10-55-42"
  },
  "r1286": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r1287": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r1288": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-1"
  },
  "r1289": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479907/805-20-50-2"
  },
  "r1290": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-1"
  },
  "r1291": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "805",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479581/805-30-50-2"
  },
  "r1292": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1A"
  },
  "r1293": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-1B"
  },
  "r1294": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4A"
  },
  "r1295": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4B"
  },
  "r1296": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4D",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4D"
  },
  "r1297": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-4E"
  },
  "r1298": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7"
  },
  "r1299": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-7A"
  },
  "r1300": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1301": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1302": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147480434/815-10-50-8"
  },
  "r1303": {
   "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"
  },
  "r1304": {
   "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"
  },
  "r1305": {
   "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"
  },
  "r1306": {
   "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"
  },
  "r1307": {
   "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"
  },
  "r1308": {
   "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"
  },
  "r1309": {
   "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"
  },
  "r1310": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1311": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1312": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1313": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1314": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1315": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-2"
  },
  "r1316": {
   "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"
  },
  "r1317": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r1318": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482106/820-10-50-3"
  },
  "r1319": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-10"
  },
  "r1320": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r1321": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-11"
  },
  "r1322": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r1323": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482907/825-10-50-28"
  },
  "r1324": {
   "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"
  },
  "r1325": {
   "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"
  },
  "r1326": {
   "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"
  },
  "r1327": {
   "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"
  },
  "r1328": {
   "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"
  },
  "r1329": {
   "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"
  },
  "r1330": {
   "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"
  },
  "r1331": {
   "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"
  },
  "r1332": {
   "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"
  },
  "r1333": {
   "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"
  },
  "r1334": {
   "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"
  },
  "r1335": {
   "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"
  },
  "r1336": {
   "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"
  },
  "r1337": {
   "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"
  },
  "r1338": {
   "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"
  },
  "r1339": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477314/942-235-S99-2"
  },
  "r1340": {
   "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"
  },
  "r1341": {
   "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"
  },
  "r1342": {
   "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"
  },
  "r1343": {
   "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"
  },
  "r1344": {
   "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"
  },
  "r1345": {
   "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"
  },
  "r1346": {
   "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"
  },
  "r1347": {
   "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"
  },
  "r1348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1350": {
   "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"
  },
  "r1351": {
   "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"
  },
  "r1352": {
   "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"
  },
  "r1353": {
   "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"
  },
  "r1354": {
   "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"
  },
  "r1355": {
   "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"
  },
  "r1356": {
   "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"
  },
  "r1357": {
   "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"
  },
  "r1358": {
   "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"
  },
  "r1359": {
   "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"
  },
  "r1360": {
   "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"
  },
  "r1361": {
   "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"
  },
  "r1362": {
   "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"
  },
  "r1363": {
   "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"
  },
  "r1364": {
   "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"
  },
  "r1365": {
   "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"
  },
  "r1366": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r1367": {
   "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"
  },
  "r1368": {
   "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"
  },
  "r1369": {
   "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"
  },
  "r1370": {
   "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"
  },
  "r1371": {
   "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"
  },
  "r1372": {
   "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"
  },
  "r1373": {
   "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"
  },
  "r1374": {
   "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"
  },
  "r1375": {
   "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"
  },
  "r1376": {
   "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"
  },
  "r1377": {
   "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"
  },
  "r1378": {
   "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"
  },
  "r1379": {
   "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"
  },
  "r1380": {
   "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 2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1381": {
   "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 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1382": {
   "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"
  },
  "r1383": {
   "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 C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r1384": {
   "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 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r1385": {
   "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"
  },
  "r1386": {
   "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 C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r1387": {
   "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 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r1388": {
   "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"
  },
  "r1389": {
   "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 C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r1390": {
   "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 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r1391": {
   "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"
  },
  "r1392": {
   "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"
  },
  "r1393": {
   "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 F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  }
 }
}
