v3.25.4

FAIR VALUE MEASUREMENTS - Changes in Fair Value of Investments Measured Using Level 3 Inputs (Details) - USD ($) $ in Thousands | 9 Months Ended
--- | ---
Dec. 31, 2025 | Dec. 31, 2024
Total Investments |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | $ 1,785,299 | $ 1,476,561
Realized & Unrealized Gains (Losses) | (6,246) | (33,341)
Purchases of Investments | 535,471 | 478,033
Repayments | (245,931) | (201,463)
PIK Interest Capitalized | 10,137 | 8,804
Divestitures | (65,525) | (27,308)
Conversion/Exchange of Security | 0 | 0
Fair value. ending balance | 2,013,205 | 1,701,286
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | 1,755 | (19,440)
First lien loans |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 1,586,622 | 1,309,449
Realized & Unrealized Gains (Losses) | (27,555) | (39,763)
Purchases of Investments | 523,371 | 466,533
Repayments | (245,785) | (197,759)
PIK Interest Capitalized | 10,129 | 8,720
Divestitures | (30,362) | (27,308)
Conversion/Exchange of Security | (3,951) | (4,730)
Fair value. ending balance | 1,812,469 | 1,515,142
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | (23,636) | (28,533)
Second lien loans |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 18,066 | 33,774
Realized & Unrealized Gains (Losses) | (1,255) | (3,011)
Purchases of Investments | 39 | 18
Repayments | 0 | (3,629)
PIK Interest Capitalized | 0 | 70
Divestitures | 0 | 0
Conversion/Exchange of Security | 0 | (1,062)
Fair value. ending balance | 16,850 | 26,160
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | (1,256) | (1,130)
Subordinated debt |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 1,218 | 1,336
Realized & Unrealized Gains (Losses) | 2 | 43
Purchases of Investments | 57 | 57
Repayments | (146) | (75)
PIK Interest Capitalized | 8 | 14
Divestitures | 0 | 0
Conversion/Exchange of Security | 0 | (153)
Fair value. ending balance | 1,139 | 1,222
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | 2 | 34
Preferred equity |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 102,918 | 71,127
Realized & Unrealized Gains (Losses) | (5,908) | 7,359
Purchases of Investments | 4,049 | 6,730
Repayments | 0 | 0
PIK Interest Capitalized | 0 | 0
Divestitures | (31,323) | 0
Conversion/Exchange of Security | (688) | 0
Fair value. ending balance | 69,048 | 85,216
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | (1,523) | 7,359
Common equity & warrants |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 76,475 | 60,875
Realized & Unrealized Gains (Losses) | 28,185 | 2,031
Purchases of Investments | 4,498 | 4,695
Repayments | 0 | 0
PIK Interest Capitalized | 0 | 0
Divestitures | (3,840) | 0
Conversion/Exchange of Security | 4,639 | 5,945
Fair value. ending balance | 109,957 | 73,546
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | 27,883 | $ 2,830
Earnout |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |
Fair value, beginning balance | 0 |
Realized & Unrealized Gains (Losses) | 285 |
Purchases of Investments | 3,457 |
Repayments | 0 |
PIK Interest Capitalized | 0 |
Divestitures | 0 |
Conversion/Exchange of Security | 0 |
Fair value. ending balance | 3,742 |
YTD Unrealized Appreciation (Depreciation) on Investments held at period end | $ 285 |

X
- Definition Fair Value, Measurement With Unobservable Inputs Reconciliation, Recurring Basis, Asset, Conversion Or Reclassification Of Security + References No definition available. + Details
Name: | cswc_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetConversionOrReclassificationOfSecurity
Namespace Prefix: | cswc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Fair Value, Measurement With Unobservable Inputs Reconciliation, Recurring Basis, Asset, Paid-in-Kind Interest Capitalized + References No definition available. + Details
Name: | cswc_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPaidInKindInterestCapitalized
Namespace Prefix: | cswc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 102 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-102 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 102 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-102 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2G -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2G Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 101 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-101 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_InvestmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=cswc_DebtSecuritiesFirstLienMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=cswc_DebtSecuritiesSecondLienMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_SubordinatedDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_PreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=cswc_CommonEquityWarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=cswc_EarnoutMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |