XML 80 R67.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Preferred Stock and Common Stock - Additional Information (Detail) - USD ($) $ in Millions |  |  |  | 1 Months Ended | 12 Months Ended |
--- | --- | --- | --- | --- | --- | ---
Apr. 01, 2021 | Mar. 31, 2021 | Feb. 28, 2021 | Mar. 31, 2021 | Mar. 31, 2020 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019 | Apr. 30, 2021
Proceeds from Issuance of Convertible Preferred Stock |  |  |  |  |  |  | $ 1.0 | $ 343.3 |
Net offering costs |  |  |  |  |  |  | $ 0.9 |  |
Conversion of Stock, Shares Converted |  |  |  |  |  |  | 9,382,620 |  |
Common stock shares authorized |  |  |  |  |  | 13,850,000,000 | 700,754,910 |  |
Reclassification of convertible preferred stock into common stock value |  |  |  |  |  | $ 1,419.1 |  |  |
Preferred stock shares issued |  |  |  |  |  | 0 |  |  |
Preferred stock shares outstanding |  |  |  |  |  | 0 |  |  |
Convertible preferred stock shares authorized |  |  |  |  |  | 0 | 246,430,170 |  |
Additional Paid-in Capital [Member] |  |  |  |  |  |  |  |  |
Reclassification of convertible preferred stock into common stock value | $ 1,400.0 |  |  |  |  | $ 1,419.1 |  |  |
Series D Convertible Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Conversion of Stock, Shares Converted |  |  |  | 15,920,450 |  |  |  |  |
Reclassification of convertible preferred stock into common stock value |  |  |  |  |  |  | $ 40.0 |  |
Convertible preferred stock shares authorized |  |  |  |  |  |  | 25,303,070 |  |
Series G Convertible Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity Stock Issued During Period Shares New Issues |  |  |  |  | 64,820 |  |  | 22,306,800 |
Proceeds from Issuance of Convertible Preferred Stock |  |  |  |  | $ 1.0 |  |  | $ 343.3 |
Net offering costs |  |  |  |  |  |  |  | $ 0.8 |
Convertible preferred stock shares authorized |  |  |  |  |  |  | 22,371,620 |  |
Common Class A [Member] |  |  |  |  |  |  |  |  |
Convertible Preferred Stock, Shares Issued upon Conversion | 223,033,725 |  |  |  |  |  |  |  |
Treasury Stock, Common, Shares |  |  |  |  |  |  | 2,250,000 |  |
Common stock shares authorized |  |  |  |  |  | 12,500,000,000 | 530,136,050 |  |
Treasury stock, retired |  |  |  |  |  | Jul. 01, 2021 |  |  |
Common Class A [Member] | Restated Certificate Of Incorporation [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  |  |  |  | 12,500,000,000
Common Class C [Member] |  |  |  |  |  |  |  |  |
Conversion of Stock, Shares Issued |  | 15,244,490 |  |  |  |  |  |  |
Common Stock, Voting Rights |  |  | Each share of Class C common stock is entitled to twenty votes |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  | 100,000,000 |  |  |
Common Class C [Member] | Restated Certificate Of Incorporation [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  |  |  |  | 100,000,000
Common Class B [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  | 1,250,000,000 | 170,618,860 |  |
Common Class B [Member] | Restated Certificate Of Incorporation [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  |  |  |  | 1,250,000,000
Undesignated Preferred Stock [Member] | Restated Certificate Of Incorporation [Member] |  |  |  |  |  |  |  |  |
Preferred stock shares authorized |  |  |  |  |  |  |  |  | 25,000,000

X
- Definition Common stock issued upon conversion of convertible preferred stock value. + References No definition available. + Details
Name: | comp_CommonStockIssuedUponConversionOfConvertiblePreferredStockValue
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Convertible preferred stock shares authorized. + References No definition available. + Details
Name: | comp_ConvertiblePreferredStockSharesAuthorized
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Temporary Equity, Stock Issued During Period, Shares, New Issues. + References No definition available. + Details
Name: | comp_TemporaryEquityStockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Treasury stock retired date. + References No definition available. + Details
Name: | comp_TreasuryStockRetiredDate
Namespace Prefix: | comp_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

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 Description of voting rights of common stock. Includes eligibility to vote and votes per share owned. Include also, if any, unusual voting rights. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockVotingRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares converted in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4313-108586 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4304-108586 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4332-108586 + Details
Name: | us-gaap_ConversionOfStockSharesConverted1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of new shares issued in the conversion of stock in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4332-108586 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4313-108586 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4304-108586 + Details
Name: | us-gaap_ConversionOfStockSharesIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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 cash outflow for cost incurred directly with the issuance of an equity security. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfStockIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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 Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt. + 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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 13 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644 + Details
Name: | us-gaap_PreferredStockSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased. + 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_PreferredStockSharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash inflow from issuance of preferred stocks identified as being convertible into another form of financial instrument, typically the entity's common stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of previously issued common shares repurchased by the issuing entity and held in treasury. + 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_TreasuryStockCommonShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

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

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

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

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

X
- Details
Name: | comp_EventAxis=comp_RestatedCertificateOfIncorporationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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