<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1514</ContextCount>
  <ElementCount>349</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>183</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Operations (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedStatementsOfOperationsParenthetical</Role>
      <ShortName>Consolidated Statements of Operations (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Changes in Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedStatementsOfChangesInNetAssets</Role>
      <ShortName>Consolidated Statements of Changes in Net Assets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100090 - Statement - Consolidated Schedule of Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedScheduleOfInvestments</Role>
      <ShortName>Consolidated Schedule of Investments</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100100 - Statement - Consolidated Schedule of Investments (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsParenthetical3</Role>
      <ShortName>Consolidated Schedule of Investments (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100110 - Statement - Consolidated Schedule of Investments - Summary of Derivatives (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedScheduleOfInvestmentsSummaryOfDerivativesParenthetical</Role>
      <ShortName>Consolidated Schedule of Investments - Summary of Derivatives (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100120 - Statement - Consolidated Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/StatementConsolidatedFinancialHighlights</Role>
      <ShortName>Consolidated Financial Highlights</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.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>14</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995480 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureOrganization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995490 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995500 - Disclosure - Earnings (Losses) Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureEarningsLossesPerShare</Role>
      <ShortName>Earnings (Losses) Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995510 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestments2</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995520 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995530 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowings1</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995540 - Disclosure - Distributable Taxable Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureDistributableTaxableIncome</Role>
      <ShortName>Distributable Taxable Income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995560 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995570 - Disclosure - Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporation</Role>
      <ShortName>Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995580 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995590 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995600 - Disclosure - Earnings (Losses) Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureEarningsLossesPerShareTables</Role>
      <ShortName>Earnings (Losses) Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureEarningsLossesPerShare</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995610 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestments2</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995620 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowings1</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995630 - Disclosure - Distributable Taxable Income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureDistributableTaxableIncomeTables</Role>
      <ShortName>Distributable Taxable Income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureDistributableTaxableIncome</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995640 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995650 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureStockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureStockholdersEquity</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995660 - Disclosure - Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporationTables</Role>
      <ShortName>Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporation</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995670 - Disclosure - Organization - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureOrganizationAdditionalInformationDetails</Role>
      <ShortName>Organization - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995680 - Disclosure - Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995690 - Disclosure - Earnings (Losses) Per Share - Schedule of Basic and Diluted Net Increase (Decrease) In Stockholders' Equity Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureEarningsLossesPerShareScheduleOfBasicAndDilutedNetIncreaseDecreaseInStockholdersEquityPerShareDetails</Role>
      <ShortName>Earnings (Losses) Per Share - Schedule of Basic and Diluted Net Increase (Decrease) In Stockholders' Equity Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureEarningsLossesPerShareTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995710 - Disclosure - Investments - Company Portfolio by Security and Investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsCompanyPortfolioBySecurityAndInvestmentDetails</Role>
      <ShortName>Investments - Company Portfolio by Security and Investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995720 - Disclosure - Investments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsAdditionalInformationDetails</Role>
      <ShortName>Investments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995730 - Disclosure - Investments - Summary of Investments in CLO Fund Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsSummaryOfInvestmentsInCloFundSecuritiesDetails</Role>
      <ShortName>Investments - Summary of Investments in CLO Fund Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995740 - Disclosure - Investments - Summary of Details Investments in Affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsSummaryOfDetailsInvestmentsInAffiliatesDetails</Role>
      <ShortName>Investments - Summary of Details Investments in Affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995750 - Disclosure - Investments - Summary of Fair Value of Investments by Fair Value Hierarchy Levels (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsSummaryOfFairValueOfInvestmentsByFairValueHierarchyLevelsDetails</Role>
      <ShortName>Investments - Summary of Fair Value of Investments by Fair Value Hierarchy Levels (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995760 - Disclosure - Investments - Summary of Information Relating to Investments Measured at Fair Value for Company has Used Unobservable Inputs to Determine Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsSummaryOfInformationRelatingToInvestmentsMeasuredAtFairValueForCompanyHasUsedUnobservableInputsToDetermineFairValue</Role>
      <ShortName>Investments - Summary of Information Relating to Investments Measured at Fair Value for Company has Used Unobservable Inputs to Determine Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995770 - Disclosure - Investments - Summary of Information Relating to Investments Measured at Fair Value for Company has Used Unobservable Inputs to Determine Fair Value (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsSummaryOfInformationRelatingToInvestmentsMeasuredAtFairValueForCompanyHasUsedUnobservableInputsToDetermineFairValue1</Role>
      <ShortName>Investments - Summary of Information Relating to Investments Measured at Fair Value for Company has Used Unobservable Inputs to Determine Fair Value (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995780 - Disclosure - Investments - Schedule of Valuation Techniques and Significant Inputs of Level III Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsScheduleOfValuationTechniquesAndSignificantInputsOfLevelIiiInvestmentsDetails</Role>
      <ShortName>Investments - Schedule of Valuation Techniques and Significant Inputs of Level III Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995790 - Disclosure - Investments - Schedule of Derivative Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureInvestmentsScheduleOfDerivativeInvestmentsDetails</Role>
      <ShortName>Investments - Schedule of Derivative Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995800 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995810 - Disclosure - Borrowings - Schedule of Debt Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsScheduleOfDebtObligationsDetails</Role>
      <ShortName>Borrowings - Schedule of Debt Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995820 - Disclosure - Borrowings - Schedule of Debt Obligations (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsScheduleOfDebtObligationsParentheticalDetails</Role>
      <ShortName>Borrowings - Schedule of Debt Obligations (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995830 - Disclosure - Borrowings - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsAdditionalInformationDetails</Role>
      <ShortName>Borrowings - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995840 - Disclosure - Borrowings - Summary of 2018-2 Secured Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsSummaryOf20182SecuredNotesDetails</Role>
      <ShortName>Borrowings - Summary of 2018-2 Secured Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995850 - Disclosure - Borrowings - Summary of 2018-2 Secured Notes (Parenthetical) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsSummaryOf20182SecuredNotesParentheticalDetails</Role>
      <ShortName>Borrowings - Summary of 2018-2 Secured Notes (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995860 - Disclosure - Borrowings - Schedule of Information about Senior Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsScheduleOfInformationAboutSeniorSecuritiesDetails</Role>
      <ShortName>Borrowings - Schedule of Information about Senior Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995870 - Disclosure - Borrowings - Schedule of Information about Senior Securities (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureBorrowingsScheduleOfInformationAboutSeniorSecuritiesParentheticalDetails</Role>
      <ShortName>Borrowings - Schedule of Information about Senior Securities (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995880 - Disclosure - Distributable Taxable Income - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureDistributableTaxableIncomeAdditionalInformationDetails</Role>
      <ShortName>Distributable Taxable Income - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995890 - Disclosure - Distributable Taxable Income - Reconciliation of Net Increase in Net Assets Resulting From Operations to Taxable Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureDistributableTaxableIncomeReconciliationOfNetIncreaseInNetAssetsResultingFromOperationsToTaxableIncomeDetails</Role>
      <ShortName>Distributable Taxable Income - Reconciliation of Net Increase in Net Assets Resulting From Operations to Taxable Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995910 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995920 - Disclosure - Commitments and Contingencies - Summary of Outstanding Commitments to Fund Investments in Current Portfolio Companies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureCommitmentsAndContingenciesSummaryOfOutstandingCommitmentsToFundInvestmentsInCurrentPortfolioCompaniesDetails</Role>
      <ShortName>Commitments and Contingencies - Summary of Outstanding Commitments to Fund Investments in Current Portfolio Companies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995930 - Disclosure - Stockholders' Equity - Summary of Components of Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureStockholdersEquitySummaryOfComponentsOfStockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity - Summary of Components of Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995950 - Disclosure - Stockholders' Equity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureStockholdersEquityAdditionalInformationDetails</Role>
      <ShortName>Stockholders' Equity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995960 - Disclosure - Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation (Additional Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporationAdditionalInformationDetails</Role>
      <ShortName>Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation (Additional Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporationTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995970 - Disclosure - Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation - Schedule of Recognized Identified Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporationScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssum</Role>
      <ShortName>Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation - Schedule of Recognized Identified Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995980 - Disclosure - Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation - Schedule of Recognized Identified Assets Acquired and Liabilities Assumed (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureAcquisitionsOfGarrisonCapitalIncAndHarvestCapitalCreditCorporationScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssum1</Role>
      <ShortName>Acquisitions of Garrison Capital Inc. And Harvest Capital Credit Corporation - Schedule of Recognized Identified Assets Acquired and Liabilities Assumed (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ptmn-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>995990 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.portmanridge.com/20230930/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="ptmn-20230930.htm">ptmn-20230930.htm</File>
    <File>ptmn-20230930.xsd</File>
    <File>ptmn-20230930_cal.xml</File>
    <File>ptmn-20230930_def.xml</File>
    <File>ptmn-20230930_lab.xml</File>
    <File>ptmn-20230930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="3853">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="1">http://xbrl.sec.gov/cef/2023</BaseTaxonomy>
    <BaseTaxonomy items="31">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
