XML 61 R48.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Joint Venture - Additional Information (Detail) - USD ($) $ in Millions |  | 12 Months Ended
--- | --- | ---
Jul. 01, 2021 | Dec. 31, 2021
Schedule of Equity Method Investments [Line Items] |  |
Equity loss |  | $ (1.3)
Origin Point Member |  |
Schedule of Equity Method Investments [Line Items] |  |
Investment |  | 3.7
Equity loss |  | 1.3
Proceeds from equity method investment, distribution |  | $ 0.0
OriginPoint LLC Joint Venture [Member] |  |
Schedule of Equity Method Investments [Line Items] |  |
Consolidated entity investment ownership percentage | 49.90% |
Proceeds from capital contribution of non-controlling interest | $ 5.0 |
OriginPoint LLC Joint Venture [Member] | Guaranteed Rate [Member] |  |
Schedule of Equity Method Investments [Line Items] |  |
Proceeds from capital contribution of non-controlling interest | $ 5.0 |
Ownership percentage of the other partner | 50.10% |

X
- Definition Consolidated entity investment ownership percentage. + References No definition available. + Details
Name: | comp_ConsolidatedEntityInvestmentOwnershipPercentage
Namespace Prefix: | comp_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Ownership percentage of other partner. + References No definition available. + Details
Name: | comp_OwnershipPercentageOfOtherPartner
Namespace Prefix: | comp_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition This element represents the aggregate cost of investments accounted for under the equity method of accounting. + 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.12) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_EquityMethodInvestmentAggregateCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(10)) -URI http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(12)) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 21D -URI http://asc.fasb.org/extlink&oid=123570139&loc=SL94080555-108585 + Details
Name: | us-gaap_EquityMethodInvestmentDividendsOrDistributions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of income (loss) for proportionate share of equity method investee's income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(12)) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(10)) -URI http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(f)) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570 + Details
Name: | us-gaap_IncomeLossFromEquityMethodInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash inflow from a noncontrolling interest. Includes, but is not limited to, purchase of additional shares or other increase in noncontrolling interest ownership. + 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 -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromMinorityShareholders
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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_ScheduleOfEquityMethodInvestmentsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | dei_LegalEntityAxis=comp_OriginPointMemberMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=comp_OriginpointLlcJointVentureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_OwnershipAxis=comp_GuaranteedRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |