XML 78 R64.htm IDEA: XBRL DOCUMENT
v3.20.4

Cash, Cash Equivalents and Investments - Additional Information (Detail) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Cash and Cash Equivalents [Abstract] |  |  |
Cash balance included foreign bank balance | $ 225,853 | $ 123,499 |
Interest Receivable | 1,560 | 2,874 |
Gross realized gains on sale of debt securities | 4,283 | 1,581 | $ 669
Gross realized losses on sale of debt securities | $ 164 | $ 129 | $ 168

X
- Definition Due from foreign banks. + References No definition available. + Details
Name: | cgnx_DueFromForeignBanks
Namespace Prefix: | cgnx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesGrossRealizedGains
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.8) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_InterestReceivable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant