v3.25.4

SHAREHOLDERS' EQUITY - Shares Sold (Details) - Equity ATM Program - USD ($) | 3 Months Ended | 9 Months Ended | 82 Months Ended
--- | --- | --- | ---
Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2025
Subsidiary, Sale of Stock [Line Items] |  |  |  |  |
Number of shares sold (in shares) | 2,490,000 | 2,364,147 | 6,291,892 | 4,702,227 | 39,333,069
Gross proceeds received | $ 52,553,000 | $ 53,620,000 | $ 134,582,000 | $ 112,540,000 | $ 844,600,000
Net proceeds received | $ 51,765,000 | $ 52,915,000 | $ 132,661,000 | $ 110,951,000 | $ 831,700,000
Weighted average price per share (in usd per share) | $ 21.11 | $ 22.68 | $ 21.39 | $ 23.93 | $ 21.47
Remaining receivable | $ 0 | $ 0 | $ 0 | $ 0 | $ 0

X
- Definition Sale of Stock, Consideration Receivable + References No definition available. + Details
Name: | cswc_SaleOfStockConsiderationReceivable
Namespace Prefix: | cswc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Sale Of Stock, Weighted Average, Price Per Share + References No definition available. + Details
Name: | cswc_SaleOfStockWeightedAveragePricePerShare
Namespace Prefix: | cswc_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash inflow from the issuance of common stock, preferred stock, treasury stock, stock options, and other types of equity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 14 -Subparagraph (a) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-14 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_ProceedsFromIssuanceOrSaleOfEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 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_SubsidiarySaleOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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