{
 "version": "2.2",
 "instance": {
  "nmfc-20240126.htm": {
   "nsprefix": "nmfc",
   "nsuri": "http://newmountainfinance.com/20240126",
   "dts": {
    "inline": {
     "local": [
      "nmfc-20240126.htm"
     ]
    },
    "schema": {
     "local": [
      "nmfc-20240126.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/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/cef/2023/cef-2023.xsd",
      "https://xbrl.sec.gov/cef/2023/cef-2023_pre.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023_def.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023_lab.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023_pre.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-sub-2023.xsd"
     ]
    },
    "definitionLink": {
     "local": [
      "nmfc-20240126_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "nmfc-20240126_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "nmfc-20240126_pre.xml"
     ]
    }
   },
   "keyStandard": 12,
   "keyCustom": 0,
   "axisStandard": 2,
   "axisCustom": 0,
   "memberStandard": 0,
   "memberCustom": 17,
   "hidden": {
    "total": 3,
    "http://xbrl.sec.gov/dei/2023": 3
   },
   "contextCount": 19,
   "entityCount": 1,
   "segmentCount": 17,
   "elementCount": 319,
   "unitCount": 1,
   "baseTaxonomies": {
    "http://xbrl.sec.gov/dei/2023": 4,
    "http://xbrl.sec.gov/cef/2023": 30
   },
   "report": {
    "R1": {
     "role": "http://xbrl.sec.gov/dei/role/document/Cover",
     "longName": "995100 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nmfc-20240126.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R2": {
     "role": "http://xbrl.sec.gov/cef/role/N2",
     "longName": "995470 - Disclosure - N-2",
     "shortName": "N-2",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "2",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nmfc-20240126.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "cef:InvestmentObjectivesAndPracticesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "nmfc-20240126.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "nmfc_TheNotesWillBeStructurallySubordinatedToTheIndebtednessRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "TheNotesWillBeStructurallySubordinatedToTheIndebtednessRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "The Notes Will Be Structurally Subordinated To The Indebtedness Risk [Member]",
        "documentation": "The Notes Will Be Structurally Subordinated To The Indebtedness Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ExpenseExampleYears1to3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ExpenseExampleYears1to3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 3"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "cef_WarrantsOrRightsCalledPeriodDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "WarrantsOrRightsCalledPeriodDate",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Period [Date]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "dei_PreCommencementTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreCommencementTenderOffer",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 14d-2(b) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "nmfc_UnsecuredNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "UnsecuredNotesMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unsecured Notes [Member]",
        "documentation": "Unsecured Notes"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherAnnualExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r58"
     ]
    },
    "cef_ProspectusTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ProspectusTable",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus:"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "cef_OtherAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r58"
     ]
    },
    "dei_EffectiveOnSetDate486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveOnSetDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "dei_PreCommencementIssuerTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreCommencementIssuerTenderOffer",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Issuer Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 13e-4(c) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "nmfc_DefaultOnOurObligationsRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "DefaultOnOurObligationsRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Default On Our Obligations Risk [Member]",
        "documentation": "Default On Our Obligations Risk"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "nmfc_MaterialLimitationsWithMakingAvailablePreliminaryEstimatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "MaterialLimitationsWithMakingAvailablePreliminaryEstimatesMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Limitations With Making Available Preliminary Estimates [Member]",
        "documentation": "Material Limitations With Making Available Preliminary Estimates"
       }
      }
     },
     "auth_ref": []
    },
    "cef_WarrantsOrRightsExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "WarrantsOrRightsExercisePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "nmfc_DowngradeSuspensionOrWithdrawalOfTheCreditRatingRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "DowngradeSuspensionOrWithdrawalOfTheCreditRatingRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Downgrade, Suspension Or Withdrawal Of The Credit Rating Risk [Member]",
        "documentation": "Downgrade, Suspension Or Withdrawal Of The Credit Rating Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OutstandingSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OutstandingSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "dei_EntityAddressesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressesLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses [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_EffectiveOnDate486b": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveOnDate486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "cef_NetExpenseOverAssetsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "NetExpenseOverAssetsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Expense over Assets [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "nmfc_RisingInterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "RisingInterestRateRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rising Interest Rate Risk [Member]",
        "documentation": "Rising Interest Rate Risk"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityBankruptcyProceedingsReportingCurrent": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityBankruptcyProceedingsReportingCurrent",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Bankruptcy Proceedings, Reporting Current",
        "documentation": "For registrants involved in bankruptcy proceedings during the preceding five years, the value Yes indicates that the registrant has filed all documents and reports required to be filed by Section 12, 13 or 15(d) of the Securities Exchange Act of 1934 subsequent to the distribution of securities under a plan confirmed by a court; the value No indicates the registrant has not.  Registrants not involved in bankruptcy proceedings during the preceding five years should not report this element."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16"
     ]
    },
    "cef_OutstandingSecurityAuthorizedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OutstandingSecurityAuthorizedShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Authorized [Shares]"
       }
      }
     },
     "auth_ref": [
      "r41"
     ]
    },
    "cef_OutstandingSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OutstandingSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "nmfc_DBCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "DBCreditFacilityMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "DB Credit Facility [Member]",
        "documentation": "DB Credit Facility"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EffectiveAfter60Days486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveAfter60Days486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective after 60 Days, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r102"
     ]
    },
    "cef_OutstandingSecurityNotHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OutstandingSecurityNotHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Not Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "cef_WaiversAndReimbursementsOfFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "WaiversAndReimbursementsOfFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Waivers and Reimbursements of Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "cef_OutstandingSecurityHeldShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OutstandingSecurityHeldShares",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Security, Held [Shares]"
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "dei_EntityInformationFormerLegalOrRegisteredName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInformationFormerLegalOrRegisteredName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Information, Former Legal or Registered Name",
        "documentation": "Former Legal or Registered Name of an entity"
       }
      }
     },
     "auth_ref": []
    },
    "nmfc_TheNotesContainLimitedProtectionRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "TheNotesContainLimitedProtectionRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "The Notes Contain Limited Protection Risk [Member]",
        "documentation": "The Notes Contain Limited Protection Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ExpenseExampleTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ExpenseExampleTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "dei_EffectiveOnSetDate486a": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveOnSetDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Set Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r102"
     ]
    },
    "nmfc_SBAGuaranteedDebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "SBAGuaranteedDebenturesMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SBA guaranteed debentures [Member]",
        "documentation": "SBA guaranteed debentures"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ProspectusLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ProspectusLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "cef_TotalAnnualExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "TotalAnnualExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Annual Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "dei_ContactPersonnelEmailAddress": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContactPersonnelEmailAddress",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Email Address",
        "documentation": "Email address of contact personnel."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AcquiredFundFeesAndExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AcquiredFundFeesAndExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees and Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "dei_EffectiveOnDate486a": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveOnDate486a",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective on Date, 486(a)"
       }
      }
     },
     "auth_ref": [
      "r102"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "cef_ExpenseExampleYear01": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ExpenseExampleYear01",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Year 01"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "dei_NewEffectiveDateForPreviousFiling": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NewEffectiveDateForPreviousFiling",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Effective Date for Previous Filing"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r86",
      "r87",
      "r88"
     ]
    },
    "dei_AdditionalSecurities462bFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AdditionalSecurities462bFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities, 462(b), File Number"
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "dei_DocumentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Description",
        "documentation": "The description of the document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AdditionalSecurities462b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AdditionalSecurities462b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities. 462(b)"
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "cef_ExpenseExampleYears1to5": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ExpenseExampleYears1to5",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 5"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "dei_DocumentCreationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentCreationDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Creation Date",
        "documentation": "The date the document was made available and submitted, in YYYY-MM-DD format. The date of submission, date of acceptance by the recipient, and the document effective date are all potentially different."
       }
      }
     },
     "auth_ref": []
    },
    "dei_NoSubstantiveChanges462cFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NoSubstantiveChanges462cFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c), File Number"
       }
      }
     },
     "auth_ref": [
      "r99"
     ]
    },
    "dei_NoSubstantiveChanges462c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NoSubstantiveChanges462c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Substantive Changes, 462(c)"
       }
      }
     },
     "auth_ref": [
      "r99"
     ]
    },
    "cef_ExpenseExampleYears1to10": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ExpenseExampleYears1to10",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, Years 1 to 10"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "dei_DocumentEffectiveDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentEffectiveDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Effective Date",
        "documentation": "The date when a document, upon receipt and acceptance, becomes officially effective, in YYYY-MM-DD format. Usually it is a system-assigned date time value, but it may be declared by the submitter in some cases."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ExhibitsOnly462dFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ExhibitsOnly462dFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d), File Number"
       }
      }
     },
     "auth_ref": [
      "r100"
     ]
    },
    "cef_EffectsOfLeverageTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "EffectsOfLeverageTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "dei_ExhibitsOnly462d": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ExhibitsOnly462d",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibits Only, 462(d)"
       }
      }
     },
     "auth_ref": [
      "r100"
     ]
    },
    "cef_PurposeOfFeeTableNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "PurposeOfFeeTableNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose of Fee Table , Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentVersion": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentVersion",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Version",
        "documentation": "The version identifier of the document."
       }
      }
     },
     "auth_ref": []
    },
    "cef_BasisOfTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "BasisOfTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "dei_WrittenCommunications": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "WrittenCommunications",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Written Communications",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as written communications pursuant to Rule 425 under the Securities Act."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "dei_DocumentCopyrightInformation": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentCopyrightInformation",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Copyright Information",
        "documentation": "The copyright information for the document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Description",
        "documentation": "Description of the kind of address for the entity, if needed to distinguish more finely among mailing, principal, legal, accounting, contact or other addresses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherTransactionFeesBasisNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherTransactionFeesBasisNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "dei_DocumentName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Name",
        "documentation": "Name of the document as assigned by the filer, corresponding to SEC document naming convention standards. Examples appear in the &lt;FILENAME> field of EDGAR filings, such as 'htm_25911.htm', 'exhibit1.htm', 'v105727_8k.txt'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_SolicitingMaterial": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SolicitingMaterial",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soliciting Material",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as soliciting material pursuant to Rule 14a-12 under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "cef_OtherTransactionFeesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherTransactionFeesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "cef_OtherExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherExpensesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Expenses, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "dei_DocumentTitle": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTitle",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Title",
        "documentation": "The name or title given to the document resource by the creator or publisher. An example is '2002 Annual Report'."
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherTransactionFeesBasisMaximum": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherTransactionFeesBasisMaximum",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "cef_AnnualInterestRateInitialPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualInterestRateInitialPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Initial [Percent]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "cef_OtherTransactionFeesBasisMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherTransactionFeesBasisMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Fees Basis, Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "dei_DocumentSubtitle": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentSubtitle",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Subtitle",
        "documentation": "The subtitle given to the document resource by the creator or publisher. An example is 'A New Period of Growth'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelFaxNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContactPersonnelFaxNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Fax Number",
        "documentation": "Fax Number of contact personnel."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "cef_OtherSecurityDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherSecurityDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "dei_EntityListingsExchangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingsExchangeAxis",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listings, Exchange [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": []
    },
    "cef_SecurityDividendsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityDividendsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Dividends [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "cef_InvestmentObjectivesAndPracticesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "InvestmentObjectivesAndPracticesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objectives and Practices [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r72"
     ]
    },
    "cef_BdcFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "BdcFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BDC File Number"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "us-gaap_NetAssetValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetAssetValuePerShare",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NAV Per Share"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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_ExchangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ExchangeDomain",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange [Domain]",
        "documentation": "The set of all exchanges. MIC exchange codes are drawn from ISO 10383."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SecurityVotingRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityVotingRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Voting Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r23"
     ]
    },
    "dei_EntityListingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingsLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listings [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_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LongTermDebtTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LongTermDebtTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "cef_GeneralDescriptionOfRegistrantAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "GeneralDescriptionOfRegistrantAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General Description of Registrant [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "cef_SecurityLiquidationRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityLiquidationRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liquidation Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "nmfc_NMNLCCreditFacilityIIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "NMNLCCreditFacilityIIMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NMNLC Credit Facility II [Member]",
        "documentation": "NMNLC Credit Facility II"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine3": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine3",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Three",
        "documentation": "Address Line 3 such as an Office Park"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LongTermDebtPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LongTermDebtPrincipal",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Principal"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol Flag",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SecurityLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityLiabilitiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Liabilities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SecurityPreemptiveAndOtherRightsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityPreemptiveAndOtherRightsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Preemptive and Other Rights [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "cef_RiskFactorsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "RiskFactorsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk Factors [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "cef_DistributionsMayReducePrincipalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "DistributionsMayReducePrincipalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distributions May Reduce Principal [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SecurityObligationsOfOwnershipTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SecurityObligationsOfOwnershipTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Obligations of Ownership [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r27"
     ]
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ParentEntityLegalName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ParentEntityLegalName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Parent Entity Legal Name",
        "documentation": "If the entity which the financial information concerns is a subsidiary of another company, then provide to full legal name of the parent entity"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "cef_PreferredStockRestrictionsArrearageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "PreferredStockRestrictionsArrearageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Arrearage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "cef_PreferredStockRestrictionsOtherTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "PreferredStockRestrictionsOtherTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Restrictions, Other [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "cef_RightsSubjectToOtherThanMajorityVoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r31"
     ]
    },
    "dei_Security12gTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12gTitle",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(g) Security",
        "documentation": "Title of a 12(g) registered security."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "cef_RightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "RightsLimitedByOtherSecuritiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights Limited by Other Securities [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "cef_LongTermDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LongTermDebtTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_SecurityReportingObligation": {
     "xbrltype": "securityReportingObligationItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityReportingObligation",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Reporting Obligation",
        "documentation": "15(d), indicating whether the security has a reporting obligation under that section of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "cef_LongTermDebtStructuringTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LongTermDebtStructuringTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Debt, Structuring [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "dei_EntityPhoneFaxNumbersLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPhoneFaxNumbersLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Phone Fax Numbers [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_PhoneFaxNumberDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PhoneFaxNumberDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Phone Fax Number Description",
        "documentation": "Description of Phone or Fax Number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityListingParValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingParValuePerShare",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Par Value Per Share",
        "documentation": "The par value per share of security quoted in same currency as Trading currency. Example: '0.01'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherSecurityTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherSecurityTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Security, Title [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PreferredStockLiquidationPreference",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred Stock Liquidating Preference"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LongTermDebtIssuanceAndSubstitutionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r36"
     ]
    },
    "dei_EntityListingForeign": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingForeign",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Foreign",
        "documentation": "Yes or No value indicating whether this is a listing that is a foreign listing or depository receipt."
       }
      }
     },
     "auth_ref": []
    },
    "cef_LongTermDebtDividendsAndCovenantsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r35"
     ]
    },
    "dei_CountryRegion": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CountryRegion",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Region",
        "documentation": "Region code of country"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityListingPrimary": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingPrimary",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Primary",
        "documentation": "Yes or No value indicating whether a listing of an instrument on an exchange is primary for the entity."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LongTermDebtRightsLimitedByOtherSecuritiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r37"
     ]
    },
    "cef_OtherSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "cef_ReturnAtMinusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ReturnAtMinusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "dei_Extension": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Extension",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extension",
        "documentation": "Extension number for local phone number."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityListingDepositoryReceiptRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingDepositoryReceiptRatio",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Depository Receipt Ratio",
        "documentation": "The number of underlying shares represented by one American Depository Receipt (ADR) or Global Depository Receipt (GDR). A value of '3' means that one ADR represents 3 underlying shares. If one underlying share represents 2 ADR's then the value would be represented as '0.5'."
       }
      }
     },
     "auth_ref": []
    },
    "cef_WarrantsOrRightsCalledAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "WarrantsOrRightsCalledAmount",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Amount"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "dei_EntityListingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingsTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listings [Table]",
        "documentation": "Container for exchange listing information for an entity"
       }
      }
     },
     "auth_ref": []
    },
    "cef_WarrantsOrRightsCalledTitleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "WarrantsOrRightsCalledTitleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants or Rights, Called Title"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "dei_EntityListingDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Description",
        "documentation": "Description of the kind of listing the entity has on the exchange, if necessary to further describe different instruments that are already distinguished by Entity, Exchange and Security."
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationMinimumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "IncentiveAllocationMinimumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Minimum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "cef_SeniorSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r63"
     ]
    },
    "cef_ManagementFeeNotBasedOnNetAssetsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r56"
     ]
    },
    "dei_EntityLegalForm": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityLegalForm",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Legal Form",
        "documentation": "The details of the entity's legal form. Examples are partnership, limited liability company, trust, etc."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityIncorporationDateOfIncorporation": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationDateOfIncorporation",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, Date of Incorporation",
        "documentation": "Date when an entity was incorporated"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentSynopsis": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentSynopsis",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Synopsis",
        "documentation": "A synopsis or description of the document provided by the creator or publisher. Examples are 'This is the 2006 annual report for Company. During this period we saw revenue grow by 10% and earnings per share grow by 15% over the prior period'"
       }
      }
     },
     "auth_ref": []
    },
    "cef_AcquiredFundFeesEstimatedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AcquiredFundFeesEstimatedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Fees Estimated, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "cef_AcquiredFundFeesAndExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r46"
     ]
    },
    "cef_SeniorSecuritiesAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesAmount",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Amount (Deprecated 2023-01-31)"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "cef_AcquiredFundIncentiveAllocationNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AcquiredFundIncentiveAllocationNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Fund Incentive Allocation, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "dei_ContainedFileInformationFileName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContainedFileInformationFileName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contained File Information, File Name",
        "documentation": "The name of the contained file."
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "IncentiveAllocationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "dei_ContainedFileInformationFileType": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContainedFileInformationFileType",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contained File Information, File Type",
        "documentation": "The type or format of the contained file (usually XBRL but may be used for other types such as HTML, Word, PDF, GIF/JPG, etc.)."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": []
    },
    "dei_ContainedFileInformationFileDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContainedFileInformationFileDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contained File Information, File Description",
        "documentation": "The description of the contained file."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AcquiredFundTotalAnnualExpensesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r50"
     ]
    },
    "dei_ContainedFileInformationFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContainedFileInformationFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contained File Information, File Number",
        "documentation": "The SEC Document Number of the contained file."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitiesTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entities [Table]",
        "documentation": "Container to assemble all relevant information about each entity associated with the document instance"
       }
      }
     },
     "auth_ref": []
    },
    "cef_IncentiveAllocationMaximumPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "IncentiveAllocationMaximumPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Allocation Maximum [Percent]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "cef_RiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "RiskAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_FinancialHighlightsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "FinancialHighlightsAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Highlights [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationDocumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationDocumentAxis",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information, Document [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_AuditorLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "auth_ref": []
    },
    "us-gaap_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Risk [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityDomain",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentDomain",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document [Domain]",
        "documentation": "Type of the document as assigned by the filer, corresponding to SEC document naming convention standards."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualDividendPaymentCurrent": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualDividendPaymentCurrent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Current"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "cef_SeniorSecuritiesAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Amount"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "dei_EntityInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInformationLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity 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": []
    },
    "cef_AllRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AllRisksMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Risks:"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16"
     ]
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SeniorSecuritiesCvgPerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesCvgPerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Coverage per Unit"
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16"
     ]
    },
    "cef_RiskTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "RiskTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_SeniorSecuritiesCoveragePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesCoveragePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Coverage per Unit (Deprecated 2023-01-31)"
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Act File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressesTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses [Table]",
        "documentation": "Container of address information for the entity"
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "cef_ReturnAtZeroPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ReturnAtZeroPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Zero [Percent]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "dei_InvestmentCompanyActFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "InvestmentCompanyActFileNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act File Number"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r86",
      "r87",
      "r88"
     ]
    },
    "cef_SeniorSecuritiesInvoluntaryLiquidatingPreferencePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesInvoluntaryLiquidatingPreferencePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Involuntary Liquidating Preference per Unit (Deprecated 2023-01-31)"
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "dei_EntityPrimarySicNumber": {
     "xbrltype": "sicNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPrimarySicNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Primary SIC Number",
        "documentation": "Primary Standard Industrial Classification (SIC) Number for the Entity."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "cef_AnnualDividendPayment": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualDividendPayment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "nmfc_TheNotesWillBeUnsecuredRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "TheNotesWillBeUnsecuredRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "The Notes Will Be Unsecured Risk [Member]",
        "documentation": "The Notes Will Be Unsecured Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_EffectsOfLeverageTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "EffectsOfLeverageTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r74"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAnnualizedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesHighlightsAnnualizedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Annualized, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r68"
     ]
    },
    "cef_SeniorSecuritiesNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r60",
      "r68"
     ]
    },
    "cef_SeniorSecuritiesAverageMarketValuePerUnit": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesAverageMarketValuePerUnit",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Average Market Value per Unit"
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "dei_DocumentPeriodStartDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodStartDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period Start Date",
        "documentation": "The start date of the period covered in the document, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualDividendPaymentInitial": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualDividendPaymentInitial",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Dividend Payment, Initial"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "dei_EntityAccountingStandard": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAccountingStandard",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Accounting Standard",
        "documentation": "The standardized abbreviation of the accounting standard used by the entity. This can either be US GAAP as promulgated by the FASB or IFRS as promulgated by the IASB. Example: 'US GAAP', 'IFRS'.  This is distinct from the Document Accounting Standard element."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Report",
        "documentation": "Boolean flag that is true for a Shell Company Report pursuant to section 13 or 15(d) of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "cef_SeniorSecuritiesAveragingMethodNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesAveragingMethodNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Averaging Method, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r15",
      "r16"
     ]
    },
    "cef_ReturnAtMinusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ReturnAtMinusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Minus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "dei_ApproximateDateOfCommencementOfProposedSaleToThePublic": {
     "xbrltype": "dateOrAsapItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ApproximateDateOfCommencementOfProposedSaleToThePublic",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": []
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16",
      "r92"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentShellCompanyEventDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentShellCompanyEventDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Event Date",
        "documentation": "Date of event requiring a shell company report."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "dei_EntityNumberOfEmployees": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityNumberOfEmployees",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Number of Employees",
        "documentation": "Number of persons employed by the Entity"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFinStmtRestatementRecoveryAnalysisFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtRestatementRecoveryAnalysisFlag",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Financial Statement Restatement Recovery Analysis [Flag]",
        "documentation": "Indicates whether any of the financial statement periods include restatements that required a recovery analysis of incentive-based compensation received by any of the registrant's executive officers during the relevant recovery period pursuant to \u00a7240.10D-1(b)."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r15",
      "r16",
      "r92"
     ]
    },
    "cef_OtherTransactionExpense3Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r53"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r1"
     ]
    },
    "cef_LowestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LowestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r94"
     ]
    },
    "cef_InterestExpensesOnBorrowingsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "InterestExpensesOnBorrowingsPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expenses on Borrowings [Percent]"
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "cef_ReturnAtPlusFivePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ReturnAtPlusFivePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Five [Percent]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "cef_SeniorSecuritiesHighlightsAuditedNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesHighlightsAuditedNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Highlights Audited, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r68"
     ]
    },
    "dei_EntityListingSecurityTradingCurrency": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityListingSecurityTradingCurrency",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Listing, Security Trading Currency",
        "documentation": "The three character ISO 4217 code for the currency in which the security is quoted. Example: 'USD'"
       }
      }
     },
     "auth_ref": []
    },
    "cef_ReturnAtPlusTenPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ReturnAtPlusTenPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return at Plus Ten [Percent]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "cef_OtherMasterFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherMasterFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Master Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherTransactionExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherTransactionExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Transaction Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "dei_NameChangeEventTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NameChangeEventTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name Change Event [Table]",
        "documentation": "For a set of related facts in a sequence of name change events, use this table when the events occurred within a single reporting period."
       }
      }
     },
     "auth_ref": []
    },
    "dei_RegistrationStatementAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "RegistrationStatementAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registration Statement Amendment Number",
        "documentation": "Amendment number to registration statement under the Investment Company Act of 1940."
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "cef_OtherTransactionExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r53"
     ]
    },
    "dei_NameChangeEventDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NameChangeEventDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name Change Event Date [Axis]",
        "documentation": "For a sequence of name change event related facts, use this typed dimension to distinguish them.  The axis members are restricted to be a valid for xml schema 'date' or 'datetime' data type."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualCoverageReturnRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualCoverageReturnRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Coverage Return Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r76"
     ]
    },
    "cef_EffectsOfLeveragePurposeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "EffectsOfLeveragePurposeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of Leverage, Purpose [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "dei_FormerFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "FormerFiscalYearEndDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Former Fiscal Year End Date",
        "documentation": "Former end date of previous fiscal years"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherTransactionExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r53"
     ]
    },
    "dei_PreEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r1"
     ]
    },
    "dei_PreEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "cef_LatestSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LatestSharePrice",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest Share Price (Deprecated 2023-01-31)"
       }
      }
     },
     "auth_ref": [
      "r84"
     ]
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r95"
     ]
    },
    "cef_OtherTransactionExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r53"
     ]
    },
    "cef_HighestPriceOrBid": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "HighestPriceOrBid",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid"
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "cef_SeniorSecuritiesHeadingsNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SeniorSecuritiesHeadingsNoteTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Senior Securities Headings, Note [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r70"
     ]
    },
    "cef_SharePriceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SharePriceTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Price [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "dei_EntityReportingCurrencyISOCode": {
     "xbrltype": "currencyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityReportingCurrencyISOCode",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Reporting Currency ISO Code",
        "documentation": "The three character ISO 4217 code for the currency used for reporting purposes. Example: 'USD'."
       }
      }
     },
     "auth_ref": []
    },
    "cef_AnnualExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "dei_NameChangeEventLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NameChangeEventLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name Change Event [Line Items]",
        "documentation": "Line items represent concepts included in a table. Name change event line item concepts are used for information qualified by domain members of axes in the Name Change Event table."
       }
      }
     },
     "auth_ref": []
    },
    "cef_PrimaryShelfFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "PrimaryShelfFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Documents Incorporated by Reference [Text Block]",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "dei_PostEffectiveAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PostEffectiveAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-Effective Amendment"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "cef_ManagementFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ManagementFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_OtherAddressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "OtherAddressMember",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Address [Member]",
        "documentation": "Other address for entity"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "cef_RegisteredClosedEndFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "RegisteredClosedEndFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registered Closed-End Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "cef_LowestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LowestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lowest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r82"
     ]
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_PrimaryShelfQualifiedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "PrimaryShelfQualifiedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Primary Shelf Qualified [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_PostEffectiveAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PostEffectiveAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r1"
     ]
    },
    "dei_InvestmentCompanyActRegistration": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "InvestmentCompanyActRegistration",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Act Registration"
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "cef_BusinessDevelopmentCompanyFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "BusinessDevelopmentCompanyFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Development Company [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_DocumentInformationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Text Block]",
        "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_EntityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Text Block]",
        "documentation": "Container to serve as parent of six Entity related Table concepts."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r93"
     ]
    },
    "cef_DividendAndInterestExpensesOnShortSalesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r58"
     ]
    },
    "cef_HighestPriceOrBidNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "HighestPriceOrBidNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Highest Price or Bid, NAV"
       }
      }
     },
     "auth_ref": [
      "r82"
     ]
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "dei_AuditedAnnualFinancialStatements": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditedAnnualFinancialStatements",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Audited Annual Financial Statements",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing audited financial statements."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "cef_DividendReinvestmentAndCashPurchaseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "DividendReinvestmentAndCashPurchaseFees",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Reinvestment and Cash Purchase Fees"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "cef_AnnualInterestRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualInterestRatePercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate [Percent]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendmentNumber": {
     "xbrltype": "sequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "InvestmentCompanyRegistrationAmendmentNumber",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment Number"
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "cef_IncentiveFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "IncentiveFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Incentive Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "cef_AnnualInterestRateCurrentPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "AnnualInterestRateCurrentPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Interest Rate, Current [Percent]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "cef_IntervalFundFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "IntervalFundFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interval Fund [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_InvestmentCompanyRegistrationAmendment": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "InvestmentCompanyRegistrationAmendment",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Registration Amendment"
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "cef_DistributionServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "DistributionServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution/Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "cef_OtherAnnualExpense1Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r58"
     ]
    },
    "cef_HighestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r83"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "dei_AnnualInformationForm": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AnnualInformationForm",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Information Form",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing an annual information form."
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "dei_OtherReportingStandardItemNumber": {
     "xbrltype": "otherReportingStandardItemNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "OtherReportingStandardItemNumber",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Reporting Standard Item Number",
        "documentation": "\"Item 17\" or \"Item 18\" specified when the basis of accounting is neither US GAAP nor IFRS."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "cef_NewCefOrBdcRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "NewCefOrBdcRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New CEF or BDC Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "cef_LoanServicingFeesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LoanServicingFeesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Servicing Fees [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "cef_LatestNav": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LatestNav",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest NAV (Deprecated 2023-01-31)"
       }
      }
     },
     "auth_ref": [
      "r84"
     ]
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "cef_SharePricesNotActualTransactionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SharePricesNotActualTransactionsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Prices Not Actual Transactions [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Accounting Standard",
        "documentation": "The basis of accounting the registrant has used to prepare the financial statements included in this filing This can either be 'U.S. GAAP', 'International Financial Reporting Standards', or 'Other'."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "nmfc_NoExistingTradingMarketForTheNotesRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "NoExistingTradingMarketForTheNotesRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Existing Trading Market For The Notes Risk [Member]",
        "documentation": "No Existing Trading Market For The Notes Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_LowestPriceOrBidPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r83"
     ]
    },
    "nmfc_NoteRedemptionInterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "NoteRedemptionInterestRateRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Note Redemption Interest Rate Risk [Member]",
        "documentation": "Note Redemption Interest Rate Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherFeederFundExpensesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherFeederFundExpensesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Feeder Fund Expenses [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "nmfc_HoldingsCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "HoldingsCreditFacilityMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings Credit Facility [Member]",
        "documentation": "Holdings Credit Facility"
       }
      }
     },
     "auth_ref": []
    },
    "cef_FeeTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "FeeTableAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "cef_NoPublicTradingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "NoPublicTradingTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Public Trading [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r81"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityExTransitionPeriod",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "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": [
      "r104"
     ]
    },
    "dei_DelayedOrContinuousOffering": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DelayedOrContinuousOffering",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Delayed or Continuous Offering"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r19",
      "r89"
     ]
    },
    "dei_EntityHomeCountryISOCode": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityHomeCountryISOCode",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Home Country ISO Code",
        "documentation": "ISO 3166-1 alpha-2 country code for the Entity's home country. If home country is different from country of legal incorporation, then also provide country of legal incorporation in the 'Entity Incorporation, State Country Code' element."
       }
      }
     },
     "auth_ref": []
    },
    "dei_FormerAddressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "FormerAddressMember",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Former Address [Member]",
        "documentation": "Former address for entity"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r17"
     ]
    },
    "cef_DividendExpenseOnPreferredSharesPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "DividendExpenseOnPreferredSharesPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Expenses on Preferred Shares [Percent]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "dei_DividendOrInterestReinvestmentPlanOnly": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DividendOrInterestReinvestmentPlanOnly",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend or Interest Reinvestment Plan Only"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r19",
      "r89"
     ]
    },
    "nmfc_A2022ConvertibleNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "A2022ConvertibleNotesMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2022 Convertible Notes [Member]",
        "documentation": "2022 Convertible Notes"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EffectiveUponFiling462e": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveUponFiling462e",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Upon Filing, 462(e)"
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "cef_ShareholderTransactionExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "ShareholderTransactionExpensesTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Transaction Expenses [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "cef_OtherAnnualExpense2Percent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r58"
     ]
    },
    "dei_LegalEntityIdentifier": {
     "xbrltype": "legalEntityIdentifierItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityIdentifier",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity Identifier",
        "documentation": "A globally unique ISO 17442 value to identify entities, commonly abbreviated as LEI."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "nmfc_LeverageRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "LeverageRiskMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leverage Risk [Member]",
        "documentation": "Leverage Risk"
       }
      }
     },
     "auth_ref": []
    },
    "cef_CapitalStockLongTermDebtAndOtherSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "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": [
      "r20"
     ]
    },
    "cef_OtherAnnualExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "OtherAnnualExpensesAbstract",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Annual Expenses [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "dei_EntityContactPersonnelLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityContactPersonnelLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Contact Personnel [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": []
    },
    "cef_NoTradingHistoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "NoTradingHistoryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading History [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r85"
     ]
    },
    "cef_UnderwritersCompensationPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "UnderwritersCompensationPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underwriters Compensation [Percent]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "cef_LatestPremiumDiscountToNavPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "LatestPremiumDiscountToNavPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Latest Premium (Discount) to NAV [Percent]"
       }
      }
     },
     "auth_ref": [
      "r84"
     ]
    },
    "dei_AdditionalSecuritiesEffective413b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AdditionalSecuritiesEffective413b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Securities Effective, 413(b)"
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "nmfc_NMFCCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://newmountainfinance.com/20240126",
     "localname": "NMFCCreditFacilityMember",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NMFC Credit Facility [Member]",
        "documentation": "NMFC Credit Facility"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EffectiveUponFiling486b": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveUponFiling486b",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective upon Filing, 486(b)"
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "cef_SalesLoadPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "SalesLoadPercent",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Percent]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "dei_EffectiveWhenDeclaredSection8c": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EffectiveWhenDeclaredSection8c",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2",
      "http://xbrl.sec.gov/dei/role/document/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective when Declared, Section 8(c)"
       }
      }
     },
     "auth_ref": [
      "r105"
     ]
    },
    "cef_CapitalStockTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cef/2023",
     "localname": "CapitalStockTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cef/role/N2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "Global LEI Foundation",
   "URI": "www.leiroc.org",
   "URIDate": "2013-08-21"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "g"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12, 13, 15d"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "13e",
   "Subsection": "4c"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "14d",
   "Subsection": "2b"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "15",
   "Subsection": "d"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Section": "14a",
   "Number": "240",
   "Subsection": "12"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "249",
   "Section": "308",
   "Subsection": "a"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 8-K",
   "Number": "249",
   "Section": "308"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form F-3"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "4"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "5"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "6"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "a",
   "Subparagraph": "Instruction 2"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "c"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "1",
   "Paragraph": "d"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "a"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "b"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "c"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "2",
   "Paragraph": "e"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "3"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "1"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "2"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "3"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 10",
   "Subsection": "5",
   "Paragraph": "4"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 1"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "a"
  },
  "r47": {
   "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"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "f"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "g"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 10",
   "Subparagraph": "i"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 11"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 4"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 5"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 6"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "a"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 7",
   "Subparagraph": "b"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 3",
   "Subsection": "1",
   "Paragraph": "Instruction 9"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 2"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 3"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "1",
   "Paragraph": "Instruction 8"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "2"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "3",
   "Subparagraph": "Instruction 2"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "4",
   "Subparagraph": "Instruction 3"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "5"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 1"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 4"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 4",
   "Subsection": "3",
   "Paragraph": "Instruction 5"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "2",
   "Paragraph": "b, d"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "a"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "1"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "2"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "3",
   "Paragraph": "b",
   "Subparagraph": "3"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "4"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 2"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 3"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "b",
   "Subparagraph": "Instruction 4"
  },
  "r83": {
   "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"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "c"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-2",
   "Section": "Item 8",
   "Subsection": "5",
   "Paragraph": "e"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-3"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-4"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-6"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form S-3"
  },
  "r90": {
   "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"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Investment Company Act",
   "Number": "270"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "413",
   "Subsection": "b"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "425"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "b"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "c"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "d"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "462",
   "Subsection": "e"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "a"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "486",
   "Subsection": "b"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Section": "8",
   "Subsection": "c"
  }
 }
}
