<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>2168</ContextCount>
  <ElementCount>336</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>265</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>12</UnitCount>
  <MyReports>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - Consolidated Statements of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedStatementsofAssetsandLiabilities</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Consolidated Statements of Assets and Liabilities (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedStatementsofAssetsandLiabilitiesParenthetical</Role>
      <ShortName>Consolidated Statements of Assets and Liabilities (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Consolidated Statements of Changes in Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedStatementsofChangesinNetAssets</Role>
      <ShortName>Consolidated Statements of Changes in Net Assets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - Consolidated Schedule of Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedScheduleofInvestments</Role>
      <ShortName>Consolidated Schedule of Investments</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - Consolidated Schedule of Investments (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/ConsolidatedScheduleofInvestmentsParenthetical</Role>
      <ShortName>Consolidated Schedule of Investments (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Formation and Business Purpose</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FormationandBusinessPurpose</Role>
      <ShortName>Formation and Business Purpose</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValue</Role>
      <ShortName>Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/Agreements</Role>
      <ShortName>Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/RelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/Borrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Regulation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/Regulation</Role>
      <ShortName>Regulation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Commitment and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/CommitmentandContingencies</Role>
      <ShortName>Commitment and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/NetAssets</Role>
      <ShortName>Net Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - Recent Accounting Standards Updates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/RecentAccountingStandardsUpdates</Role>
      <ShortName>Recent Accounting Standards Updates</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995470 - Disclosure - N-2</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cef/role/N2</Role>
      <ShortName>N-2</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954701 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954702 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954703 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/Investments</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954704 - Disclosure - Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValueTables</Role>
      <ShortName>Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/FairValue</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954705 - Disclosure - Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/AgreementsTables</Role>
      <ShortName>Agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/Agreements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954706 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/Borrowings</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954707 - Disclosure - Net Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/NetAssetsTables</Role>
      <ShortName>Net Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/NetAssets</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954708 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/EarningsPerShare</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954709 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/FinancialHighlights</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954710 - Disclosure - Formation and Business Purpose (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FormationandBusinessPurposeDetails</Role>
      <ShortName>Formation and Business Purpose (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/FormationandBusinessPurpose</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954711 - Disclosure - Summary of Significant Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954712 - Disclosure - Summary of Significant Accounting Policies - Summary Of Properties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SummaryofSignificantAccountingPoliciesSummaryOfPropertiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary Of Properties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954713 - Disclosure - Investments - Investment Cost and Fair Value by Type and by Industry (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsInvestmentCostandFairValuebyTypeandbyIndustryDetails</Role>
      <ShortName>Investments - Investment Cost and Fair Value by Type and by Industry (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954714 - Disclosure - Investments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsNarrativeDetails</Role>
      <ShortName>Investments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954715 - Disclosure - Investments - Portfolio Summary for SLP III and SLP IV (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsPortfolioSummaryforSLPIIIandSLPIVDetails</Role>
      <ShortName>Investments - Portfolio Summary for SLP III and SLP IV (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954716 - Disclosure - Investments - Individual Investments in the Portfolios of SLP III and SLP IV (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsIndividualInvestmentsinthePortfoliosofSLPIIIandSLPIVDetails</Role>
      <ShortName>Investments - Individual Investments in the Portfolios of SLP III and SLP IV (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954717 - Disclosure - Investments - Selected Balance Sheet Information for SLP III and SLP IV (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsSelectedBalanceSheetInformationforSLPIIIandSLPIVDetails</Role>
      <ShortName>Investments - Selected Balance Sheet Information for SLP III and SLP IV (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954718 - Disclosure - Investments - Selected Statement of Operations Information for SLP III and SLP IV (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/InvestmentsSelectedStatementofOperationsInformationforSLPIIIandSLPIVDetails</Role>
      <ShortName>Investments - Selected Statement of Operations Information for SLP III and SLP IV (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954719 - Disclosure - Fair Value - Fair Value Levels (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValueFairValueLevelsDetails</Role>
      <ShortName>Fair Value - Fair Value Levels (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954720 - Disclosure - Fair Value - Level III Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValueLevelIIIRollforwardDetails</Role>
      <ShortName>Fair Value - Level III Rollforward (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954721 - Disclosure - Fair Value - Unobservable Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValueUnobservableInputsDetails</Role>
      <ShortName>Fair Value - Unobservable Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - Fair Value - Carrying and Fair Values of Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValueCarryingandFairValuesofBorrowingsDetails</Role>
      <ShortName>Fair Value - Carrying and Fair Values of Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954723 - Disclosure - Agreements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/AgreementsNarrativeDetails</Role>
      <ShortName>Agreements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954724 - Disclosure - Agreements - Management Fees and Incentive Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/AgreementsManagementFeesandIncentiveFeesDetails</Role>
      <ShortName>Agreements - Management Fees and Incentive Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954725 - Disclosure - Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/RelatedPartiesDetails</Role>
      <ShortName>Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/RelatedParties</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954726 - Disclosure - Borrowings - General, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsGeneralNarrativeDetails</Role>
      <ShortName>Borrowings - General, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954727 - Disclosure - Borrowings - Holdings Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsHoldingsCreditFacilityDetails</Role>
      <ShortName>Borrowings - Holdings Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954728 - Disclosure - Borrowings - NMFC Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsNMFCCreditFacilityDetails</Role>
      <ShortName>Borrowings - NMFC Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954729 - Disclosure - Borrowings - Unsecured Management Company Revolver (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsUnsecuredManagementCompanyRevolverDetails</Role>
      <ShortName>Borrowings - Unsecured Management Company Revolver (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954730 - Disclosure - Borrowings - DB Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsDBCreditFacilityDetails</Role>
      <ShortName>Borrowings - DB Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954731 - Disclosure - Borrowings - NMNLC Credit Facility II (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsNMNLCCreditFacilityIIDetails</Role>
      <ShortName>Borrowings - NMNLC Credit Facility II (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954732 - Disclosure - Borrowings - Convertible Notes, Narrative (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsConvertibleNotesNarrativeDetails</Role>
      <ShortName>Borrowings - Convertible Notes, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954733 - Disclosure - Borrowings - Convertible Notes, Key Terms (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsConvertibleNotesKeyTermsDetails</Role>
      <ShortName>Borrowings - Convertible Notes, Key Terms (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954734 - Disclosure - Borrowings - Convertible Notes, Other Information (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsConvertibleNotesOtherInformationDetails</Role>
      <ShortName>Borrowings - Convertible Notes, Other Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954735 - Disclosure - Borrowings - Unsecured Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsUnsecuredNotesDetails</Role>
      <ShortName>Borrowings - Unsecured Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954736 - Disclosure - Borrowings - SBA-guaranteed Debentures, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsSBAguaranteedDebenturesNarrativeDetails</Role>
      <ShortName>Borrowings - SBA-guaranteed Debentures, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954737 - Disclosure - Borrowings - Summary of SBA-guaranteed Debentures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsSummaryofSBAguaranteedDebenturesDetails</Role>
      <ShortName>Borrowings - Summary of SBA-guaranteed Debentures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954738 - Disclosure - Borrowings - SBA-guaranteed Debenture, Other Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/BorrowingsSBAguaranteedDebentureOtherInformationDetails</Role>
      <ShortName>Borrowings - SBA-guaranteed Debenture, Other Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954739 - Disclosure - Commitment and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/CommitmentandContingenciesDetails</Role>
      <ShortName>Commitment and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/CommitmentandContingencies</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954740 - Disclosure - Net Assets - Roll forward of Net Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/NetAssetsRollforwardofNetAssetsDetails</Role>
      <ShortName>Net Assets - Roll forward of Net Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954741 - Disclosure - Net Assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/NetAssetsNarrativeDetails</Role>
      <ShortName>Net Assets - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954742 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/EarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/EarningsPerShareTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954743 - Disclosure - Financial Highlights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FinancialHighlightsDetails</Role>
      <ShortName>Financial Highlights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/FinancialHighlightsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="nmfc-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954744 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/SubsequentEvents</ParentRole>
      <Position>67</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 1 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:DebtInstrumentConvertibleConversionRatio1 -  nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -3000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if856853b8e37475992a9cbf16becb03a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -4000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i6902b9fc279c41d69784269468b1c166_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -5000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i7a2f1b5233ed4484aecab56e9aefb586_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i16d2e2ad5ab14ce8a1ae980c9b66401a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i6531f482d9e744778e1b5aa82a355988_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -11000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ibbe0714aed4449c0a57717b57ec8ba41_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: idf33526befa948f2afd279ad01f062f1_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ib0c2ac497b61432296c16cfc22b80c09_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i32f12aee87744f9097ab02acb2abc3bf_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -23000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i52e17b746b754e67ad4238e718fedca6_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -25000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i6f63ca5c3a4b4429940ac74cb61db21b_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -6000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ie252cd42e1874b9abe006ba6c367800e_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -36000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i9ee898e2671149d9a836b088677fed90_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -42000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: id362e748f5ac4a8689198670788ff5f8_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -2000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: icd21bbdcf53a435bb648f768523ffc48_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -5000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i4664172cbc2c4fdebc2314617b503256_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -7000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i46114dfd0b724a9e9777558f773b11d2_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -7000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i5ddc9244146744e78404b0a657897013_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -14000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i89dc61c125f6478791ceb5651c9a31d7_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -7000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: id02c1300c1a64f7cbf0a50399853a050_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i5afa2b8516ce45af8886ea48b1e80ba1_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -16000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ia3a0983f8c024394ac00e9bb2dba38f8_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -7000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if2d37cdaecdd4d58a0d467f6f338df78_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -3000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i100c7be3a5414706add69f4b8e021382_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -20000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ia2fa143caee947eea7269dc8da9894c9_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -11000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: id945a9d49ebe4e54b853b7c84a70345a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -5000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i11dfa2fcb15449f59ffe873f37349af3_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -15000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if957b9d1335a4eba8f79ae63acdadeed_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -20000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i045dca5b12704c93aa5d7d1446736a0a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -4000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ica622e7ca0f0432da2cfafa544f89bfe_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -4000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i1a7f579a91b348d0aa02aa073d2c268a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ib35f54541a124c6bbf897795b0ee4551_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -24000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i44f3a176adfd45559f0824e32cde6b5f_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -15000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if3095b6e343643bcb39c5eefb07ba0d7_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -15000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: idd2f5d753d0c47e7ad54f22cd1d7485a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -36000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: idf78566c5fd447f8b4fa5967afebfaae_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -37000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i11fb1c092d944401a52e9e0fa2d1ae7b_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -37000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i758574d7d9794fa79630a7055d17e203_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i66d959835c1a4c0bb5511e1d55fd90eb_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i9ab0cb60dabe4df18ad2eaf02e26293b_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -8000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ieb546c81dfdf4baba0a523a723483364_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -8000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if6b2aa643e8b4efd93f813dfc220fa08_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -14000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i65251d33795b4090a40290f9262cd65c_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -14000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ia9b6a6dfd3f34b66b01e11c90c9b6aea_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -43000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i41322eafacb0420a9fa3c54e7eae10b9_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -43000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i4ceeaf07206b4f6fb9ccbd66db7a0125_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -29000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ia5ab0951a5824e23969742a0e457411a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -29000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i90301b3a43ed4e7bbd431bfb3c2b0bf1_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -24000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i12a29ccf2e6a497bb317c5f611e3b709_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -11000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i2070952fff34466abc2ffa748bfad5de_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -57000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i9085e84a049340a19ab7fda824f71b2d_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -68000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i524a07cad346471bbf652edcd0cff4e7_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -21000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if3ab352747254c609648bde50251455a_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -21000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i8423fd5d7ddb42898c0eeb87ba9fac1e_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -27000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: icd7fa11ac55940ccb8f018d5d1af20e9_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -27000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i645236eba3b943f98f213b25cf52c7b4_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: iffd7f99429794256a4781beda33492b8_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: iea2a56fa586c4c21ac14dd5db9572eb7_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -36000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i60855878687d43fbbb33403db85ff04c_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i7db9c27742a64bd1b0ff08b3b1eaadab_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ic8db6d25a9244ede808df994371e73cd_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -30000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ifdab067bff2e49d999358ad76c4b0942_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -30000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ia3c9cf0d124246628f4317ec1ed3798d_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -16000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: if71a61400f1144a2b5a80d9c28cfa678_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -16000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i535814e6370649ea8d43bba8d91b7413_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -24000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i58ceecbf5e58491f81d8503534c11efc_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -24000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: iabb8f207a72b409ab5be87bf383e9c53_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -37000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i7f6d63efb89446ccabc60848992a52d0_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -55000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i8d11af65f58b41e591c1f37ec8523035_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -169000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i1e5b22cb08ae499ca5eca341148f8c50_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -261000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i93ed1b71e4354d0cbc2d671005fd7eb3_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ie5c080aaed28438a809f05df8f7d04be_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -72000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i67f9515b78ab4af39b8ec9f250e32abb_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -81000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i48ad7f8af2a44681bb1c02898641d176_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -1092000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i0db6ea572644498ba00744fa493a58d8_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -44000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i9ee087c2a1ef4be1aad6b7aa1dbfe0f9_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -44000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ifbda5199f47c493bbcd2b6d835d5e2db_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -1136000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ib1e0871c5a7342a2ac9dcb2d08625177_I20220930, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -2000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i024f6f98ec2744ee9cc815fa5fecc89e_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -2000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i6df66e2a612f4cf8a11660b5a3a139cc_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -3000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i138f1872cfab449a957b1755e8356192_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -5000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ic9366682e0eb46c28e07e862aa515680_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -5000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i1b53d97ffaf74ca1bc5befd6d2aa2905_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i887faad4ddb143949d1fb7e2deca297c_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -9000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ic400118fb35d42ffa1faea7e645a9ad1_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ie023120cdf5c4abaa167ac30a85eb183_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i8c272768ceff4945ba2993686a938667_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -10000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i1ac3c65cea654a3c9a1cad95351e11c8_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -6000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: id9b727350c254a02b460c253b54f944d_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -6000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i4e05fe7238284d95aef1cd85478ff049_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -12000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i26106ace739b42108231bf011792c8b4_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -18000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i97054f5da8ad493ea65c66523d9c42fc_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -19000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ibb9c4f4f95814bf4b9d9e0815f89b899_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -20000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: iccf0383d84ac4c98acdaf109735d53f8_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -20000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i92898776684b4377a1d4d23f832e790f_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -25000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: i8ecb308cc7734181998ac9ab679defa1_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -30000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: icdbefbdfb2884246859dd12976aa3383_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -30000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: iefa328ad4a264ad096d4a56441ad4fea_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -19000 which is less than zero. This element should not have a negative value. The preparer should consider if the value is input correctly for this assertion and, after considering the appropriateness of the input, if incorrect, input the amount as a positive (i.e., absolute) value and provide a negated label. The properties of this us-gaap:InvestmentOwnedAtCost fact are: Context: ibf17e4dea53d494291929d702133123d_I20211231, Unit: usd, Rule Element Id: 1442. nmfc-20220930.htm 4</Log>
    <Log type="Info">There are more than 100 warnings or errors, only 100 will be displayed.</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="nmfc-20220930.htm">nmfc-20220930.htm</File>
    <File>nmfc-093022xex311.htm</File>
    <File>nmfc-093022xex312.htm</File>
    <File>nmfc-093022xex321.htm</File>
    <File>nmfc-093022xex322.htm</File>
    <File>nmfc-20220930.xsd</File>
    <File>nmfc-20220930_cal.xml</File>
    <File>nmfc-20220930_def.xml</File>
    <File>nmfc-20220930_lab.xml</File>
    <File>nmfc-20220930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>nmfc-20220930_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1023">http://fasb.org/us-gaap-sup/2022q3</BaseTaxonomy>
    <BaseTaxonomy items="6698">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="2">http://xbrl.sec.gov/cef/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
