XML 113 R95.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Employee Savings Plan - Additional Information (Detail) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Retirement Benefits [Abstract] |  |  |
Minimum age to be eligible to defined contribution plan | 21 years |  |
Maximum contribution by company expressed as percentage of employee pre-tax salary | 100.00% |  |
Company match percent | 50.00% |  |
Percent of employee contribution | 6.00% |  |
Company contributions vest at end of one year | 25.00% |  |
Company contributions vest at end of two years | 50.00% |  |
Company contributions vest at end of three years | 75.00% |  |
Company contributions vest at end of four years | 100.00% |  |
Company contributions to employee savings plan | $ 3,392,000 | $ 3,284,000 | $ 2,898,000

X
- Definition Company contributions vest at end of four years. + References No definition available. + Details
Name: | cgnx_CompanyContributionsVestAtEndOfFourYears
Namespace Prefix: | cgnx_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Company Contributions Vest At End Of One Year + References No definition available. + Details
Name: | cgnx_CompanyContributionsVestAtEndOfOneYear
Namespace Prefix: | cgnx_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Company contributions vest at end of three years. + References No definition available. + Details
Name: | cgnx_CompanyContributionsVestAtEndOfThreeYears
Namespace Prefix: | cgnx_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Company contributions vest at end of two year. + References No definition available. + Details
Name: | cgnx_CompanyContributionsVestAtEndOfTwoYear
Namespace Prefix: | cgnx_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum age to be eligible to defined contribution plan. + References No definition available. + Details
Name: | cgnx_MinimumAgeToBeEligibleToDefinedContributionPlan
Namespace Prefix: | cgnx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_CompensationAndRetirementDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage employer matches of the employee's percentage contribution matched. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum percentage of employee gross pay the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration