XML 50 R37.htm IDEA: XBRL DOCUMENT
v3.21.1

Convertible Preferred Stock and Common stock - Additional Information (Detail) - USD ($) $ in Millions |  |  | 1 Months Ended | 3 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | --- | ---
Mar. 31, 2021 | Feb. 28, 2021 | Mar. 31, 2021 | Mar. 31, 2020 | Mar. 31, 2021 | Mar. 31, 2020 | Apr. 30, 2021 | Apr. 01, 2021 | Dec. 31, 2020
Proceeds from Issuance of Convertible Preferred Stock |  |  |  |  | $ 0.0 | $ 1.0 |  |  |
Common stock shares authorized | 1,371,373,770 |  | 1,371,373,770 |  | 1,371,373,770 |  |  |  | 700,754,910
Series D Convertible Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Conversion of Stock, Shares Converted |  |  | 15,920,450 |  |  |  |  |  |
Series G Convertible Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity Stock Issued During Period Shares New Issues |  |  |  | 64,820 |  |  |  |  |
Proceeds from Issuance of Convertible Preferred Stock |  |  |  | $ 1.0 |  |  |  |  |
Common Class A [Member] |  |  |  |  |  |  |  |  |
Conversion of Stock, Shares Converted | 15,244,490 |  |  |  |  |  |  |  |
Convertible Preferred Stock, Shares Issued upon Conversion |  |  |  |  |  |  |  | 223,033,725 |
Treasury Stock, Common, Shares | 2,250,000 |  | 2,250,000 |  | 2,250,000 |  |  |  | 2,250,000
Common stock shares authorized | 1,000,754,910 |  | 1,000,754,910 |  | 1,000,754,910 |  |  |  | 530,136,050
Common Class A [Member] | Subsequent Event [Member] | Restated Certifiacte Of Incorporation Member [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 |  | 100,000,000 |  | 100,000,000 |  |  |  |
Common Class C [Member] | Subsequent Event [Member] | Restated Certifiacte Of Incorporation Member [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  |  | 100,000,000 |  |
Common Class B [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized | 270,618,860 |  | 270,618,860 |  | 270,618,860 |  |  |  | 170,618,860
Common Class B [Member] | Subsequent Event [Member] | Restated Certifiacte Of Incorporation Member [Member] |  |  |  |  |  |  |  |  |
Common stock shares authorized |  |  |  |  |  |  | 1,250,000,000 |  |
Undesignated Preferred Stock [Member] | Subsequent Event [Member] | Restated Certifiacte Of Incorporation Member [Member] |  |  |  |  |  |  |  |  |
Preferred stock shares authorized |  |  |  |  |  |  | 25,000,000 |  |

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 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=109259400&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=121583591&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=121583591&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=121583591&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=121583591&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=121583591&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=121583591&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=109259400&loc=d3e21475-112644 Reference 4: 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=109259400&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 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=121586364&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_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: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_EventAxis=comp_RestatedCertifiacteOfIncorporationmemberMember
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: |