XML 122 R101.htm IDEA: XBRL DOCUMENT
v3.22.1

Shareholders' Equity - Additional Information (Detail) $ / shares in Units, $ in Thousands |  |  |  | 12 Months Ended |  |  |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Sep. 23, 2020 CNY (¥) shares | Feb. 29, 2020 $ / shares shares | Jan. 08, 2020 CNY (¥) shares | Dec. 31, 2021 USD ($) | Dec. 31, 2020 CNY (¥) shares | Dec. 31, 2021 CNY (¥) shares | Dec. 31, 2021 USD ($) $ / shares shares | Dec. 17, 2021 USD ($) $ / shares shares | Sep. 03, 2021 shares | Dec. 31, 2020 $ / shares | Dec. 31, 2020 CNY (¥) shares | Sep. 23, 2020 $ / shares | Apr. 07, 2020 $ / shares shares | Jan. 08, 2020 $ / shares shares
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value per ordinary share | $ / shares |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 0.76
Shares repurchased during the period value | ¥ |  |  |  |  | ¥ 26,700,000 |  |  |  |  |  |  |  |  |
Common Stock, Par or Stated Value Per Share | $ / shares |  |  |  |  |  |  | $ 0.001 | $ 0.001 |  | $ 0.001 |  |  |  |
Common stock shares authorised |  |  |  |  |  | 40,000,000,000 | 40,000,000,000 | 40,000,000,000 |  |  | 4,000,000,000 |  |  |
Common Stock, Shares, Issued |  |  |  |  |  | 3,805,284,810 | 3,805,284,810 |  |  |  | 3,546,124,955 |  |  |
Common Stock, Value, Issued |  |  |  |  |  | ¥ 24,782,000 | $ 3,889 | $ 40,000 |  |  | ¥ 22,801,000 |  |  |
Camelot Group [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Common Stock, Shares, Issued |  |  |  |  |  |  |  |  | 247,475,446 |  |  |  |  |
NASDAQ/NGS (GLOBAL SELECT MARKET) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Sale of stock consideration received in the transaction | ¥ | ¥ 1,881,233 |  |  |  |  |  |  |  |  |  |  |  |  |
Common Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares repurchased during the period shares |  |  |  |  | 5,475,254 |  |  |  |  |  |  |  |  |
Shares repurchased during the period value | ¥ |  |  |  |  | ¥ 38,000 |  |  |  |  |  |  |  |  |
Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Common stock preferred stock and temporary equity shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 4,000,000,000 |
Common Stock, Par or Stated Value Per Share | $ / shares |  |  |  |  |  |  |  |  |  |  |  |  | $ 0.001 |
Common stock shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 2,282,750,429 |
IPO [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares |  |  | 30,000,000 |  |  |  |  |  |  |  |  |  |  |
Sale of stock issue price per share | $ / shares |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 1.13
Sale of stock consideration received in the transaction | ¥ |  |  | ¥ 3,875,394 |  |  |  |  |  |  |  |  |  |  |
Number of shares of preferred stock converted into common stock |  |  |  |  |  |  |  |  |  |  |  |  |  | 1,717,249,571
IPO [Member] | Common Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares |  |  | 450,000,000 |  | 517,500,000 |  |  |  |  |  |  |  |  |
Sale of stock issue price per share | $ / shares |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 17.00
Over-Allotment Option [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares |  |  | 4,500,000 |  |  |  |  |  |  |  |  |  |  |
Over-Allotment Option [Member] | NASDAQ/NGS (GLOBAL SELECT MARKET) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares | 1,250,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Over-Allotment Option [Member] | Common Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares |  |  | 67,500,000 |  |  |  |  |  |  |  |  |  |  |
Over-Allotment Option [Member] | Common Stock [Member] | NASDAQ/NGS (GLOBAL SELECT MARKET) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares | 18,750,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Follow On Offer [Member] | NASDAQ/NGS (GLOBAL SELECT MARKET) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares | 120,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Sale of stock issue price per share | $ / shares |  |  |  |  |  |  |  |  |  |  |  | $ 2.07 |  |
Follow On Offer [Member] | Common Stock [Member] | NASDAQ/NGS (GLOBAL SELECT MARKET) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock shares issued during the period shares | 8,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Sale of stock issue price per share | $ / shares |  |  |  |  |  |  |  |  |  |  |  | $ 31.00 |  |
Series A Convertible Preferred Shares [Member] | Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Preferred stock shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 458,116,000 |
Series B Convertible Redeemable Preferred Shares [Member] | Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 153,603,600 |
Series C Redeemable Convertible Preferred Shares [Member] | Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 185,665,192 |
Series D Redeemable Convertible Preferred Shares [Member] | Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 842,738,782 |
Series D Plus Redeemable Convertible Preferred Shares [Member] | Revision In Authorised Capital [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity shares authorised |  |  |  |  |  |  |  |  |  |  |  |  | 77,125,997 |
Executive Officer [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Repurchase price per share | $ / shares |  | $ 0.70 |  |  |  |  |  |  |  |  |  |  |  |
Shares repurchased during the period shares |  | 5,475,254 |  |  |  |  |  |  |  |  |  |  |  |
Shares repurchased during the period value | $ |  |  |  | $ 0 |  |  |  |  |  |  |  |  |  |

X
- Definition Common stock preferred stock and temporary equity shares authorised. + References No definition available. + Details
Name: | kc_CommonStockPreferredStockAndTemporaryEquitySharesAuthorised
Namespace Prefix: | kc_
Data Type: | xbrli:sharesItemType
Balance Type: | na
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_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face amount or stated value per share of common stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 852 -SubTopic 10 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of shares issued for each share of convertible preferred stock that is converted. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21475-112644 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 16 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123467817&loc=SL123496180-112644 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21506-112644 + Details
Name: | us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_PreferredStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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 Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Price of a single share of a number of saleable stocks of a company. + References No definition available. + Details
Name: | us-gaap_SharePrice
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of new stock issued during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The maximum number of securities classified as temporary equity that are permitted to be issued by an entity's charter and bylaws. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_TemporaryEquitySharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Total cost of shares repurchased divided by the total number of shares repurchased. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655 + Details
Name: | us-gaap_TreasuryStockAcquiredAverageCostPerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=kc_CamelotGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_EntityListingsExchangeAxis=exch_XNGS
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | kc_EventAxis=kc_RevisionInAuthorisedCapitalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=kc_SeriesAConvertiblePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=kc_SeriesBConvertibleRedeemablePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=kc_SeriesCRedeemableConvertiblePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=kc_SeriesDRedeemableConvertiblePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=srt_ExecutiveOfficerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |