XML 98 R85.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Restructuring Activities and COVID -19 Update - Summary of restructuring costs (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges |  | $ 10.3
Severance [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | $ 6.0 |
Lease Terminaion [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges |  | 4.3
Sales and marketing [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges |  | 5.8
Sales and marketing [Member] | Severance [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 1.5 |
Sales and marketing [Member] | Lease Terminaion [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges |  | $ 4.3
Operations and support [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 2.9 |
Operations and support [Member] | Severance [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 2.9 |
Research and development[Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 0.7 |
Research and development[Member] | Severance [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 0.7 |
General and administrative [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | 0.9 |
General and administrative [Member] | Severance [Member] |  |
Restructuring Cost and Reserve [Line Items] |  |
Restructuring Charges | $ 0.9 |

X
- Definition Amount of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109237686&loc=d3e17752-110868 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 5.P.3) -URI http://asc.fasb.org/extlink&oid=115931487&loc=d3e140864-122747 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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4(b)(1)) -URI http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747 + Details
Name: | us-gaap_RestructuringCharges
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_RestructuringCostAndReserveLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=us-gaap_EmployeeSeveranceMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=us-gaap_ContractTerminationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SellingAndMarketingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=comp_OperationsAndSupportMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_ResearchAndDevelopmentExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GeneralAndAdministrativeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |