v3.25.4

INCOME TAXES - Narrative (Details) - USD ($) $ / shares in Units, $ in Thousands | 3 Months Ended |
--- | --- | ---
Dec. 31, 2025 | Mar. 31, 2025
Income Tax Contingency [Line Items] |  |
Undistributed ordinary income - tax basis | $ 60,600 |
Cumulative undistributed taxable income (in usd per share) | $ 1.02 |
Cost of investments | $ 2,024,200 | $ 1,776,100
Gross unrealized appreciation | 117,600 | 117,400
Gross unrealized depreciation | 139,700 | 108,200
Net unrealized appreciation (depreciation) | (22,100) | (9,200)
Total net deferred tax (liabilities) assets | (15,026) | $ (16,780)
RIC |  |
Income Tax Contingency [Line Items] |  |
Cost of investments | 1,965,000 |
Gross unrealized appreciation | 18,600 |
Gross unrealized depreciation | 126,500 |
Net unrealized appreciation (depreciation) | (107,900) |
Taxable Subsidiary |  |
Income Tax Contingency [Line Items] |  |
Cost of investments | 59,200 |
Gross unrealized appreciation | 99,000 |
Gross unrealized depreciation | 13,200 |
Net unrealized appreciation (depreciation) | $ 85,800 |
O 2026 M3 Tax Year Dividends |  |
Income Tax Contingency [Line Items] |  |
Dividends declared (in usd per share) | $ 0.1934 |
O 2026 M2 Tax Year Dividends |  |
Income Tax Contingency [Line Items] |  |
Dividends declared (in usd per share) | 0.1934 |
O 2026 M1 Tax Year Dividends |  |
Income Tax Contingency [Line Items] |  |
Dividends declared (in usd per share) | 0.1934 |
November 19, 2025 supplemental |  |
Income Tax Contingency [Line Items] |  |
Dividends declared (in usd per share) | $ 0.06 |

X
- Definition Investment Company, Distributable Earnings (Loss), Accumulated Ordinary Income (Loss), Per Share + References No definition available. + Details
Name: | cswc_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLossPerShare
Namespace Prefix: | cswc_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate dividends declared during the period for each share of common stock outstanding. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockDividendsPerShareDeclared
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 No definition available. + Details
Name: | us-gaap_IncomeTaxContingencyLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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 cost of investment for federal income tax purpose. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(h)(2)(iv)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of cumulative increase in investment from unrealized gain when value exceeds cost for federal income tax purpose. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(h)(2)(i)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of cumulative decrease in investment from unrealized loss when cost for federal income tax purpose exceeds value. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(h)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of cumulative increase (decrease) in investment from unrealized gain (loss) when value exceeds (is less than) cost for federal income tax purpose. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(h)(2)(iii)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=us-gaap_ConsolidatedEntityExcludingVieMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=srt_SubsidiariesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=cswc_O2026M3TaxYearDividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=cswc_O2026M2TaxYearDividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=cswc_O2026M1TaxYearDividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DividendsAxis=cswc_S2026M3TaxYearDividendsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |