<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>2119</ContextCount>
  <ElementCount>327</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>262</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="nmfc-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="nmfc-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - Fair Value - Principal Amounts and Fair Values of Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/FairValuePrincipalAmountsandFairValuesofBorrowingsDetails</Role>
      <ShortName>Fair Value - Principal Amounts and Fair Values of Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="nmfc-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954739 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.newmountainfinance.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.newmountainfinance.com/role/CommitmentsandContingencies</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="nmfc-20230331.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-20230331.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-20230331.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-20230331.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-20230331.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">[dq-0542-Deprecated-Concept] Concept DueFromAffiliates in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept DueToAffiliateCurrentAndNoncurrent in us-gaap/2022 used in 5 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept LondonInterbankOfferedRateLIBORMember in us-gaap/2022 used in 7 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. nmfc-20230331.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: i08ffef001b464f69b6c7203e1466282f_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i92c2a6ca6f6044a3967c0ddff8f5caaa_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i38ed214baec14a18bbb7fdf15417963a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5a96a1825cd44da9bea60460e9a37dc1_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie0675602b367453da025b230e827022e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i22164396b1114f438111eb7047315be6_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i8f27332aee5c4d389a6a36dddbeeaee2_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i2f81a45e6b274080bac33c52e206a8d5_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i3a98eef19a8e4726b90fd7c82296bc78_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i393a7ee6072d42a898b48f77a0d03e96_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -22000 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: i7ec263adbb264c0e9117865007740c27_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -22000 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: i2746638ddb26456c9a58e2fc6b6f4488_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i17f030d8d178417b8c49e3ccdacbe16a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: icf9c047ba4d24c0889c3214d84e8e916_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: iddeecab5abd84d2e9bb3fee8913878cf_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie5771117cbfa4f7c8464fe9edaacd27b_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -1000 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: i204df319b04845acabf279d85dea3736_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: id5dda3decd0a45f69a16a516de3b4052_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie91ee78aa48d451081868c5054ef92c8_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i9854351eb7674392a4860d54321266cc_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i38b8c44f6ec842ca8ec81ff3667cfd87_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i4c08d265cbb64de9b5bfa0d932f5c5a0_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: id5c56ca0a2894efba6d246b7e42cba51_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5d4d4ef9d2454c458922e5705f4b7f01_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie5cd58b6e7824300976176cf3b1e38a4_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: icf4e184945214934b28949b8788ef36a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i2b3ddc1a192048a4a77f069d24adb11a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: id14818670045457fbdaa7a533177d3d0_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ia011d4406a904d9aa985cc1b7ab1aa1d_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ibc6e0e4be3e341baa9ecfa454ed930c7_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5896ad5d75084f7c97e48772f54d130a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5dc5fea628d8434e83b972c04b40a588_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: if457c4d01398477bb1ce86a35252f513_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i8f62ab22ab8243c0be24ac8ac1e8dc5a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i417e6678cf8d4be39a108a11926305c4_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i2530d397b8b540efacd734913bed84e7_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ica6d5aa078a3487d89e0e1c12696530e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i0ce2b5eaaa154c65857280ea91eaebb5_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ib780d2a5d9ad492d83f740a4faa16f3e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i814b5fa4812446dead8f0142617ca080_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ic9d66cfbbc9f43e899d8ef31acd55b3b_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i80cde2fcb1e9446ebe5898ac5d4373d1_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5eb4591458be4f2a9884cee25bb0131e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i07e214aab100451da0f2cf02fe00ef0e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i94fb169cb6ea41eda0e637ef8d42334f_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i32ddc9ebeb7d49eb8e57a1c58f391cbf_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -83000 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: i1e50d4dd6cbc4d3c88ad177d1aa8b0fb_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -147000 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: i8570c12e3fe94d988c2adf29e57ffc09_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i7d69d668dfc14c44b81a0b856de34e63_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i871ca12e7bf44ec3ba939e42aa0d7f8a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i633427ded3ac487690bce2babfa16e5f_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -47000 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: idbeb8a183ad747089e1a0a68937c6621_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i896f8c24148643ffb6b91e7e91636104_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: iabdb1aca40664f7f8cfe44b006c7d033_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i10e962e9e1674a348e648546c3174e72_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ib7a9f64d3d8b43188f015aa0611d56c1_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i4b78255d7a264b0dab959442b36e6ddd_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie1d974a245c6472396bacd7fd004c3df_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: id488a57abdab4269943398e6e9fb0bff_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i82487dd2518349ea95998389ae6eca33_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ibe8e962b0036424f974c61061361fc38_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i98daf37da6924022bea0a6dc888b479a_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: iaa3944d8ebb6401dab1767c23ae1246c_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -13000 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: i3d752ed24d16442ba3872b57f8382589_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i6ce301652cdd45b7aa4121e7759990c3_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i5dc90564edb14f34b61b9a1ca8d3d5c4_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i64cd017a7fe441b2ac831e1c5ea7d1e9_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i6e6ef8667ac14d2ab14c54a731989508_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i00ff90ecd0634d43bb9541b357657a6e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i93c6936a44b8465cbc661c1d776d3810_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -67000 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: i65975e1320114a3880e89a34ad714e85_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -13000 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: ib6bb8d3971bc46a7a01a339e18b9bceb_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i096d76cd37394aac82b36dc0c127d255_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -33000 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: i1db0a6934d544d9ea3906fb3eb99819e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: id83b2a3e24d84a9aaafc1c5c5c5edd5e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i3eb332811a9244539aac27f198a0bb23_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ie05db6bae4744ef6b84c12bda1a4d2ac_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i21fa7d8bfad045288947cb9baf74f1eb_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i375f52b858894becba26dd10c2b9ceb4_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i03d9adf30b40409fac1ab32f72a20877_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -989000 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: i0270117c7dd44fe192586235ad0778df_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: if8b580976e1347e9bc957562983df5f3_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i4dace55861ef42858235bdcf16eaee95_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i3a258071035f49b791e8ec1aff774add_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: ica4d3bf483fb4adfa3ecf10823ce947e_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -1038000 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: i42f0891c7922441b9c51bc4aea2e1ab0_I20230331, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i08a25ad3f60c4df6a2c48c3b2070efac_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i9c1fc49d84934dd681011a1ae72d3188_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i40edbb2e20a94afebdaedbe05b978fc3_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i74e5336771e2413885975253d0510931_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i4b23492fae8748a4a76bb407bad43201_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i1c59af644b18443e83cd9b65fc780ae7_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -13000 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: i88a0c65d9f0d49488da1d06c3ea71a01_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.htm 4</Log>
    <Log type="Warning">[dqc-0015-Negative-Values] Fact us-gaap:InvestmentOwnedAtCost has a value of -17000 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: i35e5db90cb9343c4a8ee8d6066539e16_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: i70fedae22c2c4a9ea19c87204e874d69_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: if7b82e66031d4d73bfbe79c28e2e42f4_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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: iaebb01762f0845f39c19f03137618f0a_I20221231, Unit: usd, Rule Element Id: 1442. nmfc-20230331.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-20230331.htm">nmfc-20230331.htm</File>
    <File>nmfc-033123xex102.htm</File>
    <File>nmfc-033123xex103.htm</File>
    <File>nmfc-033123xex311.htm</File>
    <File>nmfc-033123xex312.htm</File>
    <File>nmfc-033123xex321.htm</File>
    <File>nmfc-033123xex322.htm</File>
    <File>nmfc-20230331.xsd</File>
    <File>nmfc-20230331_cal.xml</File>
    <File>nmfc-20230331_def.xml</File>
    <File>nmfc-20230331_lab.xml</File>
    <File>nmfc-20230331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>nmfc-20230331_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1072">http://fasb.org/us-gaap-sup/2022q3</BaseTaxonomy>
    <BaseTaxonomy items="6608">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="2">http://xbrl.sec.gov/cef/2022</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
