XML 41 R28.htm IDEA: XBRL DOCUMENT
v3.21.1

Business and Basis of Presentation - Additional Information (Detail) $ / shares in Units, $ in Millions |  |  | 3 Months Ended |
--- | --- | --- | --- | ---
Apr. 01, 2021 USD ($) $ / shares shares | Mar. 19, 2021 | Mar. 31, 2021 USD ($) | Dec. 31, 2020 USD ($)
Date of incorporation |  |  | Oct. 04, 2012 |
Stock split ratio common stock |  | 10 |  |
Deferred offering costs |  |  | $ 11.0 | $ 1.8
Restricted Stock Units [Member] | Service Based And Liquidity Event Based [Member] |  |  |  |
Allocated share based compensation |  |  | $ 148.5 |
Subsequent Event [Member] |  |  |  |
Reclassification of convertible preferred stock into common stock | shares | 223,033,725 |  |  |
Subsequent Event [Member] | Additional Paid-in Capital [Member] |  |  |  |
Reclassification of convertible preferred stock into common stock value | $ 1,400.0 |  |  |
Subsequent Event [Member] | IPO [Member] |  |  |  |
Stock shares issued during the period shares | shares | 26,296,438 |  |  |
Sale of stock issue price per share | $ / shares | $ 18.00 |  |  |
Sale of stock net proceeds received on the transaction | $ 449.7 |  |  |
Deferred offering costs | $ 11.0 |  |  |

X
- Definition Reclassification of convertible preferred stock into common stock. + References No definition available. + Details
Name: | comp_ReclassificationOfConvertiblePreferredStockIntoCommonStock
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Reclassification of convertible preferred stock into common stock value. + References No definition available. + Details
Name: | comp_ReclassificationOfConvertiblePreferredStockIntoCommonStockValue
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 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://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.8) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: 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 http://asc.fasb.org/extlink&oid=27011391&loc=d3e105025-122735 + Details
Name: | us-gaap_DeferredOfferingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of cost expensed and capitalized for award under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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=109259400&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 Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | srt_ProductOrServiceAxis=comp_ServiceBasedAndLiquidityEventBasedMember
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: | 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: |