<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2026"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0001525201-20261009.xsd" xlink:type="simple"/>
    <context id="P10_09_2026To10_09_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001525201</identifier>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <context id="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001525201</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:EntityAddressesAddressTypeAxis">dei:BusinessContactMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey contextRef="P10_09_2026To10_09_2026" id="ixv-1167">0001525201</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1168">false</dei:AmendmentFlag>
    <dei:PostEffectiveAmendment contextRef="P10_09_2026To10_09_2026" id="ixv-1169">true</dei:PostEffectiveAmendment>
    <dei:EntityAddressStateOrProvince contextRef="P10_09_2026To10_09_2026" id="hidden172239259">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressStateOrProvince
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="hidden172239260">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityFileNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1189">333-297180</dei:EntityFileNumber>
    <dei:InvestmentCompanyActFileNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1190">811-22592</dei:InvestmentCompanyActFileNumber>
    <dei:DocumentType contextRef="P10_09_2026To10_09_2026" id="ixv-1191">N-2</dei:DocumentType>
    <dei:DocumentRegistrationStatement contextRef="P10_09_2026To10_09_2026" id="ixv-1192">true</dei:DocumentRegistrationStatement>
    <dei:PostEffectiveAmendmentNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1193">1</dei:PostEffectiveAmendmentNumber>
    <dei:InvestmentCompanyActRegistration contextRef="P10_09_2026To10_09_2026" id="ixv-1194">true</dei:InvestmentCompanyActRegistration>
    <dei:InvestmentCompanyRegistrationAmendmentNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1195">17</dei:InvestmentCompanyRegistrationAmendmentNumber>
    <dei:InvestmentCompanyRegistrationAmendment contextRef="P10_09_2026To10_09_2026" id="ixv-1196">true</dei:InvestmentCompanyRegistrationAmendment>
    <dei:EntityRegistrantName contextRef="P10_09_2026To10_09_2026" id="ixv-1197">DOUBLELINE OPPORTUNISTIC CREDIT FUND</dei:EntityRegistrantName>
    <dei:EntityAddressAddressLine1 contextRef="P10_09_2026To10_09_2026" id="ixv-1198">2002 North Tampa Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="P10_09_2026To10_09_2026" id="ixv-1199">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="P10_09_2026To10_09_2026" id="ixv-1200">Tampa</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode contextRef="P10_09_2026To10_09_2026" id="ixv-1201">33602</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P10_09_2026To10_09_2026" id="ixv-1202">813</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1203">791-7333</dei:LocalPhoneNumber>
    <dei:ContactPersonnelName
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="ixv-1204">Ronald R. Redell</dei:ContactPersonnelName>
    <dei:EntityAddressAddressLine1
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="ixv-1205">2002 North Tampa Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="ixv-1206">Suite 200</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="ixv-1207">Tampa</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode
      contextRef="P10_09_2026To10_09_2026_BusinessContactMemberdeiEntityAddressesAddressTypeAxis"
      id="ixv-1208">33602</dei:EntityAddressPostalZipCode>
    <dei:ApproximateDateOfCommencementOfProposedSaleToThePublic contextRef="P10_09_2026To10_09_2026" id="ixv-1209">From time to time after the effective date of this Registration Statement.</dei:ApproximateDateOfCommencementOfProposedSaleToThePublic>
    <dei:DividendOrInterestReinvestmentPlanOnly contextRef="P10_09_2026To10_09_2026" id="ixv-1210">false</dei:DividendOrInterestReinvestmentPlanOnly>
    <dei:DelayedOrContinuousOffering contextRef="P10_09_2026To10_09_2026" id="ixv-1211">true</dei:DelayedOrContinuousOffering>
    <cef:PrimaryShelfFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1212">true</cef:PrimaryShelfFlag>
    <dei:EffectiveUponFiling462e contextRef="P10_09_2026To10_09_2026" id="ixv-1213">false</dei:EffectiveUponFiling462e>
    <dei:AdditionalSecuritiesEffective413b contextRef="P10_09_2026To10_09_2026" id="ixv-1214">false</dei:AdditionalSecuritiesEffective413b>
    <dei:EffectiveWhenDeclaredSection8c contextRef="P10_09_2026To10_09_2026" id="ixv-1215">false</dei:EffectiveWhenDeclaredSection8c>
    <dei:NewEffectiveDateForPreviousFiling contextRef="P10_09_2026To10_09_2026" id="ixv-1216">false</dei:NewEffectiveDateForPreviousFiling>
    <dei:AdditionalSecurities462b contextRef="P10_09_2026To10_09_2026" id="ixv-1217">false</dei:AdditionalSecurities462b>
    <dei:NoSubstantiveChanges462c contextRef="P10_09_2026To10_09_2026" id="ixv-1218">false</dei:NoSubstantiveChanges462c>
    <dei:ExhibitsOnly462d contextRef="P10_09_2026To10_09_2026" id="ixv-1219">true</dei:ExhibitsOnly462d>
    <dei:ExhibitsOnly462dFileNumber contextRef="P10_09_2026To10_09_2026" id="ixv-1220">333-297180</dei:ExhibitsOnly462dFileNumber>
    <cef:RegisteredClosedEndFundFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1221">true</cef:RegisteredClosedEndFundFlag>
    <cef:BusinessDevelopmentCompanyFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1222">false</cef:BusinessDevelopmentCompanyFlag>
    <cef:IntervalFundFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1223">false</cef:IntervalFundFlag>
    <cef:PrimaryShelfQualifiedFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1224">true</cef:PrimaryShelfQualifiedFlag>
    <dei:EntityWellKnownSeasonedIssuer contextRef="P10_09_2026To10_09_2026" id="ixv-1225">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityEmergingGrowthCompany contextRef="P10_09_2026To10_09_2026" id="ixv-1226">false</dei:EntityEmergingGrowthCompany>
    <cef:NewCefOrBdcRegistrantFlag contextRef="P10_09_2026To10_09_2026" id="ixv-1227">false</cef:NewCefOrBdcRegistrantFlag>
</xbrl>
