XML 43 R27.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Business and Basis of Presentation - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Millions |  |  | 1 Months Ended | 3 Months Ended | 6 Months Ended |
--- | --- | --- | --- | --- | --- | ---
Apr. 01, 2021 | Mar. 31, 2021 | Apr. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021 | Dec. 31, 2020
Date of incorporation |  |  |  |  |  | Oct. 04, 2012 |  |
Proceeds from issuance of common stock upon initial public offering, net of offering costs |  |  |  |  |  | $ 0.0 | $ 439.6 |
Conversion of convertible preferred stock to common stock in connection with the initial public offering (in shares) |  |  | 223,000,000 |  |  |  |  |
Stock based compensation expense |  |  |  | $ 59.2 | $ 54.3 | $ 123.0 | 221.8 |
IPO Related Expense |  |  |  |  |  |  |  |
Stock based compensation expense |  | $ 148.5 |  |  |  |  | $ 148.5 |
Additional Paid-in Capital |  |  |  |  |  |  |  |
Conversion of convertible preferred stock to common stock in connection with the initial public offering |  |  | $ 1,400.0 |  |  |  |  |
IPO |  |  |  |  |  |  |  |
Issuance of common stock in connection with the initial public offering, net of offering costs (in shares) | 26,300,000 |  |  |  |  |  |  |
Sale of stock issue price per share (in dollars per share) | $ 18.00 |  |  |  |  |  |  |
Proceeds from issuance of common stock upon initial public offering, net of offering costs | $ 438.7 |  |  |  |  |  |  |
Payments of deferred offering costs | $ 11.0 |  |  |  |  |  |  |
Deferred offering costs |  |  |  |  |  |  |  | $ 0.9

X
- Definition Convertible Preferred Stock Share Issued Upon Conversion. + References No definition available. + Details
Name: | comp_ConvertiblePreferredStockShareIssuedUponConversion
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Convertible Preferred Stock Value Issued Upon Conversion + References No definition available. + Details
Name: | comp_ConvertiblePreferredStockValueIssuedUponConversion
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Date when an entity was incorporated + References No definition available. + Details
Name: | dei_EntityIncorporationDateOfIncorporation
Namespace Prefix: | dei_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Specific incremental costs directly attributable to a proposed or actual offering of securities which are deferred at the end of the reporting period. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 5.A) -URI https://asc.fasb.org/extlink&oid=122040515&loc=d3e105025-122735 + Details
Name: | us-gaap_DeferredOfferingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 https://asc.fasb.org/extlink&oid=126954810&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 cash inflow associated with the amount received from entity's first offering of stock to the public. + 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 https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceInitialPublicOffering
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 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 https://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 https://asc.fasb.org/extlink&oid=126973232&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 https://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 https://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
- Details
Name: | us-gaap_AwardTypeAxis=comp_IpoRelatedExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AdditionalPaidInCapitalMember
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: |