XML 79 R43.htm IDEA: XBRL DOCUMENT
v3.20.1

Cash, Cash Equivalents, and Investments - Summary of Available-for-Sale Investments (Detail) $ in Thousands | Mar. 29, 2020 USD ($)
--- | ---
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | $ 606,390
Gross unrealized gains | 3,736
Gross unrealized losses | (8,048)
Fair value | 602,078
Agency Bonds |
Debt Securities, Available-for-sale [Line Items] |
Gross unrealized losses | (15)
Agency Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 5,930
Gross unrealized gains | 0
Gross unrealized losses | (15)
Fair value | 5,915
Treasury Bills | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 19,328
Gross unrealized gains | 435
Gross unrealized losses | 0
Fair value | 19,763
Treasury Bills | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 187,794
Gross unrealized gains | 2,899
Gross unrealized losses | 0
Fair value | 190,693
Corporate Bonds |
Debt Securities, Available-for-sale [Line Items] |
Gross unrealized losses | (6,381)
Corporate Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 55,404
Gross unrealized gains | 20
Gross unrealized losses | (487)
Fair value | 54,937
Corporate Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 183,646
Gross unrealized gains | 117
Gross unrealized losses | (5,894)
Fair value | 177,869
Asset-Backed Securities |
Debt Securities, Available-for-sale [Line Items] |
Gross unrealized losses | (1,644)
Asset-Backed Securities | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 70,510
Gross unrealized gains | 25
Gross unrealized losses | (579)
Fair value | 69,956
Asset-Backed Securities | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 52,405
Gross unrealized gains | 55
Gross unrealized losses | (1,065)
Fair value | 51,395
Sovereign Bonds |
Debt Securities, Available-for-sale [Line Items] |
Gross unrealized losses | (8)
Sovereign Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 3,485
Gross unrealized gains | 2
Gross unrealized losses | 0
Fair value | 3,487
Sovereign Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 20,944
Gross unrealized gains | 147
Gross unrealized losses | (8)
Fair value | 21,083
Municipal Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 6,944
Gross unrealized gains | 36
Gross unrealized losses | 0
Fair value | $ 6,980

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118939692&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=118939692&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118939692&loc=d3e27161-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=118942338&loc=SL82898722-210454 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt and equity securities categorized neither as held-to-maturity nor trading. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=cgnx_AgencyBondsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=cgnx_LongTermInvestmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_ShortTermInvestmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateBondSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_AssetBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_SovereignDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MunicipalBondsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |