XML 64 R51.htm IDEA: XBRL DOCUMENT
v3.21.1

Restructuring Activities and COVID -19 Update - Summary of restructuring costs (Detail) $ in Millions | 3 Months Ended
--- | ---
Mar. 31, 2021 USD ($)
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | $ 6.6
Severance [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 5.4
Lease Termination [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 1.2
Sales and marketing [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 2.7
Sales and marketing [Member] | Severance [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 1.5
Sales and marketing [Member] | Lease Termination [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 1.2
Operations and support [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 2.8
Operations and support [Member] | Severance [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | 2.8
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.4
General and administrative [Member] | Severance [Member] |
Restructuring Cost and Reserve [Line Items] |
Restructuring Charges | $ 0.4

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://fasb.org/us-gaap/role/ref/legacyRef -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 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869 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=121586364&loc=d3e3602-108585 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 420 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4(b)) -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: |