v3.25.4

INCOME TAXES - Distributions (Details) - $ / shares | 3 Months Ended | 12 Months Ended
--- | --- | ---
Dec. 31, 2025 | Sep. 30, 2025 | Jun. 30, 2025 | Mar. 31, 2025 | Dec. 31, 2024 | Sep. 30, 2024 | Jun. 30, 2024 | Mar. 31, 2024 | Dec. 31, 2023 | Sep. 30, 2023 | Jun. 30, 2023 | Mar. 31, 2023 | Dec. 31, 2025 | Dec. 31, 2024 | Dec. 31, 2023
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  |  |  |  | $ 2.56 | $ 2.53 | $ 2.42
March 31, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  | $ 0.64 |  |  |  |  |  |  |  |  |  |  |
June 30, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  | $ 0.64 |  |  |  |  |  |  |  |  |  |  |  |
July 31, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  | $ 0.1934 |  |  |  |  |  |  |  |  |  |  |  |  |
August 31, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  | 0.1934 |  |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  | 0.2534 |  |  |  |  |  |  |  |  |  |  |  |  |
October 31, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) | $ 0.1934 |  |  |  |  |  |  |  |  |  |  |  |  |  |
November 30, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) | 0.1934 |  |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2025 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) | 0.2534 |  |  |  |  |  |  |  |  |  |  |  |  |  |
March 31, 2024 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  | $ 0.63 |  |  |  |  |  |  |
June 30, 2024 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  | $ 0.63 |  |  |  |  |  |  |  |
September 30, 2024 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  | $ 0.64 |  |  |  |  |  |  |  |  |
December 31, 2024 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  | $ 0.63 |  |  |  |  |  |  |  |  |  |
March 31, 2023 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  |  |  | $ 0.58 |  |  |
June 30, 2023 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  |  | $ 0.59 |  |  |  |
September 30, 2023 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  | $ 0.62 |  |  |  |  |
December 31, 2023 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  | $ 0.63 |  |  |  |  |  |
March 31, 2025 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  | $ 0.06 |  |  |  |  |  |  |  |  |  |  |
June 30, 2025 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  | $ 0.06 |  |  |  |  |  |  |  |  |  |  |  |
September 30, 2025 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  | $ 0.06 |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2025 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) | $ 0.06 |  |  |  |  |  |  |  |  |  |  |  |  |  |
March 31, 2024 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  | $ 0.06 |  |  |  |  |  |  |
June 30, 2024 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  | $ 0.06 |  |  |  |  |  |  |  |
September 30, 2024 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  | $ 0.06 |  |  |  |  |  |  |  |  |
December 31, 2024 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  | $ 0.05 |  |  |  |  |  |  |  |  |  |
March 31, 2023 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  |  |  | $ 0.05 |  |  |
June 30, 2023 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  |  | $ 0.05 |  |  |  |
September 30, 2023 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  |  | $ 0.06 |  |  |  |  |
December 31, 2023 supplemental |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Income Tax Contingency [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dividends cash paid (in usd per share) |  |  |  |  |  |  |  |  | $ 0.06 |  |  |  |  |  |

X
- Definition Aggregate dividends paid 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_CommonStockDividendsPerShareCashPaid
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
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_IncomeTaxContingencyLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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