v3.25.4

COMMITMENTS AND CONTINGENCIES - Unfunded Debt Commitments (Details) - USD ($) $ in Thousands | Dec. 31, 2025 | Mar. 31, 2025
--- | --- | ---
Total Unfunded Debt Commitments |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | $ 284,022 | $ 196,907
2026 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 0 | 31,354
2027 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 123,901 | 70,235
2028 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 35,717 | 16,420
2029 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 49,381 | 42,986
2030 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 31,530 | 33,912
2031 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | 39,201 | 2,000
2032 |  |
Other Commitments [Line Items] |  |
Total Unfunded Debt Commitments | $ 4,293 | $ 0

X
- Definition Amount of financial support committed by investment company to investee that is contractually required but not provided. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 16 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480990/946-20-50-16 + Details
Name: | us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount
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_OtherCommitmentsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis=cswc_DebtCommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearSixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cswc_ExpirationPeriodAxis=cswc_FinancialCommitmentYearSevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |