v3.25.4

SHAREHOLDERS' EQUITY - Narrative (Details) |  |  | 3 Months Ended | 9 Months Ended | 82 Months Ended |  |  |  |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Jul. 18, 2021 | Feb. 04, 2020 USD ($) sales_agent | Dec. 31, 2025 USD ($) $ / shares shares | Dec. 31, 2024 USD ($) $ / shares shares | Dec. 31, 2025 USD ($) $ / shares shares | Dec. 31, 2024 USD ($) $ / shares shares | Dec. 31, 2025 USD ($) $ / shares shares | May 21, 2024 USD ($) | May 20, 2024 USD ($) | Aug. 02, 2022 USD ($) | Aug. 01, 2022 USD ($) | Aug. 31, 2021 USD ($) | Jul. 28, 2021 USD ($) | May 26, 2021 USD ($) | Mar. 04, 2019 USD ($)
Subsidiary or Equity Method Investee [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Repurchase authorized amount |  |  |  |  |  |  |  |  |  |  |  | $ 20,000,000 | $ 20,000,000 |  |
Restricted Stock | 2010 Plan |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsidiary or Equity Method Investee [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Right to grant period | 10 years |  |  |  |  |  |  |  |  |  |  |  |  |  |
Equity ATM Program |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsidiary or Equity Method Investee [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum consideration threshold |  | $ 100,000,000.0 |  |  |  |  |  | $ 1,000,000,000 | $ 650,000,000 | $ 650,000,000.0 | $ 250,000,000.0 |  |  | $ 250,000,000.0 | $ 50,000,000.0
Number of additional sales agents | sales_agent |  | 2 |  |  |  |  |  |  |  |  |  |  |  |  |
Gross sales commission percentage |  | 2.00% |  |  |  |  |  |  |  |  |  |  |  | 1.50% |
Number of shares sold (in shares) | shares |  |  | 2,490,000 | 2,364,147 | 6,291,892 | 4,702,227 | 39,333,069 |  |  |  |  |  |  |  |
Weighted average price per share (in usd per share) | $ / shares |  |  | $ 21.11 | $ 22.68 | $ 21.39 | $ 23.93 | $ 21.47 |  |  |  |  |  |  |  |
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 |  |  |  |  |  |  |  |
Available under the equity ATM program |  |  | $ 155,400,000 |  | $ 155,400,000 |  | $ 155,400,000 |  |  |  |  |  |  |  |

X
- Definition Sale Of Stock, Gross Sales Price Commission Percentage + References No definition available. + Details
Name: | cswc_SaleOfStockGrossSalesPriceCommissionPercentage
Namespace Prefix: | cswc_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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

X
- Definition Sale Of Stock, Number Of Additional Sales Agents + References No definition available. + Details
Name: | cswc_SaleOfStockNumberOfAdditionalSalesAgents
Namespace Prefix: | cswc_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

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 Share-Based Compensation Arrangement By Share-Based Payment Award, Plan Expiration Period + References No definition available. + Details
Name: | cswc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPlanExpirationPeriod
Namespace Prefix: | cswc_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 505 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481520/505-30-50-4 + Details
Name: | srt_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | srt_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 Amount remaining authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1
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_SubsidiaryOrEquityMethodInvesteeLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=cswc_A2010PlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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