XML 110 R96.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Employee Savings Plan - Additional Information (Detail) - USD ($) | 2 Months Ended | 10 Months Ended | 12 Months Ended
--- | --- | --- | ---
Dec. 31, 2018 | Oct. 31, 2018 | Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016
Defined Contribution Plan Disclosure [Line Items] |  |  |  |  |
Minimum age to be eligible to defined contribution plan |  |  | 21 years |  |
Maximum contribution by company expressed as percentage of employee pre-tax salary | 10000.00% | 50.00% |  |  |
Company match percent |  |  | 50.00% |  |
Percent of employee contribution |  |  | 6.00% |  |
Company contributions vest at end of two years | 25.00% | 20.00% |  |  |
Company contributions vest at end of three years | 50.00% | 40.00% |  |  |
Company contributions vest at end of four years | 75.00% | 60.00% |  |  |
Company contributions vest at end of five years | 100.00% | 100.00% |  |  |
Company contributions to employee savings plan |  |  | $ 2,540,000 | $ 2,030,000 | $ 1,712,000
Highly Compensated Employee |  |  |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |  |  |
Maximum contribution by company expressed as percentage of employee pre-tax salary |  |  | 25.00% |  |

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

X
- Definition Company contributions vest at end of four years. + References No definition available. + Details
Name: | cgnx_CompanyContributionsVestAtEndOfFourYears
Namespace Prefix: | cgnx_
Data Type: | num: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: | num: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: | num: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
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 70 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
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_DefinedContributionPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
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: | num: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: | num: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: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_TitleOfIndividualAxis=cgnx_HighlyCompensatedEmployeeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |