XML 53 R43.htm IDEA: XBRL DOCUMENT
v3.22.1

Cash, Cash Equivalents, and Investments - Summary of Available-for-Sale Investments (Details) $ in Thousands | Apr. 03, 2022 USD ($)
--- | ---
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | $ 649,847
Gross unrealized gains | 80
Gross unrealized losses | (21,532)
Fair value | 628,395
Corporate Bonds |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 512,138
Corporate Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 98,122
Gross unrealized gains | 58
Gross unrealized losses | (408)
Fair value | 97,772
Corporate Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 433,204
Gross unrealized gains | 8
Gross unrealized losses | (18,846)
Fair value | 414,366
Asset-Backed Securities |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 73,295
Asset-Backed Securities | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 37,300
Gross unrealized gains | 12
Gross unrealized losses | (228)
Fair value | 37,084
Asset-Backed Securities | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 37,579
Gross unrealized gains | 0
Gross unrealized losses | (1,368)
Fair value | 36,211
Treasury Bills |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 20,587
Treasury Bills | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 10,247
Gross unrealized gains | 0
Gross unrealized losses | (43)
Fair value | 10,204
Treasury Bills | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 10,592
Gross unrealized gains | 1
Gross unrealized losses | (210)
Fair value | 10,383
Agency Bonds |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 18,635
Agency Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 2,800
Gross unrealized gains | 1
Gross unrealized losses | 0
Fair value | 2,801
Agency Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 16,133
Gross unrealized gains | 0
Gross unrealized losses | (299)
Fair value | 15,834
Sovereign Bonds |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 2,007
Sovereign Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 2,130
Gross unrealized gains | 0
Gross unrealized losses | (123)
Fair value | 2,007
Municipal Bonds |
Debt Securities, Available-for-sale [Line Items] |
Fair value | 1,733
Municipal Bonds | Short-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 1,105
Gross unrealized gains | 0
Gross unrealized losses | 0
Fair value | 1,105
Municipal Bonds | Long-Term Investments |
Debt Securities, Available-for-sale [Line Items] |
Amortized cost | 635
Gross unrealized gains | 0
Gross unrealized losses | (7)
Fair value | $ 628

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=123581744&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=123581744&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=123581744&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=124258926&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 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 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 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=124258926&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
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=us-gaap_CorporateBondSecuritiesMember
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_InvestmentTypeAxis=cgnx_LongTermInvestmentsMember
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_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=cgnx_AgencyBondsMember
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: |