v3.25.2

Share Data and Net Assets - Narrative (Details) - USD ($) $ / shares in Units, $ in Thousands |  |  | 3 Months Ended | 9 Months Ended
--- | --- | --- | --- | ---
Jan. 31, 2025 | Feb. 07, 2022 | Jun. 30, 2024 | Jun. 30, 2025 | Jun. 30, 2024
Investment Company, Changes in Net Assets [Line Items] |  |  |  |  |
Issuance of common stock under dividend reinvestment plan (in shares) |  |  |  | 639,964,000 | 295,484,000
Aggregate offering price |  | $ 300,000 |  |  |
Number of shares issued (in shares) | 5,672,149 |  |  |  |
Consideration received on transaction | $ 100,000 |  |  |  |
Average sales price per share (in dollars per share) | $ 17.63 |  |  |  |
At the Market |  |  |  |  |
Investment Company, Changes in Net Assets [Line Items] |  |  |  |  |
Dividend reinvestment plan, percent of current market price (as a percent) |  |  |  | 95.00% |
Additional supplemental payments |  |  |  | $ 300 |
Number of shares issued (in shares) |  |  |  | 168,055 | 4,724,506
Consideration received on transaction |  |  |  | $ 2,960 | $ 92,748
Average sales price per share (in dollars per share) |  |  | $ 19.83 | $ 17.77 | $ 19.83
Common Stock |  |  |  |  |
Investment Company, Changes in Net Assets [Line Items] |  |  |  |  |
Issuance of common stock under dividend reinvestment plan (in shares) |  |  | 100,029 |  | 295,484

X
- Definition Dividend Reinvestment Plan, Percent of Current Market Price + References No definition available. + Details
Name: | ocsl_DividendReinvestmentPlanPercentOfCurrentMarketPrice
Namespace Prefix: | ocsl_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Sale of Stock, Consideration Received on Transaction, Excluding Offering Costs, Additional Supplemental Payments + References No definition available. + Details
Name: | ocsl_SaleOfStockConsiderationReceivedOnTransactionExcludingOfferingCostsAdditionalSupplementalPayments
Namespace Prefix: | ocsl_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Sale Of Stock, Maximum Aggregate Offering Amount + References No definition available. + Details
Name: | ocsl_SaleOfStockMaximumAggregateOfferingAmount
Namespace Prefix: | ocsl_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147477796/946-210-45-3 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 205 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478009/946-205-45-4 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-1 + Details
Name: | us-gaap_InvestmentCompanyChangesInNetAssetsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Cash received on stock transaction after deduction of issuance costs. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedOnTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares issued during the period from a dividend reinvestment plan (DRIP). A dividend reinvestment plan allows the shareholders to reinvest dividends paid to them by the entity on new issues of stock by the entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=ocsl_AtTheMarketMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |