v3.23.3

Taxable/Distributable Income and Dividend Distributions - Components of Accumulated Overdistributed Earnings (Details) - USD ($) $ in Thousands | Sep. 30, 2023 | Sep. 30, 2022
--- | --- | ---
Income Tax Disclosure [Abstract] |  |
Undistributed ordinary income, net | $ 33,525 |
Net realized capital losses | (509,832) |
Unrealized losses, net | (175,031) |
Accumulated overdistributed earnings | $ (651,338) | $ (582,769)

X
- Definition Investment Company, Distributable Earnings (Loss), Accumulated Unrealized Gains (Losses) + References No definition available. + Details
Name: | ocsl_InvestmentCompanyDistributableEarningsLossAccumulatedUnrealizedGainsLosses
Namespace Prefix: | ocsl_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_IncomeTaxDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of accumulated undistributed earnings (deficit) from long-term capital gain (loss) of investment company. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480990/946-20-50-12 + Details
Name: | us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of accumulated undistributed earnings (deficit) from ordinary income (loss) of investment company. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480990/946-20-50-12 + Details
Name: | us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of accumulated undistributed earnings (deficit). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481372/852-10-55-10 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (g)(2)(i) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480016/944-40-65-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (h)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480016/944-40-65-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480990/946-20-50-11 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(23)(a)(4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(17)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480008/505-10-S99-1 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(30)(a)(3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_RetainedEarningsAccumulatedDeficit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant