SEC Info  
    Home      Search      My Interests      Help      Sign In      Please Sign In

Cognex Corp – ‘10-Q’ for 6/28/20 – ‘JSON’

On:  Wednesday, 7/29/20, at 4:11pm ET   ·   For:  6/28/20   ·   Accession #:  851205-20-11   ·   File #:  1-34218

Previous ‘10-Q’:  ‘10-Q’ on 4/27/20 for 3/29/20   ·   Next:  ‘10-Q’ on 10/28/20 for 9/27/20   ·   Latest:  ‘10-Q’ on 5/2/24 for 3/31/24

Find Words in Filings emoji
 
  in    Show  and   Hints

  As Of               Filer                 Filing    For·On·As Docs:Size

 7/29/20  Cognex Corp                       10-Q        6/28/20   94:9.6M

Quarterly Report   —   Form 10-Q   —   Sect. 13 / 15(d) – SEA’34
Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 10-Q        Quarterly Report                                    HTML    956K 
 2: EX-31.1     Certification -- §302 - SOA'02                      HTML     30K 
 3: EX-31.2     Certification -- §302 - SOA'02                      HTML     30K 
 4: EX-32.1     Certification -- §906 - SOA'02                      HTML     28K 
 5: EX-32.2     Certification -- §906 - SOA'02                      HTML     28K 
12: R1          Cover Page                                          HTML     76K 
13: R2          Consolidated Statements of Operations               HTML     98K 
14: R3          Consolidated Statements of Comprehensive Income     HTML     58K 
15: R4          Consolidated Statements of Comprehensive Income     HTML     34K 
                (Parenthetical)                                                  
16: R5          Consolidated Balance Sheets                         HTML    123K 
17: R6          Consolidated Balance Sheets (Parenthetical)         HTML     33K 
18: R7          Consolidated Statements of Cash Flows               HTML    115K 
19: R8          Consolidated Statement of Shareholders' Equity      HTML     92K 
20: R9          Consolidated Statement of Shareholders' Equity      HTML     27K 
                (Parenthetical)                                                  
21: R10         Summary of Significant Accounting Policies          HTML     35K 
22: R11         New Pronouncements                                  HTML     38K 
23: R12         Fair Value Measurements                             HTML     61K 
24: R13         Cash, Cash Equivalents, and Investments             HTML    189K 
25: R14         Inventories                                         HTML     36K 
26: R15         Leases                                              HTML     40K 
27: R16         Goodwill (Notes)                                    HTML     31K 
28: R17         Intangible Assets                                   HTML     78K 
29: R18         Warranty Obligations                                HTML     32K 
30: R19         Derivative Instruments                              HTML    108K 
31: R20         Revenue Recognition                                 HTML     81K 
32: R21         Stock-Based Compensation Expense                    HTML    101K 
33: R22         Stock Repurchase Program                            HTML     28K 
34: R23         Taxes                                               HTML     64K 
35: R24         Weighted-Average Shares                             HTML     42K 
36: R25         Restructuring Charges                               HTML     65K 
37: R26         Subsequent Events                                   HTML     27K 
38: R27         Summary of Significant Accounting Policies          HTML     44K 
                (Policies)                                                       
39: R28         Fair Value Measurements (Tables)                    HTML     58K 
40: R29         Cash, Cash Equivalents, and Investments (Tables)    HTML    193K 
41: R30         Inventories (Tables)                                HTML     36K 
42: R31         Leases (Tables)                                     HTML     36K 
43: R32         Goodwill (Tables)                                   HTML     31K 
44: R33         Intangible Assets (Tables)                          HTML     77K 
45: R34         Warranty Obligations (Tables)                       HTML     31K 
46: R35         Derivative Instruments (Tables)                     HTML    114K 
47: R36         Revenue Recognition (Tables)                        HTML     81K 
48: R37         Stock-Based Compensation Expense (Tables)           HTML    100K 
49: R38         Income Taxes (Tables)                               HTML     57K 
50: R39         Weighted-Average Shares (Tables)                    HTML     40K 
51: R40         Restructuring Charges (Tables)                      HTML     65K 
52: R41         Fair Value Measurements - Assets and Liabilities    HTML     65K 
                Measured at Fair Value on a Recurring Basis                      
                (Details)                                                        
53: R42         Fair Value Measurements (Details)                   HTML     59K 
54: R43         Cash, Cash Equivalents, and Investments (Details)   HTML     35K 
55: R44         Cash, Cash Equivalents, and Investments -           HTML     61K 
                Components of Cash, Cash Equivalents, and                        
                Investments (Details)                                            
56: R45         Cash, Cash Equivalents, and Investments - Summary   HTML     68K 
                of Available-for-Sale Investments (Details)                      
57: R46         Cash, Cash Equivalents, and Investments - Gross     HTML     71K 
                Unrealized Losses and Fair Values for                            
                Available-for-Sale Investments (Details)                         
58: R47         Cash, Cash Equivalents, and Investments Cash, Cash  HTML     38K 
                Equivalents, and Investments - Schedule of                       
                Allowance for Credit Loss Activity (Details)                     
59: R48         Cash, Cash Equivalents, and Investments -           HTML     60K 
                Effective Maturity Dates of Available-for-Sale                   
                Investments (Details)                                            
60: R49         Inventories - Schedule of Inventories (Details)     HTML     34K 
61: R50         Inventories - Narrative (Details)                   HTML     26K 
62: R51         Leases - Narrative (Details)                        HTML     52K 
63: R52         Leases - Future Minimum Lease Payment Obligations   HTML     41K 
                Under Operating Leases (Details)                                 
64: R53         Goodwill (Details)                                  HTML     29K 
65: R54         Intangible Assets (Details)                         HTML     99K 
66: R55         Warranty Obligations - Changes in Warranty          HTML     32K 
                Obligations (Detail)                                             
67: R56         Derivative Instruments (Details)                    HTML     28K 
68: R57         Derivative Instruments - Outstanding Forward        HTML     58K 
                Contracts Table (Details)                                        
69: R58         Derivative Instruments - Schedule of Derivative     HTML     36K 
                Instruments in Statement of Financial Position,                  
                Fair Value (Details)                                             
70: R59         Derivative Instruments - Offsetting Assets          HTML     41K 
                (Details)                                                        
71: R60         Derivative Instruments - Derivative Instruments,    HTML     30K 
                Gain (Loss) (Details)                                            
72: R61         Revenue Recognition - Revenue Disaggregated by      HTML     39K 
                Geography (Details)                                              
73: R62         Revenue Recognition - Revenue Disaggregated by      HTML     35K 
                Products and Services (Details)                                  
74: R63         Revenue Recognition - Additional Information        HTML     29K 
                (Details)                                                        
75: R64         Revenue Recognition - Schedule of Allowance for     HTML     35K 
                Credit Loss (Details)                                            
76: R65         Revenue Recognition - Deferred Revenue Activity     HTML     32K 
                (Details)                                                        
77: R66         Stock-Based Compensation Expense (Details)          HTML     81K 
78: R67         Stock-Based Compensation Expense - Summary of       HTML     75K 
                Stock Option Activity (Details)                                  
79: R68         Stock-Based Compensation Expense -                  HTML     35K 
                Weighted-Average Assumptions Used in Estimating                  
                Fair Values of Stock Options Granted (Details)                   
80: R69         Stock-Based Compensation Expense Stock-Based        HTML     51K 
                Compensation Expense - Schedule of Restricted                    
                Stock Units (Details)                                            
81: R70         Stock-Based Compensation Expense - Schedule of      HTML     35K 
                Employee Service Share-based Compensation,                       
                Allocation of Recognized Period Costs (Details)                  
82: R71         Stock Repurchase Program (Details)                  HTML     41K 
83: R72         Income Taxes - Reconciliation of United States      HTML     48K 
                Federal Statutory Corporate Tax Rate to Company's                
                Effective Tax Rate, or Income Tax Provision                      
                (Details)                                                        
84: R73         Income Taxes (Details)                              HTML     66K 
85: R74         Weighted-Average Shares (Details)                   HTML     35K 
86: R75         Weighted-Average Shares - Calculation of            HTML     36K 
                Weighted-Average Shares (Details)                                
87: R76         Restructuring Charges - Narrative (Details)         HTML     31K 
88: R77         Restructuring Charges - Summary (Details)           HTML     40K 
89: R78         Restructuring Charges - Activity in Restructuring   HTML     51K 
                Reserve (Details)                                                
90: R79         Subsequent Events (Details)                         HTML     28K 
92: XML         IDEA XML File -- Filing Summary                      XML    171K 
11: XML         XBRL Instance -- cgnx-20200628_htm                   XML   2.56M 
91: EXCEL       IDEA Workbook of Financial Reports                  XLSX    108K 
 7: EX-101.CAL  XBRL Calculations -- cgnx-20200628_cal               XML    266K 
 8: EX-101.DEF  XBRL Definitions -- cgnx-20200628_def                XML    585K 
 9: EX-101.LAB  XBRL Labels -- cgnx-20200628_lab                     XML   1.66M 
10: EX-101.PRE  XBRL Presentations -- cgnx-20200628_pre              XML   1.02M 
 6: EX-101.SCH  XBRL Schema -- cgnx-20200628                         XSD    161K 
93: JSON        XBRL Instance as JSON Data -- MetaLinks              411±   614K 
94: ZIP         XBRL Zipped Folder -- 0000851205-20-000011-xbrl      Zip    300K 


‘JSON’   —   XBRL Instance as JSON Data — MetaLinks


This File is an XBRL Instance as JavaScript Object Notation (JSON) Data.



{
"instance":  {
    "cgnx-20200628.htm":  {
        "axisCustom":  0,
        "axisStandard":  22,
        "contextCount":  216,
        "dts":  {
            "calculationLink":  {
                "local":  [
                    "cgnx-20200628_cal.xml"
                    ]
                },
            "definitionLink":  {
                "local":  [
                    "cgnx-20200628_def.xml"
                    ],
                "remote":  [
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-eedm-def-2020-01-31.xml",
                    "http://xbrl.fasb.org/srt/2020/elts/srt-eedm1-def-2020-01-31.xml"
                    ]
                },
            "inline":  {
                "local":  [
                    "cgnx-20200628.htm"
                    ]
                },
            "labelLink":  {
                "local":  [
                    "cgnx-20200628_lab.xml"
                    ],
                "remote":  [
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-doc-2020-01-31.xml",
                    "https://xbrl.sec.gov/dei/2019/dei-doc-2019-01-31.xml"
                    ]
                },
            "presentationLink":  {
                "local":  [
                    "cgnx-20200628_pre.xml"
                    ]
                },
            "referenceLink":  {
                "remote":  [
                    "https://xbrl.sec.gov/dei/2019/dei-ref-2019-01-31.xml",
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-ref-2020-01-31.xml"
                    ]
                },
            "schema":  {
                "local":  [
                    "cgnx-20200628.xsd"
                    ],
                "remote":  [
                    "http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd",
                    "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
                    "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
                    "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
                    "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
                    "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
                    "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
                    "http://www.xbrl.org/2005/xbrldt-2005.xsd",
                    "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
                    "http://xbrl.fasb.org/srt/2020/elts/srt-types-2020-01-31.xsd",
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd",
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-roles-2020-01-31.xsd",
                    "http://xbrl.fasb.org/srt/2020/elts/srt-roles-2020-01-31.xsd",
                    "https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd",
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-types-2020-01-31.xsd",
                    "https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd",
                    "https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd",
                    "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
                    "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
                    "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
                    "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
                    "http://xbrl.fasb.org/us-gaap/2020/elts/us-parts-codification-2020-01-31.xsd"
                    ]
                }
            },
        "elementCount":  552,
        "entityCount":  1,
        "hidden":  {
            "http://fasb.org/us-gaap/2020-01-31":  28,
            "http://xbrl.sec.gov/dei/2019-01-31":  6,
            "total":  34
            },
        "keyCustom":  32,
        "keyStandard":  378,
        "memberCustom":  16,
        "memberStandard":  55,
        "nsprefix":  "cgnx",
        "nsuri":  "http://www.cognex.com/20200628",
        "report":  {
            "R1":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "dei:DocumentType",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "document",
                "isDefault":  "true",
                "longName":  "0001001 - Document - Cover Page",
                "role":  "http://www.cognex.com/role/CoverPage",
                "shortName":  "Cover Page",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "dei:DocumentType",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R10":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:SignificantAccountingPoliciesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2101101 - Disclosure - Summary of Significant Accounting Policies",
                "role":  "http://www.cognex.com/role/SummaryofSignificantAccountingPolicies",
                "shortName":  "Summary of Significant Accounting Policies",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:SignificantAccountingPoliciesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R11":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2103102 - Disclosure - New Pronouncements",
                "role":  "http://www.cognex.com/role/NewPronouncements",
                "shortName":  "New Pronouncements",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R12":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:FairValueDisclosuresTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2104103 - Disclosure - Fair Value Measurements",
                "role":  "http://www.cognex.com/role/FairValueMeasurements",
                "shortName":  "Fair Value Measurements",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:FairValueDisclosuresTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R13":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InvestmentsInDebtAndEquityInstrumentsCashAndCashEquivalentsUnrealizedAndRealizedGainsLossesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2108104 - Disclosure - Cash, Cash Equivalents, and Investments",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestments",
                "shortName":  "Cash, Cash Equivalents, and Investments",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InvestmentsInDebtAndEquityInstrumentsCashAndCashEquivalentsUnrealizedAndRealizedGainsLossesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R14":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InventoryDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2116105 - Disclosure - Inventories",
                "role":  "http://www.cognex.com/role/Inventories",
                "shortName":  "Inventories",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InventoryDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R15":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeasesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2120106 - Disclosure - Leases",
                "role":  "http://www.cognex.com/role/Leases",
                "shortName":  "Leases",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeasesTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R16":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:GoodwillDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2124107 - Disclosure - Goodwill (Notes)",
                "role":  "http://www.cognex.com/role/GoodwillNotes",
                "shortName":  "Goodwill (Notes)",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:GoodwillDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R17":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:IntangibleAssetsDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2127108 - Disclosure - Intangible Assets",
                "role":  "http://www.cognex.com/role/IntangibleAssets",
                "shortName":  "Intangible Assets",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:IntangibleAssetsDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R18":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ProductWarrantyDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2130109 - Disclosure - Warranty Obligations",
                "role":  "http://www.cognex.com/role/WarrantyObligations",
                "shortName":  "Warranty Obligations",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ProductWarrantyDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R19":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2133110 - Disclosure - Derivative Instruments",
                "role":  "http://www.cognex.com/role/DerivativeInstruments",
                "shortName":  "Derivative Instruments",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R2":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1001002 - Statement - Consolidated Statements of Operations",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                "shortName":  "Consolidated Statements of Operations",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:CostOfGoodsAndServicesSold",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R20":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2140111 - Disclosure - Revenue Recognition",
                "role":  "http://www.cognex.com/role/RevenueRecognition",
                "shortName":  "Revenue Recognition",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R21":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CompensationRelatedCostsGeneralTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2147112 - Disclosure - Stock-Based Compensation Expense",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpense",
                "shortName":  "Stock-Based Compensation Expense",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CompensationRelatedCostsGeneralTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R22":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2154113 - Disclosure - Stock Repurchase Program",
                "role":  "http://www.cognex.com/role/StockRepurchaseProgram",
                "shortName":  "Stock Repurchase Program",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R23":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i2d208142e8254dfc8b1d676c24d255de_D20190101-20190630",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:IncomeTaxDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2156114 - Disclosure - Taxes",
                "role":  "http://www.cognex.com/role/Taxes",
                "shortName":  "Taxes",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i2d208142e8254dfc8b1d676c24d255de_D20190101-20190630",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:IncomeTaxDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R24":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:EarningsPerShareTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2160115 - Disclosure - Weighted-Average Shares",
                "role":  "http://www.cognex.com/role/WeightedAverageShares",
                "shortName":  "Weighted-Average Shares",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:EarningsPerShareTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R25":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedActivitiesDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2164116 - Disclosure - Restructuring Charges",
                "role":  "http://www.cognex.com/role/RestructuringCharges",
                "shortName":  "Restructuring Charges",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedActivitiesDisclosureTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R26":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:SubsequentEventsTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2169117 - Disclosure - Subsequent Events",
                "role":  "http://www.cognex.com/role/SubsequentEvents",
                "shortName":  "Subsequent Events",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:SubsequentEventsTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R27":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CashAndCashEquivalentsPolicyTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2202201 - Disclosure - Summary of Significant Accounting Policies (Policies)",
                "role":  "http://www.cognex.com/role/SummaryofSignificantAccountingPoliciesPolicies",
                "shortName":  "Summary of Significant Accounting Policies (Policies)",
                "subGroupType":  "policies",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CashAndCashEquivalentsPolicyTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R28":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2305301 - Disclosure - Fair Value Measurements (Tables)",
                "role":  "http://www.cognex.com/role/FairValueMeasurementsTables",
                "shortName":  "Fair Value Measurements (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R29":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2309302 - Disclosure - Cash, Cash Equivalents, and Investments (Tables)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables",
                "shortName":  "Cash, Cash Equivalents, and Investments (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R3":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:NetIncomeLoss",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1002003 - Statement - Consolidated Statements of Comprehensive Income",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome",
                "shortName":  "Consolidated Statements of Comprehensive Income",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R30":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2317303 - Disclosure - Inventories (Tables)",
                "role":  "http://www.cognex.com/role/InventoriesTables",
                "shortName":  "Inventories (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R31":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2321304 - Disclosure - Leases (Tables)",
                "role":  "http://www.cognex.com/role/LeasesTables",
                "shortName":  "Leases (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R32":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfGoodwillTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2325305 - Disclosure - Goodwill (Tables)",
                "role":  "http://www.cognex.com/role/GoodwillTables",
                "shortName":  "Goodwill (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfGoodwillTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R33":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2328306 - Disclosure - Intangible Assets (Tables)",
                "role":  "http://www.cognex.com/role/IntangibleAssetsTables",
                "shortName":  "Intangible Assets (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R34":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfProductWarrantyLiabilityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2331307 - Disclosure - Warranty Obligations (Tables)",
                "role":  "http://www.cognex.com/role/WarrantyObligationsTables",
                "shortName":  "Warranty Obligations (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfProductWarrantyLiabilityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R35":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "cgnx:OutstandingForwardContractsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2334308 - Disclosure - Derivative Instruments (Tables)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsTables",
                "shortName":  "Derivative Instruments (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "cgnx:OutstandingForwardContractsTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R36":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromExternalCustomersByGeographicAreasTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2341309 - Disclosure - Revenue Recognition (Tables)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionTables",
                "shortName":  "Revenue Recognition (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromExternalCustomersByGeographicAreasTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R37":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2348310 - Disclosure - Stock-Based Compensation Expense (Tables)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseTables",
                "shortName":  "Stock-Based Compensation Expense (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R38":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2357311 - Disclosure - Income Taxes (Tables)",
                "role":  "http://www.cognex.com/role/IncomeTaxesTables",
                "shortName":  "Income Taxes (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R39":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2361312 - Disclosure - Weighted-Average Shares (Tables)",
                "role":  "http://www.cognex.com/role/WeightedAverageSharesTables",
                "shortName":  "Weighted-Average Shares (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R4":  {
                "firstAnchor":  null,
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1003004 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncomeParenthetical",
                "shortName":  "Consolidated Statements of Comprehensive Income (Parenthetical)",
                "subGroupType":  "parenthetical",
                "uniqueAnchor":  null
                },
            "R40":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfRestructuringAndRelatedCostsTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2365313 - Disclosure - Restructuring Charges (Tables)",
                "role":  "http://www.cognex.com/role/RestructuringChargesTables",
                "shortName":  "Restructuring Charges (Tables)",
                "subGroupType":  "tables",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ScheduleOfRestructuringAndRelatedCostsTextBlock",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R41":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:MoneyMarketFundsAtCarryingValue",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2406401 - Disclosure - Fair Value Measurements - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
                "role":  "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                "shortName":  "Fair Value Measurements - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i9dc01e71d6314fe6884aa8e36895f63e_I20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:MoneyMarketFundsAtCarryingValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R42":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "INF",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2407402 - Disclosure - Fair Value Measurements (Details)",
                "role":  "http://www.cognex.com/role/FairValueMeasurementsDetails",
                "shortName":  "Fair Value Measurements (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "INF",
                    "lang":  "en-US",
                    "name":  "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R43":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSale",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2410403 - Disclosure - Cash, Cash Equivalents, and Investments (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:AvailableForSaleSecuritiesGrossRealizedGains",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R44":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:Cash",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2411404 - Disclosure - Cash, Cash Equivalents, and Investments - Components of Cash, Cash Equivalents, and Investments (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments - Components of Cash, Cash Equivalents, and Investments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:Cash",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R45":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2412405 - Disclosure - Cash, Cash Equivalents, and Investments - Summary of Available-for-Sale Investments (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments - Summary of Available-for-Sale Investments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R46":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2413406 - Disclosure - Cash, Cash Equivalents, and Investments - Gross Unrealized Losses and Fair Values for Available-for-Sale Investments (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments - Gross Unrealized Losses and Fair Values for Available-for-Sale Investments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  null
                },
            "R47":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:DebtSecuritiesAvailableForSaleAllowanceForCreditLossTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2414407 - Disclosure - Cash, Cash Equivalents, and Investments Cash, Cash Equivalents, and Investments - Schedule of Allowance for Credit Loss Activity (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments Cash, Cash Equivalents, and Investments - Schedule of Allowance for Credit Loss Activity (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:DebtSecuritiesAvailableForSaleAllowanceForCreditLossTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R48":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2415408 - Disclosure - Cash, Cash Equivalents, and Investments - Effective Maturity Dates of Available-for-Sale Investments (Details)",
                "role":  "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                "shortName":  "Cash, Cash Equivalents, and Investments - Effective Maturity Dates of Available-for-Sale Investments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R49":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InventoryRawMaterialsNetOfReserves",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2418409 - Disclosure - Inventories - Schedule of Inventories (Details)",
                "role":  "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails",
                "shortName":  "Inventories - Schedule of Inventories (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:InventoryRawMaterialsNetOfReserves",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R5":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CashAndCashEquivalentsAtCarryingValue",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1004005 - Statement - Consolidated Balance Sheets",
                "role":  "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                "shortName":  "Consolidated Balance Sheets",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:AccountsReceivableNetCurrent",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R50":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "cgnx:ExcessAndObsoleteInventoryCharges",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2419410 - Disclosure - Inventories - Narrative (Details)",
                "role":  "http://www.cognex.com/role/InventoriesNarrativeDetails",
                "shortName":  "Inventories - Narrative (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  null
                },
            "R51":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:OperatingLeaseLiability",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2422411 - Disclosure - Leases - Narrative (Details)",
                "role":  "http://www.cognex.com/role/LeasesNarrativeDetails",
                "shortName":  "Leases - Narrative (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:OperatingLeaseLiability",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R52":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2423412 - Disclosure - Leases - Future Minimum Lease Payment Obligations Under Operating Leases (Details)",
                "role":  "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails",
                "shortName":  "Leases - Future Minimum Lease Payment Obligations Under Operating Leases (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R53":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfGoodwillTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:Goodwill",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2426413 - Disclosure - Goodwill (Details)",
                "role":  "http://www.cognex.com/role/GoodwillDetails",
                "shortName":  "Goodwill (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfGoodwillTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:GoodwillForeignCurrencyTranslationGainLoss",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R54":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:FiniteLivedIntangibleAssetsGross",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2429414 - Disclosure - Intangible Assets (Details)",
                "role":  "http://www.cognex.com/role/IntangibleAssetsDetails",
                "shortName":  "Intangible Assets (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:FiniteLivedIntangibleAssetsGross",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R55":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfProductWarrantyLiabilityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ProductWarrantyAccrual",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2432415 - Disclosure - Warranty Obligations - Changes in Warranty Obligations (Detail)",
                "role":  "http://www.cognex.com/role/WarrantyObligationsChangesinWarrantyObligationsDetail",
                "shortName":  "Warranty Obligations - Changes in Warranty Obligations (Detail)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfProductWarrantyLiabilityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ProductWarrantyAccrual",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R56":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i52434fd077654f68a8f6068def6a4808_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:MaximumRemainingMaturityOfForeignCurrencyDerivatives1",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2435416 - Disclosure - Derivative Instruments (Details)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsDetails",
                "shortName":  "Derivative Instruments (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i52434fd077654f68a8f6068def6a4808_D20200101-20200628",
                    "decimals":  null,
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:MaximumRemainingMaturityOfForeignCurrencyDerivatives1",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  null,
                    "xsiNil":  "false"
                    }
                },
            "R57":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:OutstandingForwardContractsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ie5803dec173141819033849ca19c6690_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeAssetNotionalAmount",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2436417 - Disclosure - Derivative Instruments - Outstanding Forward Contracts Table (Details)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails",
                "shortName":  "Derivative Instruments - Outstanding Forward Contracts Table (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "cgnx:OutstandingForwardContractsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ie5803dec173141819033849ca19c6690_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeAssetNotionalAmount",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R58":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:OffsettingAssetsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeAssets",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2437418 - Disclosure - Derivative Instruments - Schedule of Derivative Instruments in Statement of Financial Position, Fair Value (Details)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails",
                "shortName":  "Derivative Instruments - Schedule of Derivative Instruments in Statement of Financial Position, Fair Value (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i06aa76c6ba1f4c87b3a8d44c4b2e3844_I20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeAssets",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R59":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:OffsettingAssetsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeFairValueOfDerivativeAsset",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2438419 - Disclosure - Derivative Instruments - Offsetting Assets (Details)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails",
                "shortName":  "Derivative Instruments - Offsetting Assets (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:OffsettingAssetsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeFairValueOfDerivativeAsset",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R6":  {
                "firstAnchor":  null,
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1005006 - Statement - Consolidated Balance Sheets (Parenthetical)",
                "role":  "http://www.cognex.com/role/ConsolidatedBalanceSheetsParenthetical",
                "shortName":  "Consolidated Balance Sheets (Parenthetical)",
                "subGroupType":  "parenthetical",
                "uniqueAnchor":  null
                },
            "R60":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "id0e2a9c3d94042afb732e0872efdfca6_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeGainLossOnDerivativeNet",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2439420 - Disclosure - Derivative Instruments - Derivative Instruments, Gain (Loss) (Details)",
                "role":  "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                "shortName":  "Derivative Instruments - Derivative Instruments, Gain (Loss) (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "id0e2a9c3d94042afb732e0872efdfca6_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DerivativeGainLossOnDerivativeNet",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R61":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2442421 - Disclosure - Revenue Recognition - Revenue Disaggregated by Geography (Details)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails",
                "shortName":  "Revenue Recognition - Revenue Disaggregated by Geography (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:RevenueFromExternalCustomersByGeographicAreasTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ie3fd972f5b0b4967bf88d0e4de64b1e5_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R62":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2443422 - Disclosure - Revenue Recognition - Revenue Disaggregated by Products and Services (Details)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails",
                "shortName":  "Revenue Recognition - Revenue Disaggregated by Products and Services (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50380bb827a94448a6ac013d0bc30e84_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R63":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CapitalizedContractCostGross",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2444423 - Disclosure - Revenue Recognition - Additional Information (Details)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionAdditionalInformationDetails",
                "shortName":  "Revenue Recognition - Additional Information (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:CapitalizedContractCostGross",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R64":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:AccountsReceivableAllowanceForCreditLossTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AllowanceForDoubtfulAccountsReceivable",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2445424 - Disclosure - Revenue Recognition - Schedule of Allowance for Credit Loss (Details)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails",
                "shortName":  "Revenue Recognition - Schedule of Allowance for Credit Loss (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:AccountsReceivableAllowanceForCreditLossTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AllowanceForDoubtfulAccountsReceivable",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R65":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:DeferredRevenueByArrangementDisclosureTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DeferredRevenue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2446425 - Disclosure - Revenue Recognition - Deferred Revenue Activity (Details)",
                "role":  "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails",
                "shortName":  "Revenue Recognition - Deferred Revenue Activity (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:DeferredRevenueByArrangementDisclosureTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:DeferredRevenue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R66":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "2",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usdPerShare",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2449426 - Disclosure - Stock-Based Compensation Expense (Details)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                "shortName":  "Stock-Based Compensation Expense (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "2",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usdPerShare",
                    "xsiNil":  "false"
                    }
                },
            "R67":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2450427 - Disclosure - Stock-Based Compensation Expense - Summary of Stock Option Activity (Details)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails",
                "shortName":  "Stock-Based Compensation Expense - Summary of Stock Option Activity (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    }
                },
            "R68":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2451428 - Disclosure - Stock-Based Compensation Expense - Weighted-Average Assumptions Used in Estimating Fair Values of Stock Options Granted (Details)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedinEstimatingFairValuesofStockOptionsGrantedDetails",
                "shortName":  "Stock-Based Compensation Expense - Weighted-Average Assumptions Used in Estimating Fair Values of Stock Options Granted (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    }
                },
            "R69":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i9e0c96315b424e56924808a79a15e591_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2452429 - Disclosure - Stock-Based Compensation Expense Stock-Based Compensation Expense - Schedule of Restricted Stock Units (Details)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails",
                "shortName":  "Stock-Based Compensation Expense Stock-Based Compensation Expense - Schedule of Restricted Stock Units (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i9e0c96315b424e56924808a79a15e591_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    }
                },
            "R7":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:NetIncomeLoss",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1006007 - Statement - Consolidated Statements of Cash Flows",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                "shortName":  "Consolidated Statements of Cash Flows",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:StockOptionPlanExpense",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R70":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:AllocatedShareBasedCompensationExpense",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2453430 - Disclosure - Stock-Based Compensation Expense - Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs (Details)",
                "role":  "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails",
                "shortName":  "Stock-Based Compensation Expense - Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i06a9f689529d44ea9723e6cc0ac766fa_D20200330-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:AllocatedShareBasedCompensationExpense",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R71":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "if2ca316ec02e481498b0cbcf89252fe1_I20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2455431 - Disclosure - Stock Repurchase Program (Details)",
                "role":  "http://www.cognex.com/role/StockRepurchaseProgramDetails",
                "shortName":  "Stock Repurchase Program (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i979d000c5483415184aa8b9629ee1c46_I20181029",
                    "decimals":  "INF",
                    "lang":  "en-US",
                    "name":  "us-gaap:StockRepurchaseProgramAuthorizedAmount1",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R72":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "INF",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
                    "reportCount":  1,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2458432 - Disclosure - Income Taxes - Reconciliation of United States Federal Statutory Corporate Tax Rate to Company's Effective Tax Rate, or Income Tax Provision (Details)",
                "role":  "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails",
                "shortName":  "Income Taxes - Reconciliation of United States Federal Statutory Corporate Tax Rate to Company's Effective Tax Rate, or Income Tax Provision (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "2",
                    "lang":  "en-US",
                    "name":  "us-gaap:EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    }
                },
            "R73":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "INF",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
                    "reportCount":  1,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2459433 - Disclosure - Income Taxes (Details)",
                "role":  "http://www.cognex.com/role/IncomeTaxesDetails",
                "shortName":  "Income Taxes (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i65e4f52b3f704a2c82c35ab608d31e1d_D20200101-20200628",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "cgnx:IncreaseDecreaseInterestAndPenalties",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R74":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:WeightedAverageNumberDilutedSharesOutstandingAdjustment",
                    "reportCount":  1,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2462434 - Disclosure - Weighted-Average Shares (Details)",
                "role":  "http://www.cognex.com/role/WeightedAverageSharesDetails",
                "shortName":  "Weighted-Average Shares (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i07bda74078784d8590fefad2ccda6876_D20200330-20200628",
                    "decimals":  "INF",
                    "lang":  "en-US",
                    "name":  "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    }
                },
            "R75":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:WeightedAverageNumberOfSharesOutstandingBasic",
                    "reportCount":  1,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2463435 - Disclosure - Weighted-Average Shares - Calculation of Weighted-Average Shares (Details)",
                "role":  "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails",
                "shortName":  "Weighted-Average Shares - Calculation of Weighted-Average Shares (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ia5dfd58e2cc040f1998dc32f8d8d305f_D20200330-20200628",
                    "decimals":  "INF",
                    "lang":  "en-US",
                    "name":  "us-gaap:WeightedAverageNumberBasicSharesOutstandingAdjustmentProForma",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    }
                },
            "R76":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ic537b61975ca4beba7154e52aeb4ef46_I20200526",
                    "decimals":  "2",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2466436 - Disclosure - Restructuring Charges - Narrative (Details)",
                "role":  "http://www.cognex.com/role/RestructuringChargesNarrativeDetails",
                "shortName":  "Restructuring Charges - Narrative (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ic537b61975ca4beba7154e52aeb4ef46_I20200526",
                    "decimals":  "2",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "number",
                    "xsiNil":  "false"
                    }
                },
            "R77":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ic537b61975ca4beba7154e52aeb4ef46_I20200526",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedCostExpectedCost1",
                    "reportCount":  1,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2467437 - Disclosure - Restructuring Charges - Summary (Details)",
                "role":  "http://www.cognex.com/role/RestructuringChargesSummaryDetails",
                "shortName":  "Restructuring Charges - Summary (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "ix:continuation",
                        "div",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ife0e92d165ae475ebc3a85b24bcf6df2_I20200526",
                    "decimals":  "-3",
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringAndRelatedCostExpectedCost1",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R78":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfRestructuringReserveByTypeOfCostTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringReserve",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2468438 - Disclosure - Restructuring Charges - Activity in Restructuring Reserve (Details)",
                "role":  "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                "shortName":  "Restructuring Charges - Activity in Restructuring Reserve (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "us-gaap:ScheduleOfRestructuringReserveByTypeOfCostTextBlock",
                        "ix:continuation",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "i50c300c01cad466888f3adcd2745bef7_I20191231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:RestructuringReserve",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R79":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "id52911d2174e4651aeb38a8ca2dabb70_D20200729-20200729",
                    "decimals":  "INF",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:Dividends",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    },
                "groupType":  "disclosure",
                "isDefault":  "false",
                "longName":  "2470439 - Disclosure - Subsequent Events (Details)",
                "role":  "http://www.cognex.com/role/SubsequentEventsDetails",
                "shortName":  "Subsequent Events (Details)",
                "subGroupType":  "details",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "ix:continuation",
                        "span",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "id52911d2174e4651aeb38a8ca2dabb70_D20200729-20200729",
                    "decimals":  "INF",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:Dividends",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "usd",
                    "xsiNil":  "false"
                    }
                },
            "R8":  {
                "firstAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ib8d6fc9c105641509da02b1704c72686_I20181231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CommonStockSharesIssued",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    },
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1007008 - Statement - Consolidated Statement of Shareholders' Equity",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                "shortName":  "Consolidated Statement of Shareholders' Equity",
                "subGroupType":  "",
                "uniqueAnchor":  {
                    "ancestors":  [
                        "span",
                        "td",
                        "tr",
                        "table",
                        "div",
                        "body",
                        "html"
                        ],
                    "baseRef":  "cgnx-20200628.htm",
                    "contextRef":  "ib8d6fc9c105641509da02b1704c72686_I20181231",
                    "decimals":  "-3",
                    "first":  true,
                    "lang":  "en-US",
                    "name":  "us-gaap:CommonStockSharesIssued",
                    "reportCount":  1,
                    "unique":  true,
                    "unitRef":  "shares",
                    "xsiNil":  "false"
                    }
                },
            "R9":  {
                "firstAnchor":  null,
                "groupType":  "statement",
                "isDefault":  "false",
                "longName":  "1008009 - Statement - Consolidated Statement of Shareholders' Equity (Parenthetical)",
                "role":  "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquityParenthetical",
                "shortName":  "Consolidated Statement of Shareholders' Equity (Parenthetical)",
                "subGroupType":  "parenthetical",
                "uniqueAnchor":  null
                }
            },
        "segmentCount":  72,
        "tag":  {
            "cgnx_AccountsReceivableAllowanceForCreditLossForeignExchangeRateAdjustment":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Accounts Receivable, Allowance For Credit Loss, Foreign Exchange Rate Adjustment",
                            "label":  "Accounts Receivable, Allowance For Credit Loss, Foreign Exchange Rate Adjustment",
                            "terseLabel":  "Foreign exchange rate changes"
                            }
                        }
                    },
                "localname":  "AccountsReceivableAllowanceForCreditLossForeignExchangeRateAdjustment",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_AccruedExpensesMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Accrued expenses.",
                            "label":  "Accrued Expenses [Member]",
                            "terseLabel":  "Accrued Expenses"
                            }
                        }
                    },
                "localname":  "AccruedExpensesMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_AgencyBondsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Agency bond.",
                            "label":  "Agency Bonds [Member]",
                            "terseLabel":  "Agency Bonds"
                            }
                        }
                    },
                "localname":  "AgencyBondsMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_ApplicationSpecificCustomerSolutionsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Application-Specific Customer Solutions [Member]",
                            "label":  "Application-Specific Customer Solutions [Member]",
                            "terseLabel":  "Application-Specific Customer Solutions"
                            }
                        }
                    },
                "localname":  "ApplicationSpecificCustomerSolutionsMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_AsiaExcludingChinaMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Asia, Excluding China [Member]",
                            "label":  "Asia, Excluding China [Member]",
                            "terseLabel":  "Other Asia"
                            }
                        }
                    },
                "localname":  "AsiaExcludingChinaMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterFourYearsBeforeFiveYearsFairValue":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Available-for-sale securities, debt maturities after fourth year but before fifth year, fair value.",
                            "label":  "Available For Sale Securities Debt Maturities After Four Years Before Five Years Fair Value",
                            "terseLabel":  "4-5 years"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtMaturitiesAfterFourYearsBeforeFiveYearsFairValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterOneYearBeforeTwoYearsFairValue":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This item represents the fair value of debt securities which are expected to mature within one year of the balance sheet date and which are categorized neither as held-to-maturity nor trading securities.",
                            "label":  "Available For Sale Securities Debt Maturities After One Year Before Two Years Fair Value",
                            "terseLabel":  "1-2 years"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtMaturitiesAfterOneYearBeforeTwoYearsFairValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterThreeYearsBeforeFourYearsFairValue":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Available-for-sale securities, debt maturities after third year but before fourth year, fair value.",
                            "label":  "Available For Sale Securities Debt Maturities After Three Years Before Four Years Fair Value",
                            "terseLabel":  "3-4 years"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtMaturitiesAfterThreeYearsBeforeFourYearsFairValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_AvailableForSaleSecuritiesDebtMaturitiesAfterTwoYearsBeforeThreeYearsFairValue":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Available-for-sale securities, debt maturities after second year but before third year, fair value.",
                            "label":  "Available For Sale Securities Debt Maturities After Two Years Before Three Years Fair Value",
                            "terseLabel":  "2-3 years"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtMaturitiesAfterTwoYearsBeforeThreeYearsFairValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_CashCashEquivalentsShortTermAndLongTermInvestments":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Cash, cash equivalents, short term and long term investments.",
                            "label":  "Cash Cash Equivalents Short Term And Long Term Investments",
                            "totalLabel":  "Total"
                            }
                        }
                    },
                "localname":  "CashCashEquivalentsShortTermAndLongTermInvestments",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_CashflowshedgesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Cash flows hedges [Abstract]",
                            "label":  "Cash flows hedges [Abstract]",
                            "terseLabel":  "Cash flow hedges:"
                            }
                        }
                    },
                "localname":  "CashflowshedgesAbstract",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "stringItemType"
                },
            "cgnx_CertificateOfDepositFairValueDisclosure":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Certificate Of Deposit, Fair Value Disclosure",
                            "label":  "Certificate Of Deposit, Fair Value Disclosure",
                            "terseLabel":  "Certificate Of Deposit, Fair Value Disclosure"
                            }
                        }
                    },
                "localname":  "CertificateOfDepositFairValueDisclosure",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_ChiaroTechnologiesLLCMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Chiaro Technologies LLC [Member]",
                            "label":  "Chiaro Technologies LLC [Member]",
                            "terseLabel":  "Chiaro Technologies LLC [Member]"
                            }
                        }
                    },
                "localname":  "ChiaroTechnologiesLLCMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Components of cash cash equivalents and investments.",
                            "label":  "Components Of Cash Cash Equivalents And Investments [Table Text Block]",
                            "terseLabel":  "Components of Cash, Cash Equivalents, and Investments"
                            }
                        }
                    },
                "localname":  "ComponentsOfCashCashEquivalentsAndInvestmentsTableTextBlock",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "cgnx_CurrencytranslationadjustmentsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Currency translation adjustments [Abstract]",
                            "label":  "Currency translation adjustments [Abstract]",
                            "terseLabel":  "Foreign currency translation adjustments:"
                            }
                        }
                    },
                "localname":  "CurrencytranslationadjustmentsAbstract",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "stringItemType"
                },
            "cgnx_CustomerContractsAndRelationshipsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Customer Contracts And Relationships [Member]",
                            "label":  "Customer Contracts And Relationships [Member]",
                            "terseLabel":  "Customer relationships"
                            }
                        }
                    },
                "localname":  "CustomerContractsAndRelationshipsMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_DeferredRevenueForeignCurrencyExchangeAdjustment":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Deferred Revenue, Foreign Currency Exchange Adjustment",
                            "label":  "Deferred Revenue, Foreign Currency Exchange Adjustment",
                            "terseLabel":  "Foreign exchange rate changes"
                            }
                        }
                    },
                "localname":  "DeferredRevenueForeignCurrencyExchangeAdjustment",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_DistributionRightsDevelopedTechnologyRightsCustomerContractsAndRelationshipsOtherIntangibleAssetsAndTrademarksMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Distribution Rights, Developed Technology Rights, Customer Contracts And Relationships, Other Intangible Assets, And Trademarks [Member]",
                            "label":  "Distribution Rights, Developed Technology Rights, Customer Contracts And Relationships, Other Intangible Assets, And Trademarks [Member]",
                            "terseLabel":  "Indefinite-lived intangible asset excluding in-process technologies"
                            }
                        }
                    },
                "localname":  "DistributionRightsDevelopedTechnologyRightsCustomerContractsAndRelationshipsOtherIntangibleAssetsAndTrademarksMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_EffectiveIncomeTaxRateReconciliationExcludingDiscreteItemsPercent":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Effective Income Tax Rate Reconciliation, Excluding Discrete Items, Percent",
                            "label":  "Effective Income Tax Rate Reconciliation, Excluding Discrete Items, Percent",
                            "terseLabel":  "Effective tax rate excluding discrete items (as a percent)"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationExcludingDiscreteItemsPercent",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "cgnx_EffectiveIncomeTaxRateReconciliationTaxRateAdjustmentsPercent":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  8.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Effective Income Tax Rate Reconciliation, Tax Rate Adjustments, Percent",
                            "label":  "Effective Income Tax Rate Reconciliation, Tax Rate Adjustments, Percent",
                            "terseLabel":  "Tax rate adjustment",
                            "verboseLabel":  "Tax rate adjustment (as a percent)"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationTaxRateAdjustmentsPercent",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails",
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "cgnx_EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Employee service share based compensation recognized period costs capitalized amount.",
                            "label":  "Employee Service Share Based Compensation Recognized Period Costs Capitalized Amount",
                            "terseLabel":  "Recognized period costs capitalized"
                            }
                        }
                    },
                "localname":  "EmployeeServiceShareBasedCompensationRecognizedPeriodCostsCapitalizedAmount",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_EmployeeServiceSharebasedCompensationNonvestedAwardsCompensationNotyetRecognizedPeriodforRecognition":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Period for Recognition",
                            "label":  "Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Period for Recognition",
                            "terseLabel":  "Weighted average period to be recognized"
                            }
                        }
                    },
                "localname":  "EmployeeServiceSharebasedCompensationNonvestedAwardsCompensationNotyetRecognizedPeriodforRecognition",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "cgnx_EnShapeGmbHMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "EnShape GmbH",
                            "label":  "EnShape GmbH [Member]",
                            "terseLabel":  "EnShape GmbH [Member]"
                            }
                        }
                    },
                "localname":  "EnShapeGmbHMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_EstimatedForfeitureRateForUnvestedOptionsForAllNonSeniorManagement":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Estimated forfeiture rate for unvested options for all non-senior management.",
                            "label":  "Estimated Forfeiture Rate For Unvested Options For All Non Senior Management",
                            "terseLabel":  "Estimated annual forfeiture rate for unvested options for all other employees"
                            }
                        }
                    },
                "localname":  "EstimatedForfeitureRateForUnvestedOptionsForAllNonSeniorManagement",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "cgnx_EstimatedForfeitureRateForUnvestedOptionsForSeniorManagement":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Estimated forfeiture rate for unvested options for senior management.",
                            "label":  "Estimated Forfeiture Rate For Unvested Options For Senior Management",
                            "terseLabel":  "Estimated annual forfeiture rate for unvested options for senior management"
                            }
                        }
                    },
                "localname":  "EstimatedForfeitureRateForUnvestedOptionsForSeniorManagement",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "cgnx_ExcessAndObsoleteInventoryCharges":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  11.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Excess and Obsolete Inventory Charges",
                            "label":  "Excess and Obsolete Inventory Charges",
                            "terseLabel":  "Excess and obsolete inventory charges"
                            }
                        }
                    },
                "localname":  "ExcessAndObsoleteInventoryCharges",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                    "http://www.cognex.com/role/InventoriesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_ExpirationPeriodOfStockOptionPlan":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Expiration period of stock option plan.",
                            "label":  "Expiration Period Of Stock Option Plan",
                            "terseLabel":  "Expiration period from grant day"
                            }
                        }
                    },
                "localname":  "ExpirationPeriodOfStockOptionPlan",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "cgnx_GViVenturesInc.Member":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "GVi Ventures, Inc. [Member]",
                            "label":  "GVi Ventures, Inc. [Member]",
                            "terseLabel":  "GVi Ventures, Inc. [Member]"
                            }
                        }
                    },
                "localname":  "GViVenturesInc.Member",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_GeneralStockOptionPlanMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "General stock option plan.",
                            "label":  "General Stock Option Plan [Member]",
                            "terseLabel":  "General Stock Option Plan"
                            }
                        }
                    },
                "localname":  "GeneralStockOptionPlanMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_IncomeTaxExaminationYearsUnderExaminationOtherEntities":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The tax year(s) being audited in connection with the income tax examination for other entities.",
                            "label":  "Income Tax Examination Years Under Examination Other Entities",
                            "terseLabel":  "Tax years open to examination by various taxing authorities for other entities"
                            }
                        }
                    },
                "localname":  "IncomeTaxExaminationYearsUnderExaminationOtherEntities",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "cgnx_IncreaseDecreaseInterestAndPenalties":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Increase decrease interest and penalties.",
                            "label":  "Increase Decrease Interest And Penalties",
                            "terseLabel":  "Interest and penalties included in reserve"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInterestAndPenalties",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_IncreaseInCompensationExpenseDueToRevisedEstimatedForfeitureRates":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Increase (decrease) in compensation expense due to revised estimated forfeiture rates.",
                            "label":  "Increase In Compensation Expense Due To Revised Estimated Forfeiture Rates",
                            "terseLabel":  "Increase (decrease) to compensation expense"
                            }
                        }
                    },
                "localname":  "IncreaseInCompensationExpenseDueToRevisedEstimatedForfeitureRates",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_LesseeOperatingLeaseLiabilityPaymentsDueYearSix":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Lessee, Operating Lease, Liability, Payments, Due Year Six",
                            "label":  "Lessee, Operating Lease, Liability, Payments, Due Year Six",
                            "terseLabel":  "2025"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueYearSix",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_LesseeOperatingLeaseLiabilityPaymentsDueafterYearSix":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  7.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Lessee, Operating Lease, Liability, Payments, Due after Year Six",
                            "label":  "Lessee, Operating Lease, Liability, Payments, Due after Year Six",
                            "terseLabel":  "Thereafter"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueafterYearSix",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_LiabilityForUncertainTaxPositions":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Liability for uncertain tax positions, total.",
                            "label":  "Liability For Uncertain Tax Positions",
                            "terseLabel":  "Liability for uncertain tax positions"
                            }
                        }
                    },
                "localname":  "LiabilityForUncertainTaxPositions",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_LongTermInvestmentsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Long-term investments.",
                            "label":  "Long Term Investments [Member]",
                            "terseLabel":  "Long-Term Investments"
                            }
                        }
                    },
                "localname":  "LongTermInvestmentsMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_MaximumDecreaseInIncomeTaxExpenseDueToReleaseInReserves":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Maximum decrease in income tax expense due to release in reserves.",
                            "label":  "Maximum Decrease In Income Tax Expense Due To Release In Reserves",
                            "terseLabel":  "Maximum decrease in income tax expense due to release in reserves"
                            }
                        }
                    },
                "localname":  "MaximumDecreaseInIncomeTaxExpenseDueToReleaseInReserves",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_MinimumDecreaseInIncomeTaxExpenseDueToReleaseInReserves":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Minimum decrease in income tax expense due to release in reserves.",
                            "label":  "Minimum Decrease In Income Tax Expense Due To Release In Reserves",
                            "terseLabel":  "Minimum decrease in income tax expense due to release in reserves"
                            }
                        }
                    },
                "localname":  "MinimumDecreaseInIncomeTaxExpenseDueToReleaseInReserves",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_NumberOfGroupsWithinEmployeePopulation":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of groups within employee population.",
                            "label":  "Number Of Groups Within Employee Population",
                            "terseLabel":  "Groups within the employee population"
                            }
                        }
                    },
                "localname":  "NumberOfGroupsWithinEmployeePopulation",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "integerItemType"
                },
            "cgnx_OperatingLeaseRightOfUseAssetCarryingValueOfImpairedAsset":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Operating Lease, Right-Of-Use Asset, Carrying Value Of Impaired Asset",
                            "label":  "Operating Lease, Right-Of-Use Asset, Carrying Value Of Impaired Asset",
                            "terseLabel":  "Carrying value operating lease right-of-use assets impaired"
                            }
                        }
                    },
                "localname":  "OperatingLeaseRightOfUseAssetCarryingValueOfImpairedAsset",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_OutstandingForwardContractsTableTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Outstanding forward contracts table.",
                            "label":  "Outstanding Forward Contracts [Table Text Block]",
                            "terseLabel":  "Outstanding Forward Contracts Table"
                            }
                        }
                    },
                "localname":  "OutstandingForwardContractsTableTextBlock",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "cgnx_RepurchaseProgramMarch2020Member":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Repurchase Program March 2020 [Member]",
                            "label":  "Repurchase Program March 2020 [Member]",
                            "terseLabel":  "Repurchase Program March 2020"
                            }
                        }
                    },
                "localname":  "RepurchaseProgramMarch2020Member",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_RepurchaseProgramOctober2018Member":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Repurchase Program October 2018 [Member]",
                            "label":  "Repurchase Program October 2018 [Member]",
                            "terseLabel":  "Repurchase Program October 2018"
                            }
                        }
                    },
                "localname":  "RepurchaseProgramOctober2018Member",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_SellingGeneralAndAdministrativeMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Selling, general, and administrative.",
                            "label":  "Selling General And Administrative [Member]",
                            "terseLabel":  "Selling, General, and Administrative"
                            }
                        }
                    },
                "localname":  "SellingGeneralAndAdministrativeMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosures1Abstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosures1 [Abstract]",
                            "label":  "Share Based Compensation Arrangement By Share Based Payment Award Options Additional Disclosures1 [Abstract]",
                            "terseLabel":  "Aggregate Intrinsic Value (in\u00a0thousands)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosures1Abstract",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableAggregateIntrinsicValue":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Share based compensation arrangement by share based payment award options exercisable aggregate intrinsic value.",
                            "label":  "Share Based Compensation Arrangement By Share Based Payment Award Options Exercisable Aggregate Intrinsic Value",
                            "terseLabel":  "Exercisable, in dollars"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableAggregateIntrinsicValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedFairValue":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Share based compensation arrangement by share based payment award options vested fair value.",
                            "label":  "Share Based Compensation Arrangement By Share Based Payment Award Options Vested Fair Value",
                            "terseLabel":  "Total fair values of stock options vest"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedFairValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_SharesBasedCompensationArrangementBySharesBasedPaymentAwardOptionsExercisableIntrinsicValue":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Shares based compensation arrangement by shares based payment award options exercisable intrinsic value.",
                            "label":  "Shares Based Compensation Arrangement By Shares Based Payment Award Options Exercisable Intrinsic Value",
                            "terseLabel":  "Total intrinsic value"
                            }
                        }
                    },
                "localname":  "SharesBasedCompensationArrangementBySharesBasedPaymentAwardOptionsExercisableIntrinsicValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_StandardProductsandServicesMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Standard Products and Services [Member]",
                            "label":  "Standard Products and Services [Member]",
                            "terseLabel":  "Standard Products and Services"
                            }
                        }
                    },
                "localname":  "StandardProductsandServicesMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_StockRepurchaseProgramAggregateNumberofSharesRepurchased":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Stock Repurchase Program, Aggregate Number of Shares Repurchased",
                            "label":  "Stock Repurchase Program, Aggregate Number of Shares Repurchased",
                            "terseLabel":  "Share repurchased (in shares)"
                            }
                        }
                    },
                "localname":  "StockRepurchaseProgramAggregateNumberofSharesRepurchased",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "cgnx_StockRepurchaseProgramValue":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Stock Repurchase Program, Value",
                            "label":  "Stock Repurchase Program, Value",
                            "terseLabel":  "Shares repurchased, value"
                            }
                        }
                    },
                "localname":  "StockRepurchaseProgramValue",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "cgnx_SualabMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Sualab",
                            "label":  "Sualab [Member]",
                            "terseLabel":  "Sualab [Member]"
                            }
                        }
                    },
                "localname":  "SualabMember",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "cgnx_TaxyearsopentoexaminationbyInternalRevenueService":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tax years open to examination by Internal Revenue Service",
                            "label":  "Tax years open to examination by Internal Revenue Service",
                            "terseLabel":  "Tax years open to examination by Internal Revenue Service"
                            }
                        }
                    },
                "localname":  "TaxyearsopentoexaminationbyInternalRevenueService",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "cgnx_Unrecognizedtaxbenefitshownasareductiontononcurrentdeferredtaxassets":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Unrecognized tax benefit shown as a reduction to noncurrent deferred tax assets as a result of net operating loss carryforward, a similar tax loss, or a tax credit carryforward.",
                            "label":  "Unrecognized tax benefit shown as a reduction to noncurrent deferred tax assets",
                            "terseLabel":  "Reserve for income taxes classified an noncurrent deferred tax assets"
                            }
                        }
                    },
                "localname":  "Unrecognizedtaxbenefitshownasareductiontononcurrentdeferredtaxassets",
                "nsuri":  "http://www.cognex.com/20200628",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "country_CN":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "CHINA",
                            "terseLabel":  "Greater China"
                            }
                        }
                    },
                "localname":  "CN",
                "nsuri":  "http://xbrl.sec.gov/country/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_AllCurrenciesDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "All Currencies [Domain]",
                            "terseLabel":  "All Currencies [Domain]"
                            }
                        }
                    },
                "localname":  "AllCurrenciesDomain",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_CAD":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Canada, Dollars",
                            "terseLabel":  "Canada, Dollars"
                            }
                        }
                    },
                "localname":  "CAD",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_EUR":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Euro Member Countries, Euro",
                            "terseLabel":  "Euro Member Countries, Euro"
                            }
                        }
                    },
                "localname":  "EUR",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_GBP":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "United Kingdom, Pounds",
                            "terseLabel":  "United Kingdom, Pounds"
                            }
                        }
                    },
                "localname":  "GBP",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_HUF":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Hungary, Forint",
                            "terseLabel":  "Hungary, Forint"
                            }
                        }
                    },
                "localname":  "HUF",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_JPY":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Japan, Yen",
                            "terseLabel":  "Japanese Yen"
                            }
                        }
                    },
                "localname":  "JPY",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_KRW":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Korea (South), Won",
                            "terseLabel":  "Korean Won"
                            }
                        }
                    },
                "localname":  "KRW",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_MXN":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Mexico, Pesos",
                            "terseLabel":  "Mexico, Pesos"
                            }
                        }
                    },
                "localname":  "MXN",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_SGD":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Singapore, Dollars",
                            "terseLabel":  "Singapore, Dollars"
                            }
                        }
                    },
                "localname":  "SGD",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "currency_TWD":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Taiwan, New Dollars",
                            "terseLabel":  "Taiwanese Dollar"
                            }
                        }
                    },
                "localname":  "TWD",
                "nsuri":  "http://xbrl.sec.gov/currency/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "dei_AmendmentFlag":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
                            "label":  "Amendment Flag",
                            "terseLabel":  "Amendment Flag"
                            }
                        }
                    },
                "localname":  "AmendmentFlag",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_CityAreaCode":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Area code of city",
                            "label":  "City Area Code",
                            "terseLabel":  "City Area Code"
                            }
                        }
                    },
                "localname":  "CityAreaCode",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_CoverAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Cover page.",
                            "label":  "Cover [Abstract]",
                            "terseLabel":  "Cover [Abstract]"
                            }
                        }
                    },
                "localname":  "CoverAbstract",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "xbrltype":  "stringItemType"
                },
            "dei_CurrentFiscalYearEndDate":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "End date of current fiscal year in the format --MM-DD.",
                            "label":  "Current Fiscal Year End Date",
                            "terseLabel":  "Current Fiscal Year End Date"
                            }
                        }
                    },
                "localname":  "CurrentFiscalYearEndDate",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "gMonthDayItemType"
                },
            "dei_DocumentFiscalPeriodFocus":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
                            "label":  "Document Fiscal Period Focus",
                            "terseLabel":  "Document Fiscal Period Focus"
                            }
                        }
                    },
                "localname":  "DocumentFiscalPeriodFocus",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "fiscalPeriodItemType"
                },
            "dei_DocumentFiscalYearFocus":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This is focus fiscal year of the document report in CCYY format.  For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus.  Example: 2006.",
                            "label":  "Document Fiscal Year Focus",
                            "terseLabel":  "Document Fiscal Year Focus"
                            }
                        }
                    },
                "localname":  "DocumentFiscalYearFocus",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "gYearItemType"
                },
            "dei_DocumentPeriodEndDate":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The end date of the period reflected on the cover page if a periodic report.  For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date.  The format of the date is CCYY-MM-DD.",
                            "label":  "Document Period End Date",
                            "terseLabel":  "Document Period End Date"
                            }
                        }
                    },
                "localname":  "DocumentPeriodEndDate",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "dateItemType"
                },
            "dei_DocumentQuarterlyReport":  {
                "auth_ref":  [
                    "r595"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Boolean flag that is true only for a form used as an quarterly report.",
                            "label":  "Document Quarterly Report",
                            "terseLabel":  "Document Quarterly Report"
                            }
                        }
                    },
                "localname":  "DocumentQuarterlyReport",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_DocumentTransitionReport":  {
                "auth_ref":  [
                    "r596"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Boolean flag that is true only for a form used as a transition report.",
                            "label":  "Document Transition Report",
                            "terseLabel":  "Document Transition Report"
                            }
                        }
                    },
                "localname":  "DocumentTransitionReport",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_DocumentType":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc).  The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
                            "label":  "Document Type",
                            "terseLabel":  "Document Type"
                            }
                        }
                    },
                "localname":  "DocumentType",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "submissionTypeItemType"
                },
            "dei_EntityAddressAddressLine1":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Address Line 1 such as Attn, Building Name, Street Name",
                            "label":  "Entity Address, Address Line One",
                            "terseLabel":  "Entity Address, Address Line One"
                            }
                        }
                    },
                "localname":  "EntityAddressAddressLine1",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_EntityAddressCityOrTown":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Name of the City or Town",
                            "label":  "Entity Address, City or Town",
                            "terseLabel":  "Entity Address, City or Town"
                            }
                        }
                    },
                "localname":  "EntityAddressCityOrTown",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_EntityAddressPostalZipCode":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Code for the postal or zip code",
                            "label":  "Entity Address, Postal Zip Code",
                            "terseLabel":  "Entity Address, Postal Zip Code"
                            }
                        }
                    },
                "localname":  "EntityAddressPostalZipCode",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_EntityAddressStateOrProvince":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Name of the state or province.",
                            "label":  "Entity Address, State or Province",
                            "terseLabel":  "Entity Address, State or Province"
                            }
                        }
                    },
                "localname":  "EntityAddressStateOrProvince",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "stateOrProvinceItemType"
                },
            "dei_EntityCentralIndexKey":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC.  It is commonly abbreviated as CIK.",
                            "label":  "Entity Central Index Key",
                            "terseLabel":  "Entity Central Index Key"
                            }
                        }
                    },
                "localname":  "EntityCentralIndexKey",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "centralIndexKeyItemType"
                },
            "dei_EntityCommonStockSharesOutstanding":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report.  Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
                            "label":  "Entity Common Stock, Shares Outstanding",
                            "terseLabel":  "Entity Common Stock, Shares Outstanding"
                            }
                        }
                    },
                "localname":  "EntityCommonStockSharesOutstanding",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "dei_EntityCurrentReportingStatus":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days.  This information should be based on the registrant's current or most recent filing containing the related disclosure.",
                            "label":  "Entity Current Reporting Status",
                            "terseLabel":  "Entity Current Reporting Status"
                            }
                        }
                    },
                "localname":  "EntityCurrentReportingStatus",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "yesNoItemType"
                },
            "dei_EntityEmergingGrowthCompany":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Indicate if registrant meets the emerging growth company criteria.",
                            "label":  "Entity Emerging Growth Company",
                            "terseLabel":  "Entity Emerging Growth Company"
                            }
                        }
                    },
                "localname":  "EntityEmergingGrowthCompany",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_EntityFileNumber":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Commission file number.  The field allows up to 17 characters.  The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
                            "label":  "Entity File Number",
                            "terseLabel":  "Entity File Number"
                            }
                        }
                    },
                "localname":  "EntityFileNumber",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "fileNumberItemType"
                },
            "dei_EntityFilerCategory":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Indicate whether the registrant is one of the following:  Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer.  Definitions of these categories are stated in Rule 12b-2 of the Exchange Act.  This information should be based on the registrant's current or most recent filing containing the related disclosure.",
                            "label":  "Entity Filer Category",
                            "terseLabel":  "Entity Filer Category"
                            }
                        }
                    },
                "localname":  "EntityFilerCategory",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "filerCategoryItemType"
                },
            "dei_EntityIncorporationStateCountryCode":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Two-character EDGAR code representing the state or country of incorporation.",
                            "label":  "Entity Incorporation, State or Country Code",
                            "terseLabel":  "Entity Incorporation, State or Country Code"
                            }
                        }
                    },
                "localname":  "EntityIncorporationStateCountryCode",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "edgarStateCountryItemType"
                },
            "dei_EntityInteractiveDataCurrent":  {
                "auth_ref":  [
                    "r598"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
                            "label":  "Entity Interactive Data Current",
                            "terseLabel":  "Entity Interactive Data Current"
                            }
                        }
                    },
                "localname":  "EntityInteractiveDataCurrent",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "yesNoItemType"
                },
            "dei_EntityRegistrantName":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
                            "label":  "Entity Registrant Name",
                            "terseLabel":  "Entity Registrant Name"
                            }
                        }
                    },
                "localname":  "EntityRegistrantName",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_EntityShellCompany":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
                            "label":  "Entity Shell Company",
                            "terseLabel":  "Entity Shell Company"
                            }
                        }
                    },
                "localname":  "EntityShellCompany",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_EntitySmallBusiness":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Indicates that the company is a Smaller Reporting Company (SRC).",
                            "label":  "Entity Small Business",
                            "terseLabel":  "Entity Small Business"
                            }
                        }
                    },
                "localname":  "EntitySmallBusiness",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "booleanItemType"
                },
            "dei_EntityTaxIdentificationNumber":  {
                "auth_ref":  [
                    "r597"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
                            "label":  "Entity Tax Identification Number",
                            "terseLabel":  "Entity Tax Identification Number"
                            }
                        }
                    },
                "localname":  "EntityTaxIdentificationNumber",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "employerIdItemType"
                },
            "dei_LocalPhoneNumber":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Local phone number for entity.",
                            "label":  "Local Phone Number",
                            "terseLabel":  "Local Phone Number"
                            }
                        }
                    },
                "localname":  "LocalPhoneNumber",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "normalizedStringItemType"
                },
            "dei_Security12bTitle":  {
                "auth_ref":  [
                    "r593"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Title of a 12(b) registered security.",
                            "label":  "Title of 12(b) Security",
                            "terseLabel":  "Title of 12(b) Security"
                            }
                        }
                    },
                "localname":  "Security12bTitle",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "securityTitleItemType"
                },
            "dei_SecurityExchangeName":  {
                "auth_ref":  [
                    "r594"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Name of the Exchange on which a security is registered.",
                            "label":  "Security Exchange Name",
                            "terseLabel":  "Security Exchange Name"
                            }
                        }
                    },
                "localname":  "SecurityExchangeName",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "edgarExchangeCodeItemType"
                },
            "dei_TradingSymbol":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Trading symbol of an instrument as listed on an exchange.",
                            "label":  "Trading Symbol",
                            "terseLabel":  "Trading Symbol"
                            }
                        }
                    },
                "localname":  "TradingSymbol",
                "nsuri":  "http://xbrl.sec.gov/dei/2019-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CoverPage"
                    ],
                "xbrltype":  "tradingSymbolItemType"
                },
            "srt_AmericasMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Americas [Member]",
                            "terseLabel":  "Americas"
                            }
                        }
                    },
                "localname":  "AmericasMember",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_CurrencyAxis":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Currency [Axis]",
                            "terseLabel":  "Currency [Axis]"
                            }
                        }
                    },
                "localname":  "CurrencyAxis",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "srt_EuropeMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Europe [Member]",
                            "terseLabel":  "Europe"
                            }
                        }
                    },
                "localname":  "EuropeMember",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_MaximumMember":  {
                "auth_ref":  [
                    "r311",
                    "r313",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r510",
                    "r549",
                    "r552"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Maximum [Member]",
                            "terseLabel":  "Maximum"
                            }
                        }
                    },
                "localname":  "MaximumMember",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_MinimumMember":  {
                "auth_ref":  [
                    "r311",
                    "r313",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r510",
                    "r549",
                    "r552"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Minimum [Member]",
                            "terseLabel":  "Minimum"
                            }
                        }
                    },
                "localname":  "MinimumMember",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_ProductOrServiceAxis":  {
                "auth_ref":  [
                    "r152",
                    "r284",
                    "r287",
                    "r511",
                    "r548",
                    "r550"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Product and Service [Axis]",
                            "terseLabel":  "Product and Service [Axis]"
                            }
                        }
                    },
                "localname":  "ProductOrServiceAxis",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "srt_ProductsAndServicesDomain":  {
                "auth_ref":  [
                    "r152",
                    "r284",
                    "r287",
                    "r511",
                    "r548",
                    "r550"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Product and Service [Domain]",
                            "terseLabel":  "Product and Service [Domain]"
                            }
                        }
                    },
                "localname":  "ProductsAndServicesDomain",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_RangeAxis":  {
                "auth_ref":  [
                    "r301",
                    "r311",
                    "r313",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r510",
                    "r549",
                    "r552"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statistical Measurement [Axis]",
                            "terseLabel":  "Statistical Measurement [Axis]"
                            }
                        }
                    },
                "localname":  "RangeAxis",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "srt_RangeMember":  {
                "auth_ref":  [
                    "r301",
                    "r311",
                    "r313",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r510",
                    "r549",
                    "r552"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statistical Measurement [Domain]",
                            "terseLabel":  "Statistical Measurement [Domain]"
                            }
                        }
                    },
                "localname":  "RangeMember",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_SegmentGeographicalDomain":  {
                "auth_ref":  [
                    "r153",
                    "r154",
                    "r284",
                    "r288",
                    "r551",
                    "r583",
                    "r584",
                    "r585",
                    "r586",
                    "r587",
                    "r588",
                    "r589",
                    "r590"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Geographical [Domain]",
                            "terseLabel":  "Geographical [Domain]"
                            }
                        }
                    },
                "localname":  "SegmentGeographicalDomain",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "srt_StatementGeographicalAxis":  {
                "auth_ref":  [
                    "r153",
                    "r154",
                    "r284",
                    "r288",
                    "r551",
                    "r582",
                    "r583",
                    "r584",
                    "r585",
                    "r586",
                    "r587",
                    "r588",
                    "r589",
                    "r590",
                    "r591"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Geographical [Axis]",
                            "terseLabel":  "Geographical [Axis]"
                            }
                        }
                    },
                "localname":  "StatementGeographicalAxis",
                "nsuri":  "http://fasb.org/srt/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AccountingPoliciesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Accounting Policies [Abstract]",
                            "terseLabel":  "Accounting Policies [Abstract]"
                            }
                        }
                    },
                "localname":  "AccountingPoliciesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AccountsPayableCurrent":  {
                "auth_ref":  [
                    "r35"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_LiabilitiesCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business.  Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
                            "label":  "Accounts Payable, Current",
                            "terseLabel":  "Accounts payable"
                            }
                        }
                    },
                "localname":  "AccountsPayableCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccountsReceivableAllowanceForCreditLossTableTextBlock":  {
                "auth_ref":  [
                    "r201"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of allowance for credit loss on accounts receivable.",
                            "label":  "Accounts Receivable, Allowance for Credit Loss [Table Text Block]",
                            "terseLabel":  "Schedule of Allowance for Credit Loss Activity"
                            }
                        }
                    },
                "localname":  "AccountsReceivableAllowanceForCreditLossTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_AccountsReceivableNetCurrent":  {
                "auth_ref":  [
                    "r3",
                    "r15",
                    "r157",
                    "r158"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
                            "label":  "Accounts Receivable, after Allowance for Credit Loss, Current",
                            "terseLabel":  "Accounts receivable, less reserves of $2,235 and $1,821 in 2020 and 2019, respectively"
                            }
                        }
                    },
                "localname":  "AccountsReceivableNetCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments":  {
                "auth_ref":  [
                    "r90"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings.  This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium.  As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
                            "label":  "Accretion (Amortization) of Discounts and Premiums, Investments",
                            "negatedLabel":  "Amortization of discounts or premiums on investments"
                            }
                        }
                    },
                "localname":  "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccruedIncomeTaxes":  {
                "auth_ref":  [
                    "r11",
                    "r12",
                    "r371",
                    "r522",
                    "r536"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all domestic and foreign income tax obligations due.  This amount is the total of current and noncurrent accrued income taxes.",
                            "label":  "Accrued Income Taxes",
                            "terseLabel":  "Non-current accrued income taxes"
                            }
                        }
                    },
                "localname":  "AccruedIncomeTaxes",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccruedIncomeTaxesCurrent":  {
                "auth_ref":  [
                    "r11",
                    "r522",
                    "r537"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_LiabilitiesCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all currently due domestic and foreign income tax obligations.",
                            "label":  "Accrued Income Taxes, Current",
                            "terseLabel":  "Accrued income taxes"
                            }
                        }
                    },
                "localname":  "AccruedIncomeTaxesCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccruedLiabilitiesCurrent":  {
                "auth_ref":  [
                    "r37"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_LiabilitiesCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered.  Examples include taxes, interest, rent and utilities.  Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
                            "label":  "Accrued Liabilities, Current",
                            "terseLabel":  "Accrued expenses"
                            }
                        }
                    },
                "localname":  "AccruedLiabilitiesCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax":  {
                "auth_ref":  [
                    "r18",
                    "r56",
                    "r58",
                    "r59",
                    "r538",
                    "r560",
                    "r564"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_StockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end.  Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.  Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
                            "label":  "Accumulated Other Comprehensive Income (Loss), Net of Tax",
                            "terseLabel":  "Accumulated other comprehensive loss, net of tax"
                            }
                        }
                    },
                "localname":  "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AccumulatedOtherComprehensiveIncomeMember":  {
                "auth_ref":  [
                    "r55",
                    "r59",
                    "r62",
                    "r100",
                    "r101",
                    "r102",
                    "r409",
                    "r555",
                    "r556"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent.  Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
                            "label":  "AOCI Attributable to Parent [Member]",
                            "terseLabel":  "Accumulated Other Comprehensive Loss"
                            }
                        }
                    },
                "localname":  "AccumulatedOtherComprehensiveIncomeMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_AdditionalPaidInCapitalCommonStock":  {
                "auth_ref":  [
                    "r16"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_StockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions.  Includes only common stock transactions (excludes preferred stock transactions).  May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital.",
                            "label":  "Additional Paid in Capital, Common Stock",
                            "terseLabel":  "Additional paid-in capital"
                            }
                        }
                    },
                "localname":  "AdditionalPaidInCapitalCommonStock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AdditionalPaidInCapitalMember":  {
                "auth_ref":  [
                    "r100",
                    "r101",
                    "r102",
                    "r353",
                    "r354",
                    "r355"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
                            "label":  "Additional Paid-in Capital [Member]",
                            "terseLabel":  "Additional Paid-in Capital"
                            }
                        }
                    },
                "localname":  "AdditionalPaidInCapitalMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis":  {
                "auth_ref":  [
                    "r105",
                    "r106",
                    "r107",
                    "r109",
                    "r187",
                    "r188",
                    "r189",
                    "r190",
                    "r193",
                    "r194",
                    "r349",
                    "r350",
                    "r351",
                    "r352",
                    "r353",
                    "r354",
                    "r355",
                    "r357",
                    "r379",
                    "r380",
                    "r381",
                    "r382",
                    "r513",
                    "r514",
                    "r515",
                    "r553",
                    "r554",
                    "r555",
                    "r556",
                    "r557",
                    "r558",
                    "r559",
                    "r560",
                    "r561",
                    "r562",
                    "r563",
                    "r564"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by amendment to accounting standards.",
                            "label":  "Accounting Standards Update [Axis]",
                            "terseLabel":  "Accounting Standards Update [Axis]"
                            }
                        }
                    },
                "localname":  "AdjustmentsForNewAccountingPronouncementsAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue":  {
                "auth_ref":  [
                    "r314",
                    "r316",
                    "r360",
                    "r361"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
                            "label":  "APIC, Share-based Payment Arrangement, Increase for Cost Recognition",
                            "terseLabel":  "Stock-based compensation expense"
                            }
                        }
                    },
                "localname":  "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
                            "terseLabel":  "Adjustments to reconcile net income to net cash provided by operating activities:"
                            }
                        }
                    },
                "localname":  "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AllocatedShareBasedCompensationExpense":  {
                "auth_ref":  [
                    "r316",
                    "r345",
                    "r359"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of expense for award under share-based payment arrangement.  Excludes amount capitalized.",
                            "label":  "Share-based Payment Arrangement, Expense",
                            "terseLabel":  "Stock-based compensation expense"
                            }
                        }
                    },
                "localname":  "AllocatedShareBasedCompensationExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AllowanceForDoubtfulAccountsReceivable":  {
                "auth_ref":  [
                    "r160",
                    "r195",
                    "r197",
                    "r200"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of allowance for credit loss on accounts receivable.",
                            "label":  "Accounts Receivable, Allowance for Credit Loss",
                            "periodEndLabel":  "Balance as of June 28, 2020",
                            "periodStartLabel":  "Balance as of December 31, 2019"
                            }
                        }
                    },
                "localname":  "AllowanceForDoubtfulAccountsReceivable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent":  {
                "auth_ref":  [
                    "r22",
                    "r160",
                    "r195"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of allowance for credit loss on accounts receivable, classified as current.",
                            "label":  "Accounts Receivable, Allowance for Credit Loss, Current",
                            "terseLabel":  "Reserves for accounts receivable"
                            }
                        }
                    },
                "localname":  "AllowanceForDoubtfulAccountsReceivableCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheetsParenthetical"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Accounts Receivable, Allowance for Credit Loss [Roll Forward]",
                            "terseLabel":  "Accounts Receivable, Allowance for Credit Loss [Roll Forward]"
                            }
                        }
                    },
                "localname":  "AllowanceForDoubtfulAccountsReceivableRollforward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs":  {
                "auth_ref":  [
                    "r199"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of direct write-downs of accounts receivable charged against the allowance.",
                            "label":  "Accounts Receivable, Allowance for Credit Loss, Writeoff",
                            "negatedTerseLabel":  "Write-offs"
                            }
                        }
                    },
                "localname":  "AllowanceForDoubtfulAccountsReceivableWriteOffs",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AmortizationOfIntangibleAssets":  {
                "auth_ref":  [
                    "r89",
                    "r229",
                    "r234"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets.  As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
                            "label":  "Amortization of Intangible Assets",
                            "terseLabel":  "Amortization of intangible assets"
                            }
                        }
                    },
                "localname":  "AmortizationOfIntangibleAssets",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount":  {
                "auth_ref":  [
                    "r128"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
                            "label":  "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
                            "terseLabel":  "Anti-dilutive securities excluded from computation of earnings per share (shares)"
                            }
                        }
                    },
                "localname":  "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis":  {
                "auth_ref":  [
                    "r128"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by type of antidilutive security.",
                            "label":  "Antidilutive Securities [Axis]",
                            "terseLabel":  "Antidilutive Securities [Axis]"
                            }
                        }
                    },
                "localname":  "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AntidilutiveSecuritiesNameDomain":  {
                "auth_ref":  [
                    "r128"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Incremental common shares attributable to securities that were not included in diluted earnings per share (EPS) because to do so would increase EPS amounts or decrease loss per share amounts for the period presented.",
                            "label":  "Antidilutive Securities, Name [Domain]",
                            "terseLabel":  "Antidilutive Securities, Name [Domain]"
                            }
                        }
                    },
                "localname":  "AntidilutiveSecuritiesNameDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_AssetBackedSecuritiesMember":  {
                "auth_ref":  [
                    "r177",
                    "r302"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
                            "label":  "Asset-backed Securities [Member]",
                            "terseLabel":  "Asset-Backed Securities"
                            }
                        }
                    },
                "localname":  "AssetBackedSecuritiesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_Assets":  {
                "auth_ref":  [
                    "r96",
                    "r141",
                    "r144",
                    "r150",
                    "r186",
                    "r406",
                    "r410",
                    "r445",
                    "r521",
                    "r535"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized.  Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
                            "label":  "Assets",
                            "totalLabel":  "Total assets"
                            }
                        }
                    },
                "localname":  "Assets",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AssetsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Assets [Abstract]",
                            "terseLabel":  "ASSETS"
                            }
                        }
                    },
                "localname":  "AssetsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AssetsCurrent":  {
                "auth_ref":  [
                    "r4",
                    "r5",
                    "r43",
                    "r96",
                    "r186",
                    "r406",
                    "r410",
                    "r445"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer).  Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
                            "label":  "Assets, Current",
                            "totalLabel":  "Total current assets"
                            }
                        }
                    },
                "localname":  "AssetsCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AssetsCurrentAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Assets, Current [Abstract]",
                            "terseLabel":  "Current assets:"
                            }
                        }
                    },
                "localname":  "AssetsCurrentAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AssetsFairValueDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Assets, Fair Value Disclosure [Abstract]",
                            "terseLabel":  "Assets:"
                            }
                        }
                    },
                "localname":  "AssetsFairValueDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax":  {
                "auth_ref":  [
                    "r171"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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).",
                            "label":  "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax",
                            "terseLabel":  "Gross unrealized gains"
                            }
                        }
                    },
                "localname":  "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax":  {
                "auth_ref":  [
                    "r172"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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).",
                            "label":  "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax",
                            "negatedTerseLabel":  "Gross unrealized losses"
                            }
                        }
                    },
                "localname":  "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis":  {
                "auth_ref":  [
                    "r168",
                    "r206"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
                            "label":  "Debt Securities, Available-for-sale, Amortized Cost",
                            "totalLabel":  "Amortized cost"
                            }
                        }
                    },
                "localname":  "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue":  {
                "auth_ref":  [
                    "r173",
                    "r175",
                    "r532"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_AvailableForSaleSecuritiesDebtSecurities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One",
                            "terseLabel":  "1 year or less"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesDebtSecurities":  {
                "auth_ref":  [
                    "r165",
                    "r169",
                    "r206",
                    "r524"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        },
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
                            "label":  "Debt Securities, Available-for-sale",
                            "terseLabel":  "Financial assets at fair value",
                            "totalLabel":  "Fair value",
                            "verboseLabel":  "Fair value"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtSecurities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent":  {
                "auth_ref":  [
                    "r166",
                    "r206"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "cgnx_CashCashEquivalentsShortTermAndLongTermInvestments",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as current.",
                            "label":  "Debt Securities, Available-for-sale, Current",
                            "terseLabel":  "Current investments, amortized cost of $141,874 and $235,610 in 2020 and 2019, respectively, allowance for expected credit losses of $0 in 2020 and 2019"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtSecuritiesCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent":  {
                "auth_ref":  [
                    "r166",
                    "r206"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as noncurrent.",
                            "label":  "Debt Securities, Available-for-sale, Noncurrent",
                            "terseLabel":  "Long-term investments"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesDebtSecuritiesNoncurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesGrossRealizedGains":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
                            "label":  "Available-for-sale Securities, Gross Realized Gains",
                            "terseLabel":  "Gross realized gains on sale of investments"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesGrossRealizedGains",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
                            "label":  "Available-for-sale Securities, Gross Realized Losses",
                            "terseLabel":  "Gross realized losses on sale of investments"
                            }
                        }
                    },
                "localname":  "AvailableForSaleSecuritiesGrossRealizedLosses",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_AwardTypeAxis":  {
                "auth_ref":  [
                    "r317",
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by type of award under share-based payment arrangement.",
                            "label":  "Award Type [Axis]",
                            "terseLabel":  "Award Type [Axis]"
                            }
                        }
                    },
                "localname":  "AwardTypeAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_BalanceSheetLocationAxis":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by location on balance sheet (statement of financial position).",
                            "label":  "Balance Sheet Location [Axis]",
                            "terseLabel":  "Balance Sheet Location [Axis]"
                            }
                        }
                    },
                "localname":  "BalanceSheetLocationAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_BalanceSheetLocationDomain":  {
                "auth_ref":  [
                    "r420",
                    "r424"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Location in the balance sheet (statement of financial position).",
                            "label":  "Balance Sheet Location [Domain]",
                            "terseLabel":  "Balance Sheet Location [Domain]"
                            }
                        }
                    },
                "localname":  "BalanceSheetLocationDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_BusinessAcquisitionAcquireeDomain":  {
                "auth_ref":  [
                    "r310",
                    "r312"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
                            "label":  "Business Acquisition, Acquiree [Domain]",
                            "terseLabel":  "Business Acquisition, Acquiree [Domain]"
                            }
                        }
                    },
                "localname":  "BusinessAcquisitionAcquireeDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_BusinessAcquisitionAxis":  {
                "auth_ref":  [
                    "r310",
                    "r312",
                    "r394",
                    "r395"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by business combination or series of individually immaterial business combinations.",
                            "label":  "Business Acquisition [Axis]",
                            "terseLabel":  "Business Acquisition [Axis]"
                            }
                        }
                    },
                "localname":  "BusinessAcquisitionAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1":  {
                "auth_ref":  [
                    "r88",
                    "r403"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  13.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in the value of a contingent consideration liability, including, but not limited to, differences arising upon settlement.",
                            "label":  "Business Combination, Contingent Consideration Arrangements, Change in Amount of Contingent Consideration, Liability",
                            "terseLabel":  "Revaluation of contingent consideration"
                            }
                        }
                    },
                "localname":  "BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow":  {
                "auth_ref":  [
                    "r402"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "For contingent consideration arrangements and indemnification assets recognized in connection with a business combination, this element represents an estimate of the low-end of the potential range (undiscounted) of the consideration which may be paid.",
                            "label":  "Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, Low",
                            "terseLabel":  "Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, Low"
                            }
                        }
                    },
                "localname":  "BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueLow",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_BusinessCombinationContingentConsiderationLiability":  {
                "auth_ref":  [
                    "r399",
                    "r400",
                    "r401"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of liability recognized arising from contingent consideration in a business combination.",
                            "label":  "Business Combination, Contingent Consideration, Liability",
                            "terseLabel":  "Contingent consideration liabilities"
                            }
                        }
                    },
                "localname":  "BusinessCombinationContingentConsiderationLiability",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill":  {
                "auth_ref":  [
                    "r396"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of intangible assets, excluding goodwill, acquired at the acquisition date.",
                            "label":  "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Intangible Assets, Other than Goodwill",
                            "terseLabel":  "Intangible assets acquired"
                            }
                        }
                    },
                "localname":  "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CapitalizedContractCostGross":  {
                "auth_ref":  [
                    "r222"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, before accumulated amortization and accumulated impairment loss, of asset recognized from cost incurred to obtain or fulfill contract with customer.",
                            "label":  "Capitalized Contract Cost, Gross",
                            "terseLabel":  "Costs to fulfill contract"
                            }
                        }
                    },
                "localname":  "CapitalizedContractCostGross",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionAdditionalInformationDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_Cash":  {
                "auth_ref":  [
                    "r32",
                    "r565",
                    "r566"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_CashAndCashEquivalentsAtCarryingValue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of currency on hand as well as demand deposits with banks or financial institutions.  Includes other kinds of accounts that have the general characteristics of demand deposits.  Excludes cash and cash equivalents within disposal group and discontinued operation.",
                            "label":  "Cash",
                            "terseLabel":  "Cash"
                            }
                        }
                    },
                "localname":  "Cash",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CashAndCashEquivalentsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Cash and Cash Equivalents [Abstract]",
                            "terseLabel":  "Cash and Cash Equivalents [Abstract]"
                            }
                        }
                    },
                "localname":  "CashAndCashEquivalentsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_CashAndCashEquivalentsAtCarryingValue":  {
                "auth_ref":  [
                    "r1",
                    "r32",
                    "r91"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "cgnx_CashCashEquivalentsShortTermAndLongTermInvestments",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of currency on hand as well as demand deposits with banks or financial institutions.  Includes other kinds of accounts that have the general characteristics of demand deposits.  Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.  Excludes cash and cash equivalents within disposal group and discontinued operation.",
                            "label":  "Cash and Cash Equivalents, at Carrying Value",
                            "terseLabel":  "Cash and cash equivalents",
                            "totalLabel":  "Cash and cash equivalents"
                            }
                        }
                    },
                "localname":  "CashAndCashEquivalentsAtCarryingValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CashAndCashEquivalentsLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Cash and Cash Equivalents [Line Items]",
                            "terseLabel":  "Cash and Cash Equivalents [Line Items]"
                            }
                        }
                    },
                "localname":  "CashAndCashEquivalentsLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_CashAndCashEquivalentsPolicyTextBlock":  {
                "auth_ref":  [
                    "r8",
                    "r92",
                    "r94"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents.  Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value.",
                            "label":  "Cash and Cash Equivalents, Policy [Policy Text Block]",
                            "terseLabel":  "Cash, Cash Equivalents, and Investments"
                            }
                        }
                    },
                "localname":  "CashAndCashEquivalentsPolicyTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SummaryofSignificantAccountingPoliciesPolicies"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents":  {
                "auth_ref":  [
                    "r86",
                    "r91",
                    "r93"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage.  Excludes amount for disposal group and discontinued operations.  Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.  Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
                            "label":  "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
                            "periodEndLabel":  "Cash and cash equivalents at end of period",
                            "periodStartLabel":  "Cash and cash equivalents at beginning of period"
                            }
                        }
                    },
                "localname":  "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect":  {
                "auth_ref":  [
                    "r86",
                    "r452"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change.  Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.  Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
                            "label":  "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
                            "totalLabel":  "Net change in cash and cash equivalents"
                            }
                        }
                    },
                "localname":  "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CertificatesOfDepositMember":  {
                "auth_ref":  [
                    "r534"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Short to medium-term investment available at banks and savings and loan institutions where a customer agrees to lend money to the institution for a certain amount of time and is paid a predetermined rate of interest.  Certificates of deposit (CD) are typically Federal Deposit Insurance Corporation (FDIC) insured.",
                            "label":  "Certificates of Deposit [Member]",
                            "terseLabel":  "Certificate of deposit"
                            }
                        }
                    },
                "localname":  "CertificatesOfDepositMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ClassOfTreasuryStockTable":  {
                "auth_ref":  [
                    "r268",
                    "r269",
                    "r270",
                    "r271"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about treasury stock, including, but not limited to, average cost per share, description of share repurchase program, shares repurchased, shares held for each class of treasury stock.",
                            "label":  "Class of Treasury Stock [Table]",
                            "terseLabel":  "Class of Treasury Stock [Table]"
                            }
                        }
                    },
                "localname":  "ClassOfTreasuryStockTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_CommonStockDividendsPerShareCashPaid":  {
                "auth_ref":  [
                    "r267"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Aggregate dividends paid during the period for each share of common stock outstanding.",
                            "label":  "Common Stock, Dividends, Per Share, Cash Paid",
                            "terseLabel":  "Cash dividends per common share (usd per share)"
                            }
                        }
                    },
                "localname":  "CommonStockDividendsPerShareCashPaid",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_CommonStockMember":  {
                "auth_ref":  [
                    "r100",
                    "r101"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Stock that is subordinate to all other stock of the issuer.",
                            "label":  "Common Stock [Member]",
                            "terseLabel":  "Common Stock"
                            }
                        }
                    },
                "localname":  "CommonStockMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_CommonStockParOrStatedValuePerShare":  {
                "auth_ref":  [
                    "r14"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Face amount or stated value per share of common stock.",
                            "label":  "Common Stock, Par or Stated Value Per Share",
                            "verboseLabel":  "Common stock, par value"
                            }
                        }
                    },
                "localname":  "CommonStockParOrStatedValuePerShare",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheetsParenthetical"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_CommonStockSharesAuthorized":  {
                "auth_ref":  [
                    "r14"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
                            "label":  "Common Stock, Shares Authorized",
                            "terseLabel":  "Common stock, shares authorized"
                            }
                        }
                    },
                "localname":  "CommonStockSharesAuthorized",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheetsParenthetical"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_CommonStockSharesIssued":  {
                "auth_ref":  [
                    "r14"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury).  These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized.  Shares issued include shares outstanding and shares held in the treasury.",
                            "label":  "Common Stock, Shares, Issued",
                            "periodEndLabel":  "Ending Balance (in shares)",
                            "periodStartLabel":  "Beginning Balance (in shares)",
                            "terseLabel":  "Common stock, shares issued"
                            }
                        }
                    },
                "localname":  "CommonStockSharesIssued",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheetsParenthetical",
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_CommonStockValueOutstanding":  {
                "auth_ref":  [
                    "r14"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_StockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Value of all classes of common stock held by shareholders.  May be all or portion of the number of common shares authorized.  These shares exclude common shares repurchased by the entity and held as treasury shares.",
                            "label":  "Common Stock, Value, Outstanding",
                            "terseLabel":  "Common stock, $.002 par value \u2013 Authorized: 300,000 shares in 2020 and 2019, respectively, issued and outstanding: 173,047 and 172,440 shares in 2020 and 2019, respectively"
                            }
                        }
                    },
                "localname":  "CommonStockValueOutstanding",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CompensationRelatedCostsGeneralTextBlock":  {
                "auth_ref":  [
                    "r299",
                    "r300"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for compensation costs, including compensated absences accruals, compensated absences liability, deferred compensation arrangements and income statement compensation items.  Deferred compensation arrangements may include a description of an arrangement with an individual employee, which is generally an employment contract between the entity and a selected officer or key employee containing a promise by the employer to pay certain amounts at designated future dates, usually including a period after retirement, upon compliance with stipulated requirements.  This type of arrangement is distinguished from broader based employee benefit plans as it is usually tailored to the employee.  Disclosure also typically includes the amount of related compensation expense recognized during the reporting period, the number of shares (units) issued during the period under such arrangements, and the carrying amount as of the balance sheet date of the related liability.",
                            "label":  "Compensation Related Costs, General [Text Block]",
                            "terseLabel":  "Stock-Based Compensation Expense"
                            }
                        }
                    },
                "localname":  "CompensationRelatedCostsGeneralTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpense"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ComprehensiveIncomeNetOfTax":  {
                "auth_ref":  [
                    "r65",
                    "r67",
                    "r68",
                    "r71",
                    "r527",
                    "r545"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity.  Excludes changes in equity resulting from investments by owners and distributions to owners.",
                            "label":  "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
                            "totalLabel":  "Total comprehensive income"
                            }
                        }
                    },
                "localname":  "ComprehensiveIncomeNetOfTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ComprehensiveIncomeNetOfTaxAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Comprehensive Income (Loss), Net of Tax, Attributable to Parent [Abstract]",
                            "terseLabel":  "Other comprehensive income, net of tax:"
                            }
                        }
                    },
                "localname":  "ComprehensiveIncomeNetOfTaxAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ContractTerminationMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Termination of a contract associated with exit from or disposal of business activities or restructurings pursuant to a plan.",
                            "label":  "Contract Termination [Member]",
                            "terseLabel":  "Contract termination costs",
                            "verboseLabel":  "Contract Termination Costs"
                            }
                        }
                    },
                "localname":  "ContractTerminationMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ContractWithCustomerLiabilityCurrent":  {
                "auth_ref":  [
                    "r273",
                    "r274",
                    "r285"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_LiabilitiesCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current.",
                            "label":  "Contract with Customer, Liability, Current",
                            "terseLabel":  "Deferred revenue and customer deposits"
                            }
                        }
                    },
                "localname":  "ContractWithCustomerLiabilityCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CorporateBondSecuritiesMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This category includes information about long-term debt securities that are issued by either a domestic or foreign corporate business entity with a date certain promise of repayment and a return to the holder for the time value of money (for example, variable or fixed interest, original issue discount).",
                            "label":  "Corporate Bond Securities [Member]",
                            "terseLabel":  "Corporate Bonds"
                            }
                        }
                    },
                "localname":  "CorporateBondSecuritiesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_CostOfGoodsAndServicesSold":  {
                "auth_ref":  [
                    "r75",
                    "r511"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_GrossProfit",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period.  This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities.",
                            "label":  "Cost of Goods and Services Sold",
                            "terseLabel":  "Cost of revenue"
                            }
                        }
                    },
                "localname":  "CostOfGoodsAndServicesSold",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_CostOfGoodsTotalMember":  {
                "auth_ref":  [
                    "r137"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Cost of product sold and service rendered, when it serves as benchmark in concentration of risk calculation.",
                            "label":  "Cost of Goods and Service Benchmark [Member]",
                            "terseLabel":  "Cost of Revenue"
                            }
                        }
                    },
                "localname":  "CostOfGoodsTotalMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss":  {
                "auth_ref":  [
                    "r170",
                    "r206",
                    "r214",
                    "r217"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
                            "label":  "Debt Securities, Available-for-sale, Allowance for Credit Loss",
                            "periodEndLabel":  "Balance as of June 28, 2020",
                            "periodStartLabel":  "Balance as of December 31, 2019"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossRecovery":  {
                "auth_ref":  [
                    "r216"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase in allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), from recovery.",
                            "label":  "Debt Securities, Available-for-sale, Allowance for Credit Loss, Recovery",
                            "negatedLabel":  "Decreases to the allowance for credit losses",
                            "terseLabel":  "Gross recoveries"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleAllowanceForCreditLossRecovery",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Debt Securities, Available-for-sale, Allowance for Credit Loss [Roll Forward]",
                            "terseLabel":  "Debt Securities, Available-for-sale, Allowance for Credit Loss [Roll Forward]"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleAllowanceForCreditLossRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossTableTextBlock":  {
                "auth_ref":  [
                    "r218"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
                            "label":  "Debt Securities, Available-for-sale, Allowance for Credit Loss [Table Text Block]",
                            "terseLabel":  "Schedule of Allowance for Credit Loss Activity"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleAllowanceForCreditLossTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossWriteoff":  {
                "auth_ref":  [
                    "r215"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of writeoff of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
                            "label":  "Debt Securities, Available-for-sale, Allowance for Credit Loss, Writeoff",
                            "terseLabel":  "Write-offs"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleAllowanceForCreditLossWriteoff",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleChangeInPresentValueExpenseReversal":  {
                "auth_ref":  [
                    "r207",
                    "r213"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of expense (reversal of expense) for expected credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), from change in present value of expected cash flows.",
                            "label":  "Debt Securities, Available-for-sale, Change in Present Value, Expense (Reversal)",
                            "terseLabel":  "Increases to the allowance for credit losses",
                            "verboseLabel":  "Gross credit losses recorded"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleChangeInPresentValueExpenseReversal",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger":  {
                "auth_ref":  [
                    "r182",
                    "r211",
                    "r219"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss.  Includes beneficial interest in securitized financial asset.",
                            "label":  "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
                            "terseLabel":  "Fair value, 12 months or greater"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss":  {
                "auth_ref":  [
                    "r182",
                    "r211"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss.  Includes beneficial interest in securitized financial asset.",
                            "label":  "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
                            "negatedLabel":  "Unrealized losses, 12 months or greater"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months":  {
                "auth_ref":  [
                    "r182",
                    "r211",
                    "r219"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss.  Includes beneficial interest in securitized financial asset.",
                            "label":  "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
                            "terseLabel":  "Fair value, less than 12 months"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss":  {
                "auth_ref":  [
                    "r182",
                    "r211"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss.  Includes beneficial interest in securitized financial asset.",
                            "label":  "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
                            "negatedLabel":  "Unrealized losses, less than 12 months"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition":  {
                "auth_ref":  [
                    "r179",
                    "r208",
                    "r219"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position without allowance for credit loss.",
                            "label":  "Debt Securities, Available-for-sale, Unrealized Loss Position",
                            "totalLabel":  "Total fair value"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss":  {
                "auth_ref":  [
                    "r180",
                    "r209"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss.  Includes beneficial interest in securitized financial asset.",
                            "label":  "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss",
                            "totalLabel":  "Total unrealized losses"
                            }
                        }
                    },
                "localname":  "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredIncomeTaxAssetsNet":  {
                "auth_ref":  [
                    "r364",
                    "r365"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  7.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, with jurisdictional netting.",
                            "label":  "Deferred Income Tax Assets, Net",
                            "terseLabel":  "Deferred income taxes"
                            }
                        }
                    },
                "localname":  "DeferredIncomeTaxAssetsNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredIncomeTaxLiabilitiesNet":  {
                "auth_ref":  [
                    "r364",
                    "r365"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting.",
                            "label":  "Deferred Income Tax Liabilities, Net",
                            "terseLabel":  "Deferred income taxes"
                            }
                        }
                    },
                "localname":  "DeferredIncomeTaxLiabilitiesNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredRevenue":  {
                "auth_ref":  [
                    "r23"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable.",
                            "label":  "Deferred Revenue",
                            "periodEndLabel":  "Balance as of June 28, 2020",
                            "periodStartLabel":  "Balance as of December 31, 2019"
                            }
                        }
                    },
                "localname":  "DeferredRevenue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredRevenueAdditions":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of deferred revenue recognized for transactions arising during the current reporting period.  Deferred revenue is a liability as of the balance sheet date related to a revenue producing activity for which revenue has not yet been recognized.  Generally, an Entity records deferred revenue when it receives consideration from a customer before achieving certain criteria that must be met for revenue to be recognized in conformity with GAAP.",
                            "label":  "Deferred Revenue, Additions",
                            "terseLabel":  "Increases to deferred revenue and customer deposits"
                            }
                        }
                    },
                "localname":  "DeferredRevenueAdditions",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredRevenueByArrangementDisclosureTextBlock":  {
                "auth_ref":  [
                    "r6"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the type of arrangements and the corresponding amounts that comprise the current and noncurrent balance of deferred revenue as of the balance sheet date.",
                            "label":  "Deferred Revenue, by Arrangement, Disclosure [Table Text Block]",
                            "terseLabel":  "Deferred Revenue, by Arrangement, Disclosure"
                            }
                        }
                    },
                "localname":  "DeferredRevenueByArrangementDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_DeferredRevenueRevenueRecognized1":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of revenue recognized that was previously reported as deferred or unearned revenue.",
                            "label":  "Deferred Revenue, Revenue Recognized",
                            "negatedTerseLabel":  "Recognition of revenue"
                            }
                        }
                    },
                "localname":  "DeferredRevenueRevenueRecognized1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments":  {
                "auth_ref":  [
                    "r376",
                    "r377"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from severance costs.",
                            "label":  "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Severance Payments",
                            "terseLabel":  "Credits related to grants cancelled"
                            }
                        }
                    },
                "localname":  "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_Depreciation":  {
                "auth_ref":  [
                    "r89",
                    "r239"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  21.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives.  Includes production and non-production related depreciation.",
                            "label":  "Depreciation",
                            "terseLabel":  "Depreciation of property, plant, and equipment"
                            }
                        }
                    },
                "localname":  "Depreciation",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset":  {
                "auth_ref":  [
                    "r45",
                    "r412"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_DerivativeAssets",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of obligation to return cash collateral under master netting arrangements offset against derivative assets.",
                            "label":  "Derivative Asset, Collateral, Obligation to Return Cash, Offset",
                            "negatedTerseLabel":  "Gross amounts offset"
                            }
                        }
                    },
                "localname":  "DerivativeAssetCollateralObligationToReturnCashOffset",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeAssetNotionalAmount":  {
                "auth_ref":  [
                    "r414",
                    "r415",
                    "r417"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Nominal or face amount used to calculate payments on the derivative asset.",
                            "label":  "Derivative Asset, Notional Amount",
                            "terseLabel":  "Outstanding forward contracts"
                            }
                        }
                    },
                "localname":  "DerivativeAssetNotionalAmount",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeAssets":  {
                "auth_ref":  [
                    "r46",
                    "r49",
                    "r444"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.  Includes assets not subject to a master netting arrangement and not elected to be offset.",
                            "label":  "Derivative Asset",
                            "terseLabel":  "Derivative asset",
                            "totalLabel":  "Net amount of assets presented"
                            }
                        }
                    },
                "localname":  "DerivativeAssets",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeFairValueOfDerivativeAsset":  {
                "auth_ref":  [
                    "r44",
                    "r50",
                    "r423",
                    "r492"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_DerivativeAssets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.  Includes assets elected not to be offset.  Excludes assets not subject to a master netting arrangement.",
                            "label":  "Derivative Asset, Fair Value, Gross Asset",
                            "verboseLabel":  "Gross amounts of recognized assets"
                            }
                        }
                    },
                "localname":  "DerivativeFairValueOfDerivativeAsset",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeFairValueOfDerivativeLiability":  {
                "auth_ref":  [
                    "r44",
                    "r50",
                    "r423",
                    "r492"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_DerivativeLiabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.  Includes liabilities elected not to be offset.  Excludes liabilities not subject to a master netting arrangement.",
                            "label":  "Derivative Liability, Fair Value, Gross Liability",
                            "verboseLabel":  "Gross amounts of recognized liabilities"
                            }
                        }
                    },
                "localname":  "DerivativeFairValueOfDerivativeLiability",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeGainLossOnDerivativeNet":  {
                "auth_ref":  [
                    "r422"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement.",
                            "label":  "Derivative, Gain (Loss) on Derivative, Net",
                            "terseLabel":  "Gains (losses) recognized in current operations"
                            }
                        }
                    },
                "localname":  "DerivativeGainLossOnDerivativeNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
                            "terseLabel":  "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock":  {
                "auth_ref":  [
                    "r434"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
                            "label":  "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
                            "terseLabel":  "Derivative Instruments"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstruments"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Derivative Instruments and Hedging Activities Disclosures [Line Items]",
                            "terseLabel":  "Derivative Instruments and Hedging Activities Disclosures [Line Items]"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about derivatives and hedging activities.",
                            "label":  "Derivative Instruments and Hedging Activities Disclosures [Table]",
                            "terseLabel":  "Derivative Instruments and Hedging Activities Disclosures [Table]"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable":  {
                "auth_ref":  [
                    "r418",
                    "r421",
                    "r426",
                    "r428",
                    "r429",
                    "r432",
                    "r433"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
                            "label":  "Derivative Instruments, Gain (Loss) [Table]",
                            "terseLabel":  "Derivative Instruments, Gain (Loss) [Table]"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeInstrumentsGainLossLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Derivative Instruments, Gain (Loss) [Line Items]",
                            "terseLabel":  "Derivative Instruments, Gain (Loss) [Line Items]"
                            }
                        }
                    },
                "localname":  "DerivativeInstrumentsGainLossLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeLiabilities":  {
                "auth_ref":  [
                    "r46",
                    "r49",
                    "r444"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.  Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
                            "label":  "Derivative Liability",
                            "terseLabel":  "Derivative liability",
                            "totalLabel":  "Net amount of liabilities presented"
                            }
                        }
                    },
                "localname":  "DerivativeLiabilities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset":  {
                "auth_ref":  [
                    "r45",
                    "r412"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_DerivativeLiabilities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of right to receive cash collateral under master netting arrangements offset against derivative liabilities.",
                            "label":  "Derivative Liability, Collateral, Right to Reclaim Cash, Offset",
                            "negatedTerseLabel":  "Gross amounts offset"
                            }
                        }
                    },
                "localname":  "DerivativeLiabilityCollateralRightToReclaimCashOffset",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOffsettingAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DerivativeLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Derivative [Line Items]",
                            "terseLabel":  "Derivative [Line Items]"
                            }
                        }
                    },
                "localname":  "DerivativeLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativeTable":  {
                "auth_ref":  [
                    "r413",
                    "r416",
                    "r417",
                    "r418",
                    "r419",
                    "r425",
                    "r426",
                    "r430",
                    "r431",
                    "r433"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments.  May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
                            "label":  "Derivative [Table]",
                            "terseLabel":  "Derivative [Table]"
                            }
                        }
                    },
                "localname":  "DerivativeTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DerivativesFairValueLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Derivatives, Fair Value [Line Items]",
                            "terseLabel":  "Derivatives, Fair Value [Line Items]"
                            }
                        }
                    },
                "localname":  "DerivativesFairValueLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DevelopedTechnologyRightsMember":  {
                "auth_ref":  [
                    "r398"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Rights to developed technology, which can include the right to develop, use, market, sell, or offer for sale products, compounds, or intellectual property.",
                            "label":  "Developed Technology Rights [Member]",
                            "terseLabel":  "Completed technologies"
                            }
                        }
                    },
                "localname":  "DevelopedTechnologyRightsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_DisaggregationOfRevenueLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Disaggregation of Revenue [Line Items]",
                            "terseLabel":  "Disaggregation of Revenue [Line Items]"
                            }
                        }
                    },
                "localname":  "DisaggregationOfRevenueLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DisaggregationOfRevenueTable":  {
                "auth_ref":  [
                    "r284",
                    "r287",
                    "r288",
                    "r289",
                    "r290",
                    "r291",
                    "r292",
                    "r293"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor.",
                            "label":  "Disaggregation of Revenue [Table]",
                            "terseLabel":  "Disaggregation of Revenue [Table]"
                            }
                        }
                    },
                "localname":  "DisaggregationOfRevenueTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Share-based Payment Arrangement [Abstract]",
                            "terseLabel":  "Share-based Payment Arrangement [Abstract]"
                            }
                        }
                    },
                "localname":  "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_DistributionRightsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Legal rights, generally of a limited duration, to distribute a product or products, often within specific geographic areas or supply channels.",
                            "label":  "Distribution Rights [Member]",
                            "terseLabel":  "Distribution networks"
                            }
                        }
                    },
                "localname":  "DistributionRightsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_Dividends":  {
                "auth_ref":  [
                    "r267",
                    "r533"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of paid and unpaid cash, stock, and paid-in-kind (PIK) dividends declared, for example, but not limited to, common and preferred stock.",
                            "label":  "Dividends",
                            "terseLabel":  "Dividends (in dollars per share)"
                            }
                        }
                    },
                "localname":  "Dividends",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DividendsCash":  {
                "auth_ref":  [
                    "r267",
                    "r533"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of paid and unpaid cash dividends declared for classes of stock, for example, but not limited to, common and preferred.",
                            "label":  "Dividends, Cash",
                            "negatedTerseLabel":  "Payment of dividends"
                            }
                        }
                    },
                "localname":  "DividendsCash",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_DomesticCountryMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Designated tax department of the government that is entitled to levy and collect income taxes from the entity in its country of domicile.",
                            "label":  "Domestic Tax Authority [Member]",
                            "terseLabel":  "Domestic Tax Authority"
                            }
                        }
                    },
                "localname":  "DomesticCountryMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_EarningsPerShareAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Earnings Per Share [Abstract]",
                            "terseLabel":  "Earnings Per Share [Abstract]"
                            }
                        }
                    },
                "localname":  "EarningsPerShareAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EarningsPerShareDiluted":  {
                "auth_ref":  [
                    "r72",
                    "r110",
                    "r111",
                    "r112",
                    "r113",
                    "r114",
                    "r123",
                    "r125",
                    "r126",
                    "r127",
                    "r132",
                    "r133",
                    "r528",
                    "r546"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
                            "label":  "Earnings Per Share, Diluted",
                            "terseLabel":  "Diluted (usd per share)"
                            }
                        }
                    },
                "localname":  "EarningsPerShareDiluted",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_EarningsPerShareDilutedAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Earnings Per Share, Diluted [Abstract]",
                            "terseLabel":  "Net income (loss) per weighted-average common and common-equivalent share:"
                            }
                        }
                    },
                "localname":  "EarningsPerShareDilutedAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EarningsPerShareTextBlock":  {
                "auth_ref":  [
                    "r128",
                    "r130",
                    "r131",
                    "r134"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for earnings per share.",
                            "label":  "Earnings Per Share [Text Block]",
                            "terseLabel":  "Weighted-Average Shares"
                            }
                        }
                    },
                "localname":  "EarningsPerShareTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageShares"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents":  {
                "auth_ref":  [
                    "r452"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies.  Excludes amounts for disposal group and discontinued operations.  Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.  Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
                            "label":  "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
                            "terseLabel":  "Effect of foreign exchange rate changes on cash and cash equivalents"
                            }
                        }
                    },
                "localname":  "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateContinuingOperations":  {
                "auth_ref":  [
                    "r367"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
                            "label":  "Effective Income Tax Rate Reconciliation, Percent",
                            "totalLabel":  "Income tax expense"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateContinuingOperations",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of domestic federal statutory tax rate applicable to pretax income (loss).",
                            "label":  "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
                            "terseLabel":  "Income tax expense (benefit) at U.S. federal statutory corporate tax rate"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails",
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  7.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  -1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the income tax rates.",
                            "label":  "Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Percent",
                            "negatedTerseLabel":  "Discrete tax expense related to tax return filings",
                            "terseLabel":  "Discrete tax expense related to tax return filings (as a percent)"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails",
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to statutory income tax expense (benefit) outside of the country of domicile.",
                            "label":  "Effective Income Tax Rate Reconciliation, Foreign Income Tax Rate Differential, Percent",
                            "negatedLabel":  "Decrease in effective tax rate",
                            "terseLabel":  "Foreign tax rate differential"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails",
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments.",
                            "label":  "Effective Income Tax Rate Reconciliation, Other Adjustments, Percent",
                            "terseLabel":  "Other"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationOtherAdjustments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent":  {
                "auth_ref":  [
                    "r362",
                    "r367"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  -1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to expense for award under share-based payment arrangement.  Excludes expense determined to be nondeductible upon grant or after for award under share-based payment arrangement.",
                            "label":  "Effective Income Tax Rate Reconciliation, Tax Expense (Benefit), Share-based Payment Arrangement, Percent",
                            "negatedTerseLabel":  "Discrete tax benefit related to stock options",
                            "terseLabel":  "Decrease in effective tax rate for difference between deduction for tax purposes and compensation cost recognized from stock option exercises"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails",
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit).",
                            "label":  "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent",
                            "terseLabel":  "State income taxes, net of federal benefit"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits":  {
                "auth_ref":  [
                    "r367",
                    "r388"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
                        "weight":  -1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax credits.  Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits.",
                            "label":  "Effective Income Tax Rate Reconciliation, Tax Credit, Percent",
                            "negatedTerseLabel":  "Tax credit"
                            }
                        }
                    },
                "localname":  "EffectiveIncomeTaxRateReconciliationTaxCredits",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesReconciliationofUnitedStatesFederalStatutoryCorporateTaxRatetoCompanysEffectiveTaxRateorIncomeTaxProvisionDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]",
                            "terseLabel":  "Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]"
                            }
                        }
                    },
                "localname":  "EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized":  {
                "auth_ref":  [
                    "r346"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cost not yet recognized for nonvested award under share-based payment arrangement.",
                            "label":  "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
                            "terseLabel":  "Unrecognized compensation expense"
                            }
                        }
                    },
                "localname":  "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense":  {
                "auth_ref":  [
                    "r345"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of tax benefit for recognition of expense of award under share-based payment arrangement.",
                            "label":  "Share-based Payment Arrangement, Expense, Tax Benefit",
                            "terseLabel":  "Tax benefit from compensation expense"
                            }
                        }
                    },
                "localname":  "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_EmployeeStockOptionMember":  {
                "auth_ref":  [
                    "r343"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time.",
                            "label":  "Share-based Payment Arrangement, Option [Member]",
                            "terseLabel":  "Employee Stock Option"
                            }
                        }
                    },
                "localname":  "EmployeeStockOptionMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Revenue from External Customer [Line Items]",
                            "terseLabel":  "Revenue from External Customer [Line Items]"
                            }
                        }
                    },
                "localname":  "EntityWideInformationRevenueFromExternalCustomerLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EquityAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Equity [Abstract]",
                            "terseLabel":  "Equity [Abstract]"
                            }
                        }
                    },
                "localname":  "EquityAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EquityClassOfTreasuryStockLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Equity, Class of Treasury Stock [Line Items]",
                            "terseLabel":  "Equity, Class of Treasury Stock [Line Items]"
                            }
                        }
                    },
                "localname":  "EquityClassOfTreasuryStockLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_EquityComponentDomain":  {
                "auth_ref":  [
                    "r100",
                    "r101",
                    "r102",
                    "r106",
                    "r115",
                    "r117",
                    "r136",
                    "r190",
                    "r266",
                    "r267",
                    "r353",
                    "r354",
                    "r355",
                    "r381",
                    "r382",
                    "r453",
                    "r454",
                    "r455",
                    "r456",
                    "r457",
                    "r459",
                    "r555",
                    "r556",
                    "r557"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
                            "label":  "Equity Component [Domain]",
                            "terseLabel":  "Equity Component [Domain]"
                            }
                        }
                    },
                "localname":  "EquityComponentDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
                            "terseLabel":  "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
                            }
                        }
                    },
                "localname":  "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable":  {
                "auth_ref":  [
                    "r435",
                    "r436",
                    "r437",
                    "r442"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
                            "label":  "Fair Value, Recurring and Nonrecurring [Table]",
                            "terseLabel":  "Fair Value, Recurring and Nonrecurring [Table]"
                            }
                        }
                    },
                "localname":  "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FairValueByFairValueHierarchyLevelAxis":  {
                "auth_ref":  [
                    "r302",
                    "r303",
                    "r304",
                    "r305",
                    "r306",
                    "r307",
                    "r308",
                    "r309",
                    "r436",
                    "r482",
                    "r483",
                    "r484"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
                            "label":  "Fair Value Hierarchy and NAV [Axis]",
                            "terseLabel":  "Fair Value Hierarchy and NAV [Axis]"
                            }
                        }
                    },
                "localname":  "FairValueByFairValueHierarchyLevelAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FairValueByMeasurementFrequencyAxis":  {
                "auth_ref":  [
                    "r435",
                    "r436",
                    "r438",
                    "r439",
                    "r443"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by measurement frequency.",
                            "label":  "Measurement Frequency [Axis]",
                            "terseLabel":  "Measurement Frequency [Axis]"
                            }
                        }
                    },
                "localname":  "FairValueByMeasurementFrequencyAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FairValueDisclosuresAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Fair Value Disclosures [Abstract]",
                            "terseLabel":  "Fair Value Disclosures [Abstract]"
                            }
                        }
                    },
                "localname":  "FairValueDisclosuresAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FairValueDisclosuresTextBlock":  {
                "auth_ref":  [
                    "r441"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities.  Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
                            "label":  "Fair Value Disclosures [Text Block]",
                            "terseLabel":  "Fair Value Measurements"
                            }
                        }
                    },
                "localname":  "FairValueDisclosuresTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurements"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_FairValueInputsLevel1Member":  {
                "auth_ref":  [
                    "r302",
                    "r303",
                    "r308",
                    "r309",
                    "r436",
                    "r482"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
                            "label":  "Fair Value, Inputs, Level 1 [Member]",
                            "terseLabel":  "Quoted Prices in Active Markets for Identical Assets (Level 1)"
                            }
                        }
                    },
                "localname":  "FairValueInputsLevel1Member",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueInputsLevel2Member":  {
                "auth_ref":  [
                    "r302",
                    "r303",
                    "r308",
                    "r309",
                    "r436",
                    "r483"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
                            "label":  "Fair Value, Inputs, Level 2 [Member]",
                            "terseLabel":  "Significant Other Observable Inputs (Level 2)"
                            }
                        }
                    },
                "localname":  "FairValueInputsLevel2Member",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueInputsLevel3Member":  {
                "auth_ref":  [
                    "r302",
                    "r303",
                    "r304",
                    "r305",
                    "r306",
                    "r307",
                    "r308",
                    "r309",
                    "r436",
                    "r484"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
                            "label":  "Fair Value, Inputs, Level 3 [Member]",
                            "terseLabel":  "Fair Value, Inputs, Level 3"
                            }
                        }
                    },
                "localname":  "FairValueInputsLevel3Member",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock":  {
                "auth_ref":  [
                    "r440",
                    "r442"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability.",
                            "label":  "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
                            "terseLabel":  "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation"
                            }
                        }
                    },
                "localname":  "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_FairValueMeasurementFrequencyDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Measurement frequency.",
                            "label":  "Measurement Frequency [Domain]",
                            "terseLabel":  "Measurement Frequency [Domain]"
                            }
                        }
                    },
                "localname":  "FairValueMeasurementFrequencyDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue":  {
                "auth_ref":  [
                    "r440"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
                            "label":  "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
                            "terseLabel":  "Business Combination, Contingent Consideration, Liability"
                            }
                        }
                    },
                "localname":  "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FairValueMeasurementsFairValueHierarchyDomain":  {
                "auth_ref":  [
                    "r302",
                    "r303",
                    "r304",
                    "r305",
                    "r306",
                    "r307",
                    "r308",
                    "r309",
                    "r482",
                    "r483",
                    "r484"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
                            "label":  "Fair Value Hierarchy and NAV [Domain]",
                            "terseLabel":  "Fair Value Hierarchy and NAV [Domain]"
                            }
                        }
                    },
                "localname":  "FairValueMeasurementsFairValueHierarchyDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValueMeasurementsRecurringMember":  {
                "auth_ref":  [
                    "r441",
                    "r443"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Frequent fair value measurement.  Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
                            "label":  "Fair Value, Recurring [Member]",
                            "terseLabel":  "Fair Value, Measurements, Recurring"
                            }
                        }
                    },
                "localname":  "FairValueMeasurementsRecurringMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable":  {
                "auth_ref":  [
                    "r420",
                    "r425",
                    "r432"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
                            "label":  "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]",
                            "terseLabel":  "Fair Values Derivatives, Balance Sheet Location, by Derivative Contract Type [Table]"
                            }
                        }
                    },
                "localname":  "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FinancialInstrumentAxis":  {
                "auth_ref":  [
                    "r177",
                    "r178",
                    "r196",
                    "r201",
                    "r202",
                    "r203",
                    "r204",
                    "r210",
                    "r212",
                    "r218",
                    "r219",
                    "r479",
                    "r480",
                    "r481",
                    "r482",
                    "r483",
                    "r484",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r491",
                    "r493",
                    "r494",
                    "r495",
                    "r496",
                    "r497",
                    "r498",
                    "r499",
                    "r500",
                    "r501",
                    "r502",
                    "r503",
                    "r504",
                    "r505",
                    "r506",
                    "r507",
                    "r508",
                    "r509"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by type of financial instrument.",
                            "label":  "Financial Instrument [Axis]",
                            "terseLabel":  "Financial Instrument [Axis]"
                            }
                        }
                    },
                "localname":  "FinancialInstrumentAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FinancingReceivableAllowanceForCreditLossWriteoffAfterRecovery":  {
                "auth_ref":  [
                    "r201",
                    "r205"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  7.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, after recovery, of writeoff of financing receivable, charged against allowance for credit loss.",
                            "label":  "Financing Receivable, Allowance for Credit Loss, Writeoff, after Recovery",
                            "terseLabel":  "Credit loss on investments"
                            }
                        }
                    },
                "localname":  "FinancingReceivableAllowanceForCreditLossWriteoffAfterRecovery",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization":  {
                "auth_ref":  [
                    "r233"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails_1":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
                            "label":  "Finite-Lived Intangible Assets, Accumulated Amortization",
                            "terseLabel":  "Accumulated Amortization"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAccumulatedAmortization",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  7.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for asset, excluding financial asset and goodwill, lacking physical substance with finite life expected to be recognized after fifth fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, after Year Five",
                            "verboseLabel":  "Thereafter"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths":  {
                "auth_ref":  [
                    "r235"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in next fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Year One",
                            "terseLabel":  "2021"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in remainder of current fiscal year.",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Remainder of Fiscal Year",
                            "verboseLabel":  "Remainder of fiscal 2020"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive":  {
                "auth_ref":  [
                    "r235"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in fifth fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Year Five",
                            "terseLabel":  "2025"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseYearFive",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour":  {
                "auth_ref":  [
                    "r235"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in fourth fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Year Four",
                            "terseLabel":  "2024"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree":  {
                "auth_ref":  [
                    "r235"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in third fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Year Three",
                            "terseLabel":  "2023"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo":  {
                "auth_ref":  [
                    "r235"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in second fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Finite-Lived Intangible Asset, Expected Amortization, Year Two",
                            "terseLabel":  "2022"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis":  {
                "auth_ref":  [
                    "r230",
                    "r231",
                    "r233",
                    "r236",
                    "r512",
                    "r519"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by major type or class of finite-lived intangible assets.",
                            "label":  "Finite-Lived Intangible Assets by Major Class [Axis]",
                            "terseLabel":  "Finite-Lived Intangible Assets by Major Class [Axis]"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsByMajorClassAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Finite-Lived Intangible Assets, Net, Amortization Expense, Fiscal Year Maturity [Abstract]",
                            "terseLabel":  "Finite-Lived Intangible Assets, Net, Amortization Expense, Fiscal Year Maturity [Abstract]"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsGross":  {
                "auth_ref":  [
                    "r233",
                    "r519"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/IntangibleAssetsDetails_1":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_FiniteLivedIntangibleAssetsNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
                            "label":  "Finite-Lived Intangible Assets, Gross",
                            "terseLabel":  "Gross Carrying Value"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsGross",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Finite-Lived Intangible Assets [Line Items]",
                            "terseLabel":  "Distribution Rights, Developed Technology Rights, Customer Contracts And Relationships, Other Intangible Assets, And Trademarks"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain":  {
                "auth_ref":  [
                    "r230",
                    "r232"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company.",
                            "label":  "Finite-Lived Intangible Assets, Major Class Name [Domain]",
                            "terseLabel":  "Finite-Lived Intangible Assets, Major Class Name [Domain]"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsMajorClassNameDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_FiniteLivedIntangibleAssetsNet":  {
                "auth_ref":  [
                    "r233",
                    "r512"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/IntangibleAssetsDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        },
                    "http://www.cognex.com/role/IntangibleAssetsDetails_1":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
                            "label":  "Finite-Lived Intangible Assets, Net",
                            "terseLabel":  "Intangible assets, net",
                            "totalLabel":  "Net Carrying Value"
                            }
                        }
                    },
                "localname":  "FiniteLivedIntangibleAssetsNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ForeignCountryMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Designated tax departments of governments entitled to levy and collect income taxes from the entity outside the entity's country of domicile.",
                            "label":  "Foreign Tax Authority [Member]",
                            "terseLabel":  "Foreign Tax Authority"
                            }
                        }
                    },
                "localname":  "ForeignCountryMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ForeignCurrencyContractAssetFairValueDisclosure":  {
                "auth_ref":  [
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value portion of asset contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward contracts, and swaps.",
                            "label":  "Foreign Currency Contract, Asset, Fair Value Disclosure",
                            "terseLabel":  "Economic hedge forward contracts"
                            }
                        }
                    },
                "localname":  "ForeignCurrencyContractAssetFairValueDisclosure",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Fair value portion of liability contracts related to the exchange of different currencies, including, but not limited to, foreign currency options, forward (delivery or nondelivery) contracts, and swaps entered into.",
                            "label":  "Foreign Currency Contracts, Liability, Fair Value Disclosure",
                            "terseLabel":  "Economic hedge forward contracts"
                            }
                        }
                    },
                "localname":  "ForeignCurrencyContractsLiabilityFairValueDisclosure",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ForeignCurrencyGainLossMember":  {
                "auth_ref":  [
                    "r427"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption encompassing foreign currency gain (loss).",
                            "label":  "Foreign Currency Gain (Loss) [Member]",
                            "terseLabel":  "Foreign Currency Gain (Loss)"
                            }
                        }
                    },
                "localname":  "ForeignCurrencyGainLossMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ForeignCurrencyTransactionGainLossBeforeTax":  {
                "auth_ref":  [
                    "r446",
                    "r448",
                    "r449",
                    "r451"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount before tax of foreign currency transaction realized and unrealized gain (loss) recognized in the income statement.",
                            "label":  "Foreign Currency Transaction Gain (Loss), before Tax",
                            "terseLabel":  "Foreign currency gain (loss)"
                            }
                        }
                    },
                "localname":  "ForeignCurrencyTransactionGainLossBeforeTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_GainLossOnSaleOfInvestments":  {
                "auth_ref":  [
                    "r89"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The net realized gain (loss) on investments sold during the period, not including gains (losses) on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity, which, for cash flow reporting, is a component of proceeds from investing activities.",
                            "label":  "Gain (Loss) on Sale of Investments",
                            "negatedLabel":  "Realized gain on sale of investments"
                            }
                        }
                    },
                "localname":  "GainLossOnSaleOfInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_Goodwill":  {
                "auth_ref":  [
                    "r223",
                    "r224",
                    "r520"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
                            "label":  "Goodwill",
                            "periodEndLabel":  "Balance as of December 31, 2019",
                            "periodStartLabel":  "Balance as of December 31, 2019",
                            "terseLabel":  "Goodwill"
                            }
                        }
                    },
                "localname":  "Goodwill",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/GoodwillDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Goodwill and Intangible Assets Disclosure [Abstract]",
                            "terseLabel":  "Goodwill and Intangible Assets Disclosure [Abstract]"
                            }
                        }
                    },
                "localname":  "GoodwillAndIntangibleAssetsDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_GoodwillDisclosureTextBlock":  {
                "auth_ref":  [
                    "r228"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for goodwill.",
                            "label":  "Goodwill Disclosure [Text Block]",
                            "terseLabel":  "Goodwill"
                            }
                        }
                    },
                "localname":  "GoodwillDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/GoodwillNotes"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_GoodwillForeignCurrencyTranslationGainLoss":  {
                "auth_ref":  [
                    "r225"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of foreign currency translation gain (loss) which increases (decreases) an asset representing future economic benefits from other assets acquired in a business combination that are not individually identified and separately recognized.",
                            "label":  "Goodwill, Foreign Currency Translation Gain (Loss)",
                            "terseLabel":  "Foreign exchange rate changes"
                            }
                        }
                    },
                "localname":  "GoodwillForeignCurrencyTranslationGainLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/GoodwillDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_GoodwillRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Goodwill [Roll Forward]",
                            "terseLabel":  "Goodwill [Roll Forward]"
                            }
                        }
                    },
                "localname":  "GoodwillRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/GoodwillDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_GrossProfit":  {
                "auth_ref":  [
                    "r74",
                    "r96",
                    "r141",
                    "r143",
                    "r146",
                    "r149",
                    "r151",
                    "r186",
                    "r445"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_OperatingIncomeLoss",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity.",
                            "label":  "Gross Profit",
                            "totalLabel":  "Gross margin"
                            }
                        }
                    },
                "localname":  "GrossProfit",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_HedgingDesignationAxis":  {
                "auth_ref":  [
                    "r418",
                    "r429"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by designation of purpose of derivative instrument.",
                            "label":  "Hedging Designation [Axis]",
                            "terseLabel":  "Hedging Designation [Axis]"
                            }
                        }
                    },
                "localname":  "HedgingDesignationAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_HedgingDesignationDomain":  {
                "auth_ref":  [
                    "r418"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Designation of purpose of derivative instrument.",
                            "label":  "Hedging Designation [Domain]",
                            "terseLabel":  "Hedging Designation [Domain]"
                            }
                        }
                    },
                "localname":  "HedgingDesignationDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill":  {
                "auth_ref":  [
                    "r89",
                    "r237"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_OperatingIncomeLoss",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The amount of impairment loss recognized in the period resulting from the write-down of the carrying amount of an intangible asset (excluding goodwill) to fair value.",
                            "label":  "Impairment of Intangible Assets (Excluding Goodwill)",
                            "terseLabel":  "Intangible asset impairment charges (Note 8)",
                            "verboseLabel":  "Intangible asset impairment charges"
                            }
                        }
                    },
                "localname":  "ImpairmentOfIntangibleAssetsExcludingGoodwill",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InProcessResearchAndDevelopmentMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "In process investigation of new knowledge useful in developing new product or service or new process or technique or improvement to existing product or process, and translation of knowledge into plan or design for new product or process or for improvement to existing product or process.",
                            "label":  "In Process Research and Development [Member]",
                            "terseLabel":  "In-process technologies"
                            }
                        }
                    },
                "localname":  "InProcessResearchAndDevelopmentMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments":  {
                "auth_ref":  [
                    "r98",
                    "r141",
                    "r143",
                    "r146",
                    "r149",
                    "r151"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_NetIncomeLoss",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of income (loss) from continuing operations before deduction of income tax expense (benefit) and income (loss) attributable to noncontrolling interest, and addition of income (loss) from equity method investments.",
                            "label":  "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest",
                            "totalLabel":  "Income (loss) before income tax expense (benefit)"
                            }
                        }
                    },
                "localname":  "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare":  {
                "auth_ref":  [
                    "r69",
                    "r72",
                    "r105",
                    "r110",
                    "r111",
                    "r112",
                    "r113",
                    "r123",
                    "r125",
                    "r126",
                    "r127",
                    "r528",
                    "r542",
                    "r544",
                    "r546"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The amount of net income (loss) derived from continuing operations during the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
                            "label":  "Income (Loss) from Continuing Operations, Per Diluted Share",
                            "terseLabel":  "Basic (usd per share)"
                            }
                        }
                    },
                "localname":  "IncomeLossFromContinuingOperationsPerDilutedShare",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_IncomeStatementAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Income Statement [Abstract]",
                            "terseLabel":  "Income Statement [Abstract]"
                            }
                        }
                    },
                "localname":  "IncomeStatementAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeStatementLocationAxis":  {
                "auth_ref":  [
                    "r241"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by location in the income statement.",
                            "label":  "Income Statement Location [Axis]",
                            "terseLabel":  "Income Statement Location [Axis]"
                            }
                        }
                    },
                "localname":  "IncomeStatementLocationAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeStatementLocationDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Location in the income statement.",
                            "label":  "Income Statement Location [Domain]",
                            "terseLabel":  "Income Statement Location [Domain]"
                            }
                        }
                    },
                "localname":  "IncomeStatementLocationDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_IncomeTaxAuthorityAxis":  {
                "auth_ref":  [
                    "r370"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by tax jurisdiction.",
                            "label":  "Income Tax Authority [Axis]",
                            "terseLabel":  "Income Tax Authority [Axis]"
                            }
                        }
                    },
                "localname":  "IncomeTaxAuthorityAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeTaxAuthorityDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Agency, division or body classification that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes.",
                            "label":  "Income Tax Authority [Domain]",
                            "terseLabel":  "Income Tax Authority [Domain]"
                            }
                        }
                    },
                "localname":  "IncomeTaxAuthorityDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_IncomeTaxAuthorityNameAxis":  {
                "auth_ref":  [
                    "r370"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by name of taxing authority.",
                            "label":  "Income Tax Authority, Name [Axis]",
                            "terseLabel":  "Income Tax Authority, Name [Axis]"
                            }
                        }
                    },
                "localname":  "IncomeTaxAuthorityNameAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeTaxAuthorityNameDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Named agency, division or body that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes.",
                            "label":  "Income Tax Authority, Name [Domain]",
                            "terseLabel":  "Income Tax Authority, Name [Domain]"
                            }
                        }
                    },
                "localname":  "IncomeTaxAuthorityNameDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_IncomeTaxContingencyLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Income Tax Contingency [Line Items]",
                            "terseLabel":  "Income Tax Contingency [Line Items]"
                            }
                        }
                    },
                "localname":  "IncomeTaxContingencyLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeTaxContingencyTable":  {
                "auth_ref":  [
                    "r371",
                    "r372",
                    "r374",
                    "r378"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about tax positions taken in the tax returns filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other income tax contingencies.  Includes, but is not limited to, interest and penalties, reconciliation of unrecognized tax benefits, unrecognized tax benefits that would affect the effective tax rate, tax years that remain subject to examination by tax jurisdictions, and information about positions for which it is reasonably possible that amounts unrecognized will significantly change within 12 months.",
                            "label":  "Income Tax Contingency [Table]",
                            "terseLabel":  "Income Tax Contingency [Table]"
                            }
                        }
                    },
                "localname":  "IncomeTaxContingencyTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeTaxDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Income Tax Disclosure [Abstract]",
                            "terseLabel":  "Income Tax Disclosure [Abstract]"
                            }
                        }
                    },
                "localname":  "IncomeTaxDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IncomeTaxDisclosureTextBlock":  {
                "auth_ref":  [
                    "r368",
                    "r373",
                    "r375",
                    "r386",
                    "r389",
                    "r391",
                    "r392",
                    "r393"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for income taxes.  Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
                            "label":  "Income Tax Disclosure [Text Block]",
                            "terseLabel":  "Income Taxes"
                            }
                        }
                    },
                "localname":  "IncomeTaxDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/Taxes"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_IncomeTaxExaminationIncreaseDecreaseInLiabilityFromPriorYear":  {
                "auth_ref":  [
                    "r372"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The amount the liability recorded for the income tax examination increased or decreased in the current year/accounting period.",
                            "label":  "Income Tax Examination, Increase (Decrease) in Liability from Prior Year",
                            "terseLabel":  "Increase in reserves for income taxes, net of deferred tax benefit"
                            }
                        }
                    },
                "localname":  "IncomeTaxExaminationIncreaseDecreaseInLiabilityFromPriorYear",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncomeTaxExpenseBenefit":  {
                "auth_ref":  [
                    "r97",
                    "r116",
                    "r117",
                    "r140",
                    "r366",
                    "r387",
                    "r390",
                    "r547"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_NetIncomeLoss",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
                            "label":  "Income Tax Expense (Benefit)",
                            "terseLabel":  "Income tax expense (benefit)"
                            }
                        }
                    },
                "localname":  "IncomeTaxExpenseBenefit",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInAccountsPayable":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  14.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business.",
                            "label":  "Increase (Decrease) in Accounts Payable",
                            "terseLabel":  "Accounts payable"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInAccountsPayable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInAccountsReceivable":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  8.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services.",
                            "label":  "Increase (Decrease) in Accounts Receivable",
                            "negatedTerseLabel":  "Accounts receivable"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInAccountsReceivable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInAccruedLiabilities":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  15.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period in the aggregate amount of expenses incurred but not yet paid.",
                            "label":  "Increase (Decrease) in Accrued Liabilities",
                            "terseLabel":  "Accrued expenses"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInAccruedLiabilities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInAccruedTaxesPayable":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  17.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period of all taxes owed but not paid, including income, property and other taxes.",
                            "label":  "Increase (Decrease) in Accrued Taxes Payable",
                            "terseLabel":  "Accrued income taxes"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInAccruedTaxesPayable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInContractWithCustomerLiability":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  10.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in obligation to transfer good or service to customer for which consideration has been received or is receivable.",
                            "label":  "Increase (Decrease) in Contract with Customer, Liability",
                            "terseLabel":  "Unbilled revenue"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInContractWithCustomerLiability",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInDeferredIncomeTaxes":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  12.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period in the account that represents the temporary difference that results from Income or Loss that is recognized for accounting purposes but not for tax purposes and vice versa.",
                            "label":  "Increase (Decrease) in Deferred Income Taxes",
                            "negatedLabel":  "Change in deferred income taxes"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInDeferredIncomeTaxes",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInDeferredRevenue":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  20.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable.",
                            "label":  "Increase (Decrease) in Deferred Revenue",
                            "terseLabel":  "Deferred revenue and customer deposits"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInDeferredRevenue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInInventories":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  19.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities.",
                            "label":  "Increase (Decrease) in Inventories",
                            "negatedTerseLabel":  "Inventories"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInInventories",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in operating assets after deduction of operating liabilities classified as other.",
                            "label":  "Increase (Decrease) in Other Operating Assets and Liabilities, Net",
                            "negatedTerseLabel":  "Other"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInOtherOperatingCapitalNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets":  {
                "auth_ref":  [
                    "r88"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  16.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase (decrease) in prepaid expenses, and assets classified as other.",
                            "label":  "Increase (Decrease) in Prepaid Expense and Other Assets",
                            "negatedTerseLabel":  "Prepaid expenses and other current assets"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
                            "terseLabel":  "Increase (Decrease) in Stockholders' Equity"
                            }
                        }
                    },
                "localname":  "IncreaseDecreaseInStockholdersEquityRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_IntangibleAssetsDisclosureTextBlock":  {
                "auth_ref":  [
                    "r238"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for all or part of the information related to intangible assets.",
                            "label":  "Intangible Assets Disclosure [Text Block]",
                            "terseLabel":  "Intangible Assets"
                            }
                        }
                    },
                "localname":  "IntangibleAssetsDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssets"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_InterestReceivable":  {
                "auth_ref":  [
                    "r42"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount as of the balance sheet date of interest earned but not received.  Also called accrued interest or accrued interest receivable.",
                            "label":  "Interest Receivable",
                            "terseLabel":  "Accrued interest receivable"
                            }
                        }
                    },
                "localname":  "InterestReceivable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InventoryDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Inventory Disclosure [Abstract]",
                            "terseLabel":  "Inventory Disclosure [Abstract]"
                            }
                        }
                    },
                "localname":  "InventoryDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_InventoryDisclosureTextBlock":  {
                "auth_ref":  [
                    "r221"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for inventory.  Includes, but is not limited to, the basis of stating inventory, the method of determining inventory cost, the classes of inventory, and the nature of the cost elements included in inventory.",
                            "label":  "Inventory Disclosure [Text Block]",
                            "terseLabel":  "Inventories"
                            }
                        }
                    },
                "localname":  "InventoryDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/Inventories"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_InventoryFinishedGoodsNetOfReserves":  {
                "auth_ref":  [
                    "r24",
                    "r220"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_InventoryNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of merchandise or goods held by the company that are readily available for sale.",
                            "label":  "Inventory, Finished Goods, Net of Reserves",
                            "terseLabel":  "Finished goods"
                            }
                        }
                    },
                "localname":  "InventoryFinishedGoodsNetOfReserves",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InventoryNet":  {
                "auth_ref":  [
                    "r2",
                    "r41"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer.",
                            "label":  "Inventory, Net",
                            "terseLabel":  "Inventories",
                            "totalLabel":  "Inventories"
                            }
                        }
                    },
                "localname":  "InventoryNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InventoryRawMaterialsNetOfReserves":  {
                "auth_ref":  [
                    "r26",
                    "r220"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_InventoryNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of unprocessed items to be consumed in the manufacturing or production process.",
                            "label":  "Inventory, Raw Materials, Net of Reserves",
                            "terseLabel":  "Raw materials"
                            }
                        }
                    },
                "localname":  "InventoryRawMaterialsNetOfReserves",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InventoryWorkInProcessNetOfReserves":  {
                "auth_ref":  [
                    "r25",
                    "r220"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_InventoryNet",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount, net of reserves and adjustments, as of the balance sheet date of merchandise or goods which are partially completed.  This inventory is generally comprised of raw materials, labor and factory overhead costs, which require further materials, labor and overhead to be converted into finished goods, and which generally require the use of estimates to determine percentage complete and pricing.",
                            "label":  "Inventory, Work in Process, Net of Reserves",
                            "terseLabel":  "Work-in-process"
                            }
                        }
                    },
                "localname":  "InventoryWorkInProcessNetOfReserves",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/InventoriesScheduleofInventoriesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InvestmentIncomeNonoperating":  {
                "auth_ref":  [
                    "r77"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The aggregate amount of income from investments (for example, dividends) not considered a component of the entity's core operations.",
                            "label":  "Investment Income, Nonoperating",
                            "terseLabel":  "Investment income"
                            }
                        }
                    },
                "localname":  "InvestmentIncomeNonoperating",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_InvestmentTypeAxis":  {
                "auth_ref":  [
                    "r567",
                    "r568",
                    "r569",
                    "r570",
                    "r571",
                    "r572",
                    "r573",
                    "r574",
                    "r575",
                    "r576",
                    "r577",
                    "r578",
                    "r579",
                    "r580",
                    "r581"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by type of investments.",
                            "label":  "Investment Type [Axis]",
                            "terseLabel":  "Investment Type [Axis]"
                            }
                        }
                    },
                "localname":  "InvestmentTypeAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_InvestmentTypeCategorizationMember":  {
                "auth_ref":  [
                    "r567",
                    "r568",
                    "r569",
                    "r570",
                    "r571",
                    "r572",
                    "r573",
                    "r574",
                    "r575",
                    "r576",
                    "r577",
                    "r578",
                    "r579",
                    "r580",
                    "r581"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Asset obtained to generate income or appreciate in value.",
                            "label":  "Investments [Domain]",
                            "terseLabel":  "Investments [Domain]"
                            }
                        }
                    },
                "localname":  "InvestmentTypeCategorizationMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments.",
                            "label":  "Investments Classified by Contractual Maturity Date [Table Text Block]",
                            "terseLabel":  "Effective Maturity Dates of Available-for-Sale Investments"
                            }
                        }
                    },
                "localname":  "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_InvestmentsInDebtAndEquityInstrumentsCashAndCashEquivalentsUnrealizedAndRealizedGainsLossesTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for cash, cash equivalents, investments in debt and equity instruments (including cost and equity investees and related income statement amounts), equity and cost method investments, investments in joint ventures and any other investment.",
                            "label":  "Investments in Debt and Equity Instruments, Cash and Cash Equivalents, Unrealized and Realized Gains (Losses) [Text Block]",
                            "terseLabel":  "Cash, Cash Equivalents, and Investments"
                            }
                        }
                    },
                "localname":  "InvestmentsInDebtAndEquityInstrumentsCashAndCashEquivalentsUnrealizedAndRealizedGainsLossesTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestments"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_LeaseCost":  {
                "auth_ref":  [
                    "r469",
                    "r471"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lease cost recognized by lessee for lease contract.",
                            "label":  "Lease, Cost",
                            "terseLabel":  "Lease, cost"
                            }
                        }
                    },
                "localname":  "LeaseCost",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LeasesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Leases [Abstract]",
                            "terseLabel":  "Leases [Abstract]"
                            }
                        }
                    },
                "localname":  "LeasesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock":  {
                "auth_ref":  [
                    "r470"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability.  Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
                            "label":  "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
                            "terseLabel":  "Lessee, Operating Lease, Liability, Maturity"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid",
                            "totalLabel":  "Total"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid, Year Five",
                            "terseLabel":  "2024"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid, Year Four",
                            "terseLabel":  "2023"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid, Year Three",
                            "terseLabel":  "2022"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year.  Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid, Year Two",
                            "terseLabel":  "2021"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear":  {
                "auth_ref":  [
                    "r470"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's undiscounted obligation for lease payment for operating lease having initial or remaining lease term in excess of one year to be paid in remainder of current fiscal year.",
                            "label":  "Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year",
                            "terseLabel":  "Remainder of fiscal 2019"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesFutureMinimumLeasePaymentObligationsUnderOperatingLeasesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LesseeOperatingLeasesTextBlock":  {
                "auth_ref":  [
                    "r472"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for operating leases of lessee.  Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability.",
                            "label":  "Lessee, Operating Leases [Text Block]",
                            "terseLabel":  "Leases"
                            }
                        }
                    },
                "localname":  "LesseeOperatingLeasesTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/Leases"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_LessorOperatingLeasePaymentsToBeReceivedMaturityTableTextBlock":  {
                "auth_ref":  [
                    "r474"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of maturity of undiscounted cash flows to be received by lessor on annual basis for operating lease.",
                            "label":  "Lessor, Operating Lease, Payment to be Received, Fiscal Year Maturity [Table Text Block]",
                            "terseLabel":  "Lessor, Operating Lease, Payment to be Received, Fiscal Year Maturity [Table Text Block]"
                            }
                        }
                    },
                "localname":  "LessorOperatingLeasePaymentsToBeReceivedMaturityTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_Liabilities":  {
                "auth_ref":  [
                    "r36",
                    "r96",
                    "r145",
                    "r186",
                    "r407",
                    "r410",
                    "r411",
                    "r445"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_LiabilitiesAndStockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized.  Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
                            "label":  "Liabilities",
                            "totalLabel":  "Total liabilities"
                            }
                        }
                    },
                "localname":  "Liabilities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LiabilitiesAndStockholdersEquity":  {
                "auth_ref":  [
                    "r21",
                    "r96",
                    "r186",
                    "r445",
                    "r523",
                    "r540"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
                            "label":  "Liabilities and Equity",
                            "totalLabel":  "Total liabilities and shareholders' equity"
                            }
                        }
                    },
                "localname":  "LiabilitiesAndStockholdersEquity",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LiabilitiesAndStockholdersEquityAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Liabilities and Equity [Abstract]",
                            "terseLabel":  "LIABILITIES AND SHAREHOLDERS\u2019 EQUITY"
                            }
                        }
                    },
                "localname":  "LiabilitiesAndStockholdersEquityAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_LiabilitiesCurrent":  {
                "auth_ref":  [
                    "r38",
                    "r96",
                    "r186",
                    "r407",
                    "r410",
                    "r411",
                    "r445"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer.",
                            "label":  "Liabilities, Current",
                            "totalLabel":  "Total current liabilities"
                            }
                        }
                    },
                "localname":  "LiabilitiesCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LiabilitiesCurrentAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Liabilities, Current [Abstract]",
                            "terseLabel":  "Current liabilities:"
                            }
                        }
                    },
                "localname":  "LiabilitiesCurrentAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_LiabilitiesFairValueAdjustment":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of addition (reduction) to the amount at which a liability could be incurred (settled) in a current transaction between willing parties.",
                            "label":  "Liabilities, Fair Value Adjustment",
                            "terseLabel":  "Fair value adjustment"
                            }
                        }
                    },
                "localname":  "LiabilitiesFairValueAdjustment",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LiabilitiesFairValueDisclosureAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Liabilities, Fair Value Disclosure [Abstract]",
                            "terseLabel":  "Liabilities:"
                            }
                        }
                    },
                "localname":  "LiabilitiesFairValueDisclosureAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_LiabilityForUncertainTaxPositionsNoncurrent":  {
                "auth_ref":  [
                    "r39"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount recognized for uncertainty in income taxes classified as noncurrent.",
                            "label":  "Liability for Uncertainty in Income Taxes, Noncurrent",
                            "terseLabel":  "Reserve for income taxes",
                            "verboseLabel":  "Reserve for income taxes classified as a noncurrent iability"
                            }
                        }
                    },
                "localname":  "LiabilityForUncertainTaxPositionsNoncurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_LongTermInvestments":  {
                "auth_ref":  [
                    "r33"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  3.0,
                        "parentTag":  "cgnx_CashCashEquivalentsShortTermAndLongTermInvestments",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The total amount of investments that are intended to be held for an extended period of time (longer than one operating cycle).",
                            "label":  "Long-term Investments",
                            "terseLabel":  "Non-current investments, amortized cost of $461,948 and $431,633 in 2020 and 2019, respectively, allowance for expected credit losses of $75 and $0 in 2020 and 2019, respectively"
                            }
                        }
                    },
                "localname":  "LongTermInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_MaximumRemainingMaturityOfForeignCurrencyDerivatives1":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Maximum amount of time remaining before foreign currency exchange rate derivatives mature or expire, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
                            "label":  "Maximum Remaining Maturity of Foreign Currency Derivatives",
                            "terseLabel":  "Remaining maturity of foreign currency derivatives (up to)"
                            }
                        }
                    },
                "localname":  "MaximumRemainingMaturityOfForeignCurrencyDerivatives1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_MoneyMarketFundsAtCarryingValue":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_CashAndCashEquivalentsAtCarryingValue",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Investment in short-term money-market instruments (such as commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and so forth) which are highly liquid (that is, readily convertible to known amounts of cash) and so near their maturity that they present an insignificant risk of changes in value because of changes in interest rates.  Generally, only investments with original maturities of three months or less qualify as cash equivalents by definition.  Original maturity means an original maturity to the entity holding the investment.  For example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents.  However, a Treasury note purchased three-years ago does not become a cash equivalent when its remaining maturity is three months.",
                            "label":  "Money Market Funds, at Carrying Value",
                            "terseLabel":  "Money market instruments"
                            }
                        }
                    },
                "localname":  "MoneyMarketFundsAtCarryingValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_MovementInDeferredRevenueRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Movement in Deferred Revenue [Roll Forward]",
                            "terseLabel":  "Movement in Deferred Revenue [Roll Forward]"
                            }
                        }
                    },
                "localname":  "MovementInDeferredRevenueRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionDeferredRevenueActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_MovementInStandardProductWarrantyAccrualRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Movement in Standard Product Warranty Accrual [Roll Forward]",
                            "terseLabel":  "Movement in Standard Product Warranty Accrual [Roll Forward]"
                            }
                        }
                    },
                "localname":  "MovementInStandardProductWarrantyAccrualRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligationsChangesinWarrantyObligationsDetail"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_MunicipalBondsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Long-term debt securities issued by state, city or local governments or the agencies operated by state, city or local governments.",
                            "label":  "Municipal Bonds [Member]",
                            "terseLabel":  "Municipal Bonds"
                            }
                        }
                    },
                "localname":  "MunicipalBondsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_NetCashProvidedByUsedInFinancingActivities":  {
                "auth_ref":  [
                    "r86"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash inflow (outflow) from financing activities, including discontinued operations.  Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
                            "label":  "Net Cash Provided by (Used in) Financing Activities",
                            "totalLabel":  "Net cash provided by (used in) financing activities"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInFinancingActivities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Net Cash Provided by (Used in) Financing Activities [Abstract]",
                            "terseLabel":  "Cash flows from financing activities:"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInFinancingActivitiesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_NetCashProvidedByUsedInInvestingActivities":  {
                "auth_ref":  [
                    "r86"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash inflow (outflow) from investing activities, including discontinued operations.  Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
                            "label":  "Net Cash Provided by (Used in) Investing Activities",
                            "totalLabel":  "Net cash provided by (used in) investing activities"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInInvestingActivities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Net Cash Provided by (Used in) Investing Activities [Abstract]",
                            "terseLabel":  "Cash flows from investing activities:"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInInvestingActivitiesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_NetCashProvidedByUsedInOperatingActivities":  {
                "auth_ref":  [
                    "r86",
                    "r87",
                    "r90"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash inflow (outflow) from operating activities, including discontinued operations.  Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
                            "label":  "Net Cash Provided by (Used in) Operating Activities",
                            "totalLabel":  "Net cash provided by operating activities"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInOperatingActivities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Net Cash Provided by (Used in) Operating Activities [Abstract]",
                            "terseLabel":  "Cash flows from operating activities:"
                            }
                        }
                    },
                "localname":  "NetCashProvidedByUsedInOperatingActivitiesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_NetIncomeLoss":  {
                "auth_ref":  [
                    "r0",
                    "r63",
                    "r66",
                    "r70",
                    "r90",
                    "r96",
                    "r105",
                    "r110",
                    "r111",
                    "r112",
                    "r113",
                    "r116",
                    "r117",
                    "r124",
                    "r141",
                    "r143",
                    "r146",
                    "r149",
                    "r151",
                    "r186",
                    "r445",
                    "r526",
                    "r543"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  18.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_ComprehensiveIncomeNetOfTax",
                        "weight":  1.0
                        },
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
                            "label":  "Net Income (Loss) Attributable to Parent",
                            "terseLabel":  "Net income",
                            "totalLabel":  "Net Income"
                            }
                        }
                    },
                "localname":  "NetIncomeLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome",
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock":  {
                "auth_ref":  [
                    "r103",
                    "r104",
                    "r107",
                    "r108",
                    "r118",
                    "r119",
                    "r120",
                    "r191",
                    "r192",
                    "r294",
                    "r295",
                    "r296",
                    "r297",
                    "r356",
                    "r383",
                    "r384",
                    "r385",
                    "r516",
                    "r517",
                    "r518",
                    "r559",
                    "r560",
                    "r561",
                    "r562",
                    "r564"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for change in accounting principle.  Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle.",
                            "label":  "Accounting Standards Update and Change in Accounting Principle [Text Block]",
                            "terseLabel":  "New Pronouncements"
                            }
                        }
                    },
                "localname":  "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/NewPronouncements"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting.  Includes, but is not limited to, quantification of the expected or actual impact.",
                            "label":  "New Accounting Pronouncements, Policy [Policy Text Block]",
                            "terseLabel":  "New Pronouncements"
                            }
                        }
                    },
                "localname":  "NewAccountingPronouncementsPolicyPolicyTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SummaryofSignificantAccountingPoliciesPolicies"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_NondesignatedMember":  {
                "auth_ref":  [
                    "r418"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
                            "label":  "Not Designated as Hedging Instrument [Member]",
                            "terseLabel":  "Not Designated as Hedging Instrument"
                            }
                        }
                    },
                "localname":  "NondesignatedMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsOutstandingForwardContractsTableDetails",
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OffsettingAssetsTableTextBlock":  {
                "auth_ref":  [
                    "r47",
                    "r48"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of derivative and other financial assets that are subject to offsetting, including master netting arrangements.",
                            "label":  "Offsetting Assets [Table Text Block]",
                            "terseLabel":  "Offsetting Assets"
                            }
                        }
                    },
                "localname":  "OffsettingAssetsTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_OneTimeTerminationBenefitsMember":  {
                "auth_ref":  [
                    "r242"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A lump sum payment to an involuntarily terminated employee in conjunction with exit or disposal activities.",
                            "label":  "One-time Termination Benefits [Member]",
                            "terseLabel":  "One-time termination benefits",
                            "verboseLabel":  "One-time Termination Benefits"
                            }
                        }
                    },
                "localname":  "OneTimeTerminationBenefitsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OperatingIncomeLoss":  {
                "auth_ref":  [
                    "r141",
                    "r143",
                    "r146",
                    "r149",
                    "r151"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The net result for the period of deducting operating expenses from operating revenues.",
                            "label":  "Operating Income (Loss)",
                            "totalLabel":  "Operating income (loss)"
                            }
                        }
                    },
                "localname":  "OperatingIncomeLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseCost":  {
                "auth_ref":  [
                    "r465",
                    "r471"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term.  Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability.",
                            "label":  "Operating Lease, Cost",
                            "terseLabel":  "Operating lease, cost"
                            }
                        }
                    },
                "localname":  "OperatingLeaseCost",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseImpairmentLoss":  {
                "auth_ref":  [
                    "r461"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of loss from impairment of right-of-use asset from operating lease.",
                            "label":  "Operating Lease, Impairment Loss",
                            "terseLabel":  "Operating lease asset impairment charges"
                            }
                        }
                    },
                "localname":  "OperatingLeaseImpairmentLoss",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails",
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseLeaseIncome":  {
                "auth_ref":  [
                    "r135",
                    "r473",
                    "r475"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of operating lease income from lease payments and variable lease payments paid and payable to lessor.  Includes, but is not limited to, variable lease payments not included in measurement of lease receivable.",
                            "label":  "Operating Lease, Lease Income",
                            "terseLabel":  "Rental income"
                            }
                        }
                    },
                "localname":  "OperatingLeaseLeaseIncome",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseLiability":  {
                "auth_ref":  [
                    "r463"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Present value of lessee's discounted obligation for lease payments from operating lease.",
                            "label":  "Operating Lease, Liability",
                            "terseLabel":  "Operating Lease, Liability"
                            }
                        }
                    },
                "localname":  "OperatingLeaseLiability",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseLiabilityCurrent":  {
                "auth_ref":  [
                    "r463"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  5.0,
                        "parentTag":  "us-gaap_LiabilitiesCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current.",
                            "label":  "Operating Lease, Liability, Current",
                            "terseLabel":  "Operating lease liabilities",
                            "verboseLabel":  "Operating lease, liability, current"
                            }
                        }
                    },
                "localname":  "OperatingLeaseLiabilityCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseLiabilityNoncurrent":  {
                "auth_ref":  [
                    "r463"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent.",
                            "label":  "Operating Lease, Liability, Noncurrent",
                            "terseLabel":  "Operating Lease, Liability, Noncurrent",
                            "verboseLabel":  "Operating lease, liability, noncurrent"
                            }
                        }
                    },
                "localname":  "OperatingLeaseLiabilityNoncurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeasePayments":  {
                "auth_ref":  [
                    "r464",
                    "r466"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
                            "label":  "Operating Lease, Payments",
                            "terseLabel":  "Operating lease, payments"
                            }
                        }
                    },
                "localname":  "OperatingLeasePayments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseRightOfUseAsset":  {
                "auth_ref":  [
                    "r462"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of lessee's right to use underlying asset under operating lease.",
                            "label":  "Operating Lease, Right-of-Use Asset",
                            "terseLabel":  "Operating lease assets",
                            "verboseLabel":  "Operating lease, right-of-use asset"
                            }
                        }
                    },
                "localname":  "OperatingLeaseRightOfUseAsset",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent":  {
                "auth_ref":  [
                    "r468",
                    "r471"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average discount rate for operating lease calculated at point in time.",
                            "label":  "Operating Lease, Weighted Average Discount Rate, Percent",
                            "terseLabel":  "Weighted average discount rate"
                            }
                        }
                    },
                "localname":  "OperatingLeaseWeightedAverageDiscountRatePercent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1":  {
                "auth_ref":  [
                    "r467",
                    "r471"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
                            "label":  "Operating Lease, Weighted Average Remaining Lease Term",
                            "terseLabel":  "Weighted average remaining lease term"
                            }
                        }
                    },
                "localname":  "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/LeasesNarrativeDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
                            "terseLabel":  "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
                            }
                        }
                    },
                "localname":  "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_OtherAssetsNoncurrent":  {
                "auth_ref":  [
                    "r34"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  8.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of noncurrent assets classified as other.",
                            "label":  "Other Assets, Noncurrent",
                            "terseLabel":  "Other assets"
                            }
                        }
                    },
                "localname":  "OtherAssetsNoncurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent":  {
                "auth_ref":  [
                    "r404",
                    "r405",
                    "r408"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after tax and reclassification adjustments, of appreciation (loss) in value of unsold available-for-sale securities, attributable to parent entity.  Excludes amounts related to other than temporary impairment (OTTI) loss.",
                            "label":  "Other Comprehensive Income (Loss), Available-for-sale Securities Adjustment, Net of Tax, Portion Attributable to Parent",
                            "totalLabel":  "Net change related to available-for-sale investments"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationGainLossArisingDuringPeriodTax":  {
                "auth_ref":  [
                    "r51",
                    "r57",
                    "r447",
                    "r450",
                    "r458"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of tax expense (benefit), before reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature.",
                            "label":  "OCI, Foreign Currency Transaction and Translation Gain (Loss), Arising During Period, Tax",
                            "terseLabel":  "Tax effect of foreign currency translation adjustment"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeForeignCurrencyTranslationGainLossArisingDuringPeriodTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncomeParenthetical"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesTax":  {
                "auth_ref":  [
                    "r52",
                    "r57"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of tax expense (benefit), after reclassification adjustments, of increase (decrease) in accumulated gain (loss) from derivative instruments designated and qualifying as the effective portion of cash flow hedges and an entity's share of an equity investee's increase (decrease) in deferred hedging gain (loss).",
                            "label":  "Other Comprehensive Income (Loss), Derivatives Qualifying as Hedges, Tax",
                            "terseLabel":  "Tax effect on cash flow hedges"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncomeParenthetical"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax":  {
                "auth_ref":  [
                    "r51"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after tax and reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature.",
                            "label":  "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax",
                            "terseLabel":  "Foreign currency translation adjustment",
                            "verboseLabel":  "Foreign currency translation adjustments"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Other Comprehensive Income (Loss), Net of Tax [Abstract]",
                            "terseLabel":  "Available-for-sale investments:"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent":  {
                "auth_ref":  [
                    "r64",
                    "r67",
                    "r404",
                    "r405",
                    "r408"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_ComprehensiveIncomeNetOfTax",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
                            "label":  "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
                            "totalLabel":  "Other comprehensive income, net of tax"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax":  {
                "auth_ref":  [
                    "r56",
                    "r60",
                    "r61",
                    "r185"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after tax of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
                            "label":  "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
                            "negatedLabel":  "Reclassification of net realized (gain) loss into current operations",
                            "negatedTerseLabel":  "Reclassification of net realized (gain) loss on the sale of available-for-sale investments"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax":  {
                "auth_ref":  [
                    "r53",
                    "r56"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).  Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
                            "label":  "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
                            "terseLabel":  "Net unrealized gain (loss), net of tax of ($836) and $239 in the three-month periods and net of tax of ($1,788) and $507 in the six-month periods, respectively",
                            "verboseLabel":  "Net unrealized gain (loss) on available-for-sale investments, net of tax of ($82)"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax":  {
                "auth_ref":  [
                    "r54",
                    "r57"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, before adjustment, of tax expense (benefit) for unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).  Excludes tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
                            "label":  "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, Tax",
                            "terseLabel":  "Tax effect of unrealized gain (loss) on available-for-sale investments"
                            }
                        }
                    },
                "localname":  "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquityParenthetical",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncomeParenthetical"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherCurrentAssetsMember":  {
                "auth_ref":  [
                    "r420",
                    "r432"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption encompassing other current assets.",
                            "label":  "Other Current Assets [Member]",
                            "terseLabel":  "Other Current Assets"
                            }
                        }
                    },
                "localname":  "OtherCurrentAssetsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OtherIntangibleAssetsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Intangible assets classified as other.",
                            "label":  "Other Intangible Assets [Member]",
                            "terseLabel":  "Non-compete agreements"
                            }
                        }
                    },
                "localname":  "OtherIntangibleAssetsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OtherLiabilitiesNoncurrent":  {
                "auth_ref":  [
                    "r39"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_Liabilities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
                            "label":  "Other Liabilities, Noncurrent",
                            "terseLabel":  "Other liabilities"
                            }
                        }
                    },
                "localname":  "OtherLiabilitiesNoncurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherNonoperatingIncomeExpense":  {
                "auth_ref":  [
                    "r78"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of income (expense) related to nonoperating activities, classified as other.",
                            "label":  "Other Nonoperating Income (Expense)",
                            "terseLabel":  "Other income (expense)"
                            }
                        }
                    },
                "localname":  "OtherNonoperatingIncomeExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_OtherNonoperatingIncomeExpenseMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption encompassing other nonoperating income (expense).",
                            "label":  "Other Nonoperating Income (Expense) [Member]",
                            "terseLabel":  "Other Income (Expense)"
                            }
                        }
                    },
                "localname":  "OtherNonoperatingIncomeExpenseMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OtherRestructuringMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Restructuring and related activities classified as other.",
                            "label":  "Other Restructuring [Member]",
                            "terseLabel":  "Other associated costs",
                            "verboseLabel":  "Other Associated Costs"
                            }
                        }
                    },
                "localname":  "OtherRestructuringMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSale":  {
                "auth_ref":  [
                    "r167"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of other-than-temporary impairment (OTTI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), recognized in earnings and other comprehensive loss (OCI).",
                            "label":  "Other-than-temporary Impairment Loss, Debt Securities, Available-for-sale",
                            "negatedLabel":  "Reclassification of credit (recovery) loss on investments",
                            "negatedTerseLabel":  "Reclassification of credit loss on investments",
                            "terseLabel":  "Reclassification of credit loss on investments"
                            }
                        }
                    },
                "localname":  "OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSale",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsCashCashEquivalentsandInvestmentsScheduleofAllowanceforCreditLossActivityDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/ConsolidatedStatementsofComprehensiveIncome",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities":  {
                "auth_ref":  [
                    "r84"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInFinancingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash outflow, not made soon after acquisition date of business combination, to settle contingent consideration liability up to amount recognized at acquisition date, including, but not limited to, measurement period adjustment and less amount paid soon after acquisition date.",
                            "label":  "Payment for Contingent Consideration Liability, Financing Activities",
                            "negatedTerseLabel":  "Payment of contingent consideration",
                            "terseLabel":  "Payment of contingent consideration"
                            }
                        }
                    },
                "localname":  "PaymentForContingentConsiderationLiabilityFinancingActivities",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows",
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentsForRepurchaseOfCommonStock":  {
                "auth_ref":  [
                    "r83"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInFinancingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cash outflow to reacquire common stock during the period.",
                            "label":  "Payments for Repurchase of Common Stock",
                            "negatedLabel":  "Repurchase of common stock"
                            }
                        }
                    },
                "localname":  "PaymentsForRepurchaseOfCommonStock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentsForRestructuring":  {
                "auth_ref":  [
                    "r85",
                    "r245"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash payments made as the result of exit or disposal activities.  Excludes payments associated with a discontinued operation or an asset retirement obligation.",
                            "label":  "Payments for Restructuring",
                            "negatedTerseLabel":  "Cash payments"
                            }
                        }
                    },
                "localname":  "PaymentsForRestructuring",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentsOfDividendsCommonStock":  {
                "auth_ref":  [
                    "r83"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInFinancingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
                            "label":  "Payments of Ordinary Dividends, Common Stock",
                            "negatedTerseLabel":  "Payment of dividends"
                            }
                        }
                    },
                "localname":  "PaymentsOfDividendsCommonStock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentsToAcquireInvestments":  {
                "auth_ref":  [
                    "r81"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInInvestingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cash outflow associated with the purchase of all investments (debt, security, other) during the period.",
                            "label":  "Payments to Acquire Investments",
                            "negatedLabel":  "Purchases of investments"
                            }
                        }
                    },
                "localname":  "PaymentsToAcquireInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment":  {
                "auth_ref":  [
                    "r80"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInInvestingActivities",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
                            "label":  "Payments to Acquire Property, Plant, and Equipment",
                            "negatedLabel":  "Purchases of property, plant, and equipment"
                            }
                        }
                    },
                "localname":  "PaymentsToAcquirePropertyPlantAndEquipment",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PerformanceSharesMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Share-based payment arrangement awarded for meeting performance target.",
                            "label":  "Performance Shares [Member]",
                            "terseLabel":  "Performance Shares"
                            }
                        }
                    },
                "localname":  "PerformanceSharesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_PlanNameAxis":  {
                "auth_ref":  [
                    "r317",
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by plan name for share-based payment arrangement.",
                            "label":  "Plan Name [Axis]",
                            "terseLabel":  "Plan Name [Axis]"
                            }
                        }
                    },
                "localname":  "PlanNameAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_PlanNameDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Plan name for share-based payment arrangement.",
                            "label":  "Plan Name [Domain]",
                            "terseLabel":  "Plan Name [Domain]"
                            }
                        }
                    },
                "localname":  "PlanNameDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_PreferredStockValueOutstanding":  {
                "auth_ref":  [
                    "r13"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Value of all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by shareholders, which is net of related treasury stock.  May be all or a portion of the number of preferred shares authorized.  These shares represent the ownership interest of the preferred shareholders.",
                            "label":  "Preferred Stock, Value, Outstanding",
                            "terseLabel":  "Preferred Stock, Value, Outstanding"
                            }
                        }
                    },
                "localname":  "PreferredStockValueOutstanding",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PrepaidExpenseAndOtherAssetsCurrent":  {
                "auth_ref":  [
                    "r4",
                    "r30",
                    "r31"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  6.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer.",
                            "label":  "Prepaid Expense and Other Assets, Current",
                            "terseLabel":  "Prepaid expenses and other current assets"
                            }
                        }
                    },
                "localname":  "PrepaidExpenseAndOtherAssetsCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption encompassing prepaid expenses and other current assets.",
                            "label":  "Prepaid Expenses and Other Current Assets [Member]",
                            "terseLabel":  "Prepaid Expenses and Other Current Assets"
                            }
                        }
                    },
                "localname":  "PrepaidExpensesAndOtherCurrentAssetsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsScheduleofDerivativeInstrumentsinStatementofFinancialPositionFairValueDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions":  {
                "auth_ref":  [
                    "r82",
                    "r348"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInFinancingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of cash inflow from issuance of shares under share-based payment arrangement.  Includes, but is not limited to, option exercised.",
                            "label":  "Proceeds, Issuance of Shares, Share-based Payment Arrangement, Including Option Exercised",
                            "terseLabel":  "Issuance of common stock under stock plans"
                            }
                        }
                    },
                "localname":  "ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments":  {
                "auth_ref":  [
                    "r79"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInInvestingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cash inflow associated with the sale, maturity and collection of all investments such as debt, security and so forth during the period.",
                            "label":  "Proceeds from Sale, Maturity and Collection of Investments",
                            "terseLabel":  "Maturities and sales of investments"
                            }
                        }
                    },
                "localname":  "ProceedsFromSaleMaturityAndCollectionsOfInvestments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProductWarrantiesDisclosuresAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Product Warranties Disclosures [Abstract]",
                            "terseLabel":  "Product Warranties Disclosures [Abstract]"
                            }
                        }
                    },
                "localname":  "ProductWarrantiesDisclosuresAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ProductWarrantyAccrual":  {
                "auth_ref":  [
                    "r262",
                    "r263",
                    "r525"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying value as of the balance sheet date of obligations incurred through that date and payable for estimated claims under standard and extended warranty protection rights granted to customers.",
                            "label":  "Standard and Extended Product Warranty Accrual",
                            "periodEndLabel":  "Ending balance",
                            "periodStartLabel":  "Beginning balance"
                            }
                        }
                    },
                "localname":  "ProductWarrantyAccrual",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligationsChangesinWarrantyObligationsDetail"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProductWarrantyAccrualPayments":  {
                "auth_ref":  [
                    "r260"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of decrease in the standard and extended product warranty accrual from payments made in cash or in kind to satisfy claims under the terms of the standard and extended product warranty.",
                            "label":  "Standard and Extended Product Warranty Accrual, Decrease for Payments",
                            "negatedLabel":  "Fulfillment of warranty obligations"
                            }
                        }
                    },
                "localname":  "ProductWarrantyAccrualPayments",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligationsChangesinWarrantyObligationsDetail"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProductWarrantyAccrualWarrantiesIssued":  {
                "auth_ref":  [
                    "r261"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of increase in the standard and extended product warranty accrual from warranties issued.",
                            "label":  "Standard and Extended Product Warranty Accrual, Increase for Warranties Issued",
                            "verboseLabel":  "Provisions for warranties issued during the period"
                            }
                        }
                    },
                "localname":  "ProductWarrantyAccrualWarrantiesIssued",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligationsChangesinWarrantyObligationsDetail"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProductWarrantyDisclosureTextBlock":  {
                "auth_ref":  [
                    "r265"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for standard and extended product warranties and other product guarantee contracts, including a tabular reconciliation of the changes in the guarantor's aggregate product warranty liability for the reporting period.",
                            "label":  "Product Warranty Disclosure [Text Block]",
                            "terseLabel":  "Warranty Obligations"
                            }
                        }
                    },
                "localname":  "ProductWarrantyDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligations"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_PropertyPlantAndEquipmentNet":  {
                "auth_ref":  [
                    "r9",
                    "r10",
                    "r240",
                    "r541"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_Assets",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale.  Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
                            "label":  "Property, Plant and Equipment, Net",
                            "terseLabel":  "Property, plant, and equipment, net"
                            }
                        }
                    },
                "localname":  "PropertyPlantAndEquipmentNet",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ProvisionForDoubtfulAccounts":  {
                "auth_ref":  [
                    "r73",
                    "r198"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of expense (reversal of expense) for expected credit loss on accounts receivable.",
                            "label":  "Accounts Receivable, Credit Loss Expense (Reversal)",
                            "terseLabel":  "Increases to the allowance for credit losses",
                            "verboseLabel":  "Credit losses on accounts receivable"
                            }
                        }
                    },
                "localname":  "ProvisionForDoubtfulAccounts",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionAdditionalInformationDetails",
                    "http://www.cognex.com/role/RevenueRecognitionScheduleofAllowanceforCreditLossDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ReceivablesPolicyTextBlock":  {
                "auth_ref":  [
                    "r94",
                    "r159",
                    "r162",
                    "r163",
                    "r164"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of accounting policy for receivable.  Includes, but is not limited to, accounts receivable and financing receivable.",
                            "label":  "Receivable [Policy Text Block]",
                            "terseLabel":  "Accounts Receivable"
                            }
                        }
                    },
                "localname":  "ReceivablesPolicyTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SummaryofSignificantAccountingPoliciesPolicies"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ResearchAndDevelopmentExpense":  {
                "auth_ref":  [
                    "r363",
                    "r592"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_OperatingIncomeLoss",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The aggregate costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility, and costs allocated in accounting for a business combination to in-process projects deemed to have no alternative future use.",
                            "label":  "Research and Development Expense",
                            "terseLabel":  "Research, development, and engineering expenses"
                            }
                        }
                    },
                "localname":  "ResearchAndDevelopmentExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ResearchAndDevelopmentExpenseMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption in which the reported facts about research and development expense have been included.",
                            "label":  "Research and Development Expense [Member]",
                            "terseLabel":  "Research, Development, and Engineering Expenses"
                            }
                        }
                    },
                "localname":  "ResearchAndDevelopmentExpenseMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsDerivativeInstrumentsGainLossDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseScheduleofEmployeeServiceSharebasedCompensationAllocationofRecognizedPeriodCostsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RestrictedStockMember":  {
                "auth_ref":  [
                    "r128"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met.",
                            "label":  "Restricted Stock [Member]",
                            "terseLabel":  "Restricted Stock"
                            }
                        }
                    },
                "localname":  "RestrictedStockMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RestrictedStockUnitsRSUMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
                            "label":  "Restricted Stock Units (RSUs) [Member]",
                            "terseLabel":  "Restricted Stock Units (RSUs)"
                            }
                        }
                    },
                "localname":  "RestrictedStockUnitsRSUMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RestructuringAndRelatedActivitiesAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Restructuring and Related Activities [Abstract]"
                            }
                        }
                    },
                "localname":  "RestructuringAndRelatedActivitiesAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_RestructuringAndRelatedActivitiesDisclosureTextBlock":  {
                "auth_ref":  [
                    "r259"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for restructuring and related activities.  Description of restructuring activities such as exit and disposal activities, include facts and circumstances leading to the plan, the expected plan completion date, the major types of costs associated with the plan activities, total expected costs, the accrual balance at the end of the period, and the periods over which the remaining accrual will be settled.",
                            "label":  "Restructuring and Related Activities Disclosure [Text Block]",
                            "terseLabel":  "Restructuring Charges"
                            }
                        }
                    },
                "localname":  "RestructuringAndRelatedActivitiesDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringCharges"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_RestructuringAndRelatedCostExpectedCost1":  {
                "auth_ref":  [
                    "r244",
                    "r247",
                    "r254",
                    "r258"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount expected to be recognized in earnings for the specified restructuring cost.",
                            "label":  "Restructuring and Related Cost, Expected Cost",
                            "terseLabel":  "Total Amount Expected to be Incurred"
                            }
                        }
                    },
                "localname":  "RestructuringAndRelatedCostExpectedCost1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesNarrativeDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The expected number of positions to be eliminated as a result of restructuring activities.",
                            "label":  "Restructuring and Related Cost, Expected Number of Positions Eliminated",
                            "terseLabel":  "Expected number of positions eliminated"
                            }
                        }
                    },
                "localname":  "RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesNarrativeDetails"
                    ],
                "xbrltype":  "integerItemType"
                },
            "us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Percentage of the total number of positions eliminated as of the balance sheet date since inception of the restructuring plan(s).",
                            "label":  "Restructuring and Related Cost, Number of Positions Eliminated, Inception to Date Percent",
                            "terseLabel":  "Workforce reduction (as a percent)"
                            }
                        }
                    },
                "localname":  "RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesNarrativeDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_RestructuringCharges":  {
                "auth_ref":  [
                    "r89",
                    "r243",
                    "r250",
                    "r256"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_OperatingIncomeLoss",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of expenses associated with exit or disposal activities pursuant to an authorized plan.  Excludes expenses related to a discontinued operation or an asset retirement obligation.",
                            "label":  "Restructuring Charges",
                            "netLabel":  "Restructuring charges",
                            "terseLabel":  "Restructuring charges (Note 16)",
                            "verboseLabel":  "Incurred in the Three-months Ended June 28, 2020"
                            }
                        }
                    },
                "localname":  "RestructuringCharges",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RestructuringChargesMember":  {
                "auth_ref":  [
                    "r246",
                    "r250",
                    "r257"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Primary financial statement caption in which the reported facts about restructuring charges have been included.",
                            "label":  "Restructuring Charges [Member]",
                            "terseLabel":  "Restructuring Charges"
                            }
                        }
                    },
                "localname":  "RestructuringChargesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RestructuringCostAndReserveAxis":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by type of restructuring cost.",
                            "label":  "Restructuring Type [Axis]",
                            "terseLabel":  "Restructuring Type [Axis]"
                            }
                        }
                    },
                "localname":  "RestructuringCostAndReserveAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_RestructuringCostAndReserveLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Restructuring Cost and Reserve [Line Items]",
                            "terseLabel":  "Restructuring Cost and Reserve [Line Items]"
                            }
                        }
                    },
                "localname":  "RestructuringCostAndReserveLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_RestructuringReserve":  {
                "auth_ref":  [
                    "r245",
                    "r252"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Carrying amount (including both current and noncurrent portions of the accrual) as of the balance sheet date pertaining to a specified type of cost associated with exit from or disposal of business activities or restructuring pursuant to a duly authorized plan.",
                            "label":  "Restructuring Reserve",
                            "periodEndLabel":  "Balance at end of period",
                            "periodStartLabel":  "Balance at beginning of period"
                            }
                        }
                    },
                "localname":  "RestructuringReserve",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RestructuringReserveRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Restructuring Reserve [Roll Forward]",
                            "terseLabel":  "Restructuring Reserve [Roll Forward]"
                            }
                        }
                    },
                "localname":  "RestructuringReserveRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_RestructuringReserveSettledWithoutCash2":  {
                "auth_ref":  [
                    "r243",
                    "r251"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of decrease in the reserve for full or partial settlement through consideration other than cash.",
                            "label":  "Restructuring Reserve, Settled without Cash",
                            "negatedTerseLabel":  "Non-cash restructuring charges"
                            }
                        }
                    },
                "localname":  "RestructuringReserveSettledWithoutCash2",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RestructuringReserveTranslationAdjustment":  {
                "auth_ref":  [
                    "r245",
                    "r255"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of foreign currency translation gain (loss) which decreases (increases) the restructuring reserve.",
                            "label":  "Restructuring Reserve, Foreign Currency Translation Gain (Loss)",
                            "negatedTerseLabel":  "Foreign exchange rate changes"
                            }
                        }
                    },
                "localname":  "RestructuringReserveTranslationAdjustment",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RetainedEarningsAccumulatedDeficit":  {
                "auth_ref":  [
                    "r17",
                    "r267",
                    "r357",
                    "r539",
                    "r559",
                    "r564"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_StockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
                            "label":  "Retained Earnings (Accumulated Deficit)",
                            "terseLabel":  "Retained earnings"
                            }
                        }
                    },
                "localname":  "RetainedEarningsAccumulatedDeficit",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RetainedEarningsMember":  {
                "auth_ref":  [
                    "r100",
                    "r101",
                    "r102",
                    "r106",
                    "r115",
                    "r117",
                    "r190",
                    "r353",
                    "r354",
                    "r355",
                    "r381",
                    "r382",
                    "r555",
                    "r557"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
                            "label":  "Retained Earnings [Member]",
                            "terseLabel":  "Retained Earnings"
                            }
                        }
                    },
                "localname":  "RetainedEarningsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RevenueCommissionersIrelandMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Designated tax department of the government of Ireland.",
                            "label":  "Revenue Commissioners, Ireland [Member]",
                            "terseLabel":  "Revenue Commissioners, Ireland"
                            }
                        }
                    },
                "localname":  "RevenueCommissionersIrelandMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_RevenueFromContractWithCustomerAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Revenue from Contract with Customer [Abstract]",
                            "terseLabel":  "Revenue from Contract with Customer [Abstract]"
                            }
                        }
                    },
                "localname":  "RevenueFromContractWithCustomerAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax":  {
                "auth_ref":  [
                    "r138",
                    "r139",
                    "r142",
                    "r147",
                    "r148",
                    "r152",
                    "r153",
                    "r156",
                    "r283",
                    "r284",
                    "r511"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_GrossProfit",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer.  Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise.",
                            "label":  "Revenue from Contract with Customer, Excluding Assessed Tax",
                            "terseLabel":  "Revenue"
                            }
                        }
                    },
                "localname":  "RevenueFromContractWithCustomerExcludingAssessedTax",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyGeographyDetails",
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_RevenueFromContractWithCustomerTextBlock":  {
                "auth_ref":  [
                    "r275",
                    "r276",
                    "r277",
                    "r278",
                    "r279",
                    "r280",
                    "r281",
                    "r282",
                    "r286",
                    "r298"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset.  Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer.  Excludes insurance and lease contracts.",
                            "label":  "Revenue from Contract with Customer [Text Block]",
                            "terseLabel":  "Revenue Recognition"
                            }
                        }
                    },
                "localname":  "RevenueFromContractWithCustomerTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognition"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_RevenueFromExternalCustomersByGeographicAreasTableTextBlock":  {
                "auth_ref":  [
                    "r155"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of revenue from external customers by geographic areas attributed to the entity's country of domicile and to foreign countries from which the entity derives revenue.",
                            "label":  "Revenue from External Customers by Geographic Areas [Table Text Block]",
                            "terseLabel":  "Revenue from External Customers by Geographic Areas"
                            }
                        }
                    },
                "localname":  "RevenueFromExternalCustomersByGeographicAreasTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Debt Securities, Available-for-sale [Line Items]",
                            "terseLabel":  "Debt Securities, Available-for-sale [Line Items]"
                            }
                        }
                    },
                "localname":  "ScheduleOfAvailableForSaleSecuritiesLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value.",
                            "label":  "Schedule of Available-for-sale Securities Reconciliation [Table Text Block]",
                            "terseLabel":  "Summary of Available-for-Sale Investments"
                            }
                        }
                    },
                "localname":  "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfAvailableForSaleSecuritiesTable":  {
                "auth_ref":  [
                    "r174",
                    "r176",
                    "r181",
                    "r182",
                    "r183",
                    "r184",
                    "r530",
                    "r531"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule of available-for-sale securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for as available-for-sale, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures related to available for sale securities.",
                            "label":  "Schedule of Available-for-sale Securities [Table]",
                            "terseLabel":  "Schedule of Available-for-sale Securities [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfAvailableForSaleSecuritiesTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfCashAndCashEquivalentsTable":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule of cash and cash equivalent balances.  This table excludes restricted cash balances.",
                            "label":  "Schedule of Cash and Cash Equivalents [Table]",
                            "terseLabel":  "Schedule of Cash and Cash Equivalents [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfCashAndCashEquivalentsTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock":  {
                "auth_ref":  [
                    "r421",
                    "r426",
                    "r429"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
                            "label":  "Derivative Instruments, Gain (Loss) [Table Text Block]",
                            "terseLabel":  "Derivative Instruments, Gain (Loss)"
                            }
                        }
                    },
                "localname":  "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock":  {
                "auth_ref":  [
                    "r425"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
                            "label":  "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
                            "terseLabel":  "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value"
                            }
                        }
                    },
                "localname":  "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/DerivativeInstrumentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock":  {
                "auth_ref":  [
                    "r367"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations.",
                            "label":  "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
                            "terseLabel":  "Reconciliation of United States Federal Statutory Corporate Tax Rate to Company's Effective Tax Rate, or Income Tax Provision"
                            }
                        }
                    },
                "localname":  "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable":  {
                "auth_ref":  [
                    "r316",
                    "r344",
                    "r359"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about amount recognized for award under share-based payment arrangement.  Includes, but is not limited to, amount expensed in statement of income or comprehensive income, amount capitalized in statement of financial position, and corresponding reporting line item in financial statements.",
                            "label":  "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table]",
                            "terseLabel":  "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock":  {
                "auth_ref":  [
                    "r316",
                    "r344",
                    "r359"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of allocation of amount expensed and capitalized for award under share-based payment arrangement to statement of income or comprehensive income and statement of financial position.  Includes, but is not limited to, corresponding line item in financial statement.",
                            "label":  "Share-based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block]",
                            "verboseLabel":  "Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs"
                            }
                        }
                    },
                "localname":  "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable":  {
                "auth_ref":  [
                    "r152"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular presentation of the description and amount of revenues from a product or service, or a group of similar products or similar services, reported from external customers during the period, if the information is not provided as part of the reportable operating segment information.",
                            "label":  "Revenue from External Customers by Products and Services [Table]",
                            "terseLabel":  "Revenue from External Customers by Products and Services [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionRevenueDisaggregatedbyProductsandServicesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock":  {
                "auth_ref":  [
                    "r152"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of entity-wide revenues from external customers for each product or service or each group of similar products or services if the information is not provided as part of the reportable operating segment information.",
                            "label":  "Revenue from External Customers by Products and Services [Table Text Block]",
                            "terseLabel":  "Revenue from External Customers by Products and Services"
                            }
                        }
                    },
                "localname":  "ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RevenueRecognitionTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock":  {
                "auth_ref":  [
                    "r435",
                    "r436"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis.  The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
                            "label":  "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
                            "terseLabel":  "Assets and Liabilities Measured at Fair Value on a Recurring Basis"
                            }
                        }
                    },
                "localname":  "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/FairValueMeasurementsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable":  {
                "auth_ref":  [
                    "r230",
                    "r232",
                    "r512"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
                            "label":  "Schedule of Finite-Lived Intangible Assets [Table]",
                            "terseLabel":  "Schedule of Finite-Lived Intangible Assets [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfFiniteLivedIntangibleAssetsTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock":  {
                "auth_ref":  [
                    "r230",
                    "r232"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of assets, excluding financial assets and goodwill, lacking physical substance with a finite life, by either major class or business segment.",
                            "label":  "Schedule of Finite-Lived Intangible Assets [Table Text Block]",
                            "terseLabel":  "Schedule of Intangible Assets"
                            }
                        }
                    },
                "localname":  "ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfGoodwillTextBlock":  {
                "auth_ref":  [
                    "r226",
                    "r227"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of goodwill by reportable segment and in total which includes a rollforward schedule.",
                            "label":  "Schedule of Goodwill [Table Text Block]",
                            "terseLabel":  "Schedule of Goodwill"
                            }
                        }
                    },
                "localname":  "ScheduleOfGoodwillTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/GoodwillTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfInventoryCurrentTableTextBlock":  {
                "auth_ref":  [
                    "r7",
                    "r27",
                    "r28",
                    "r29"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the carrying amount as of the balance sheet date of merchandise, goods, commodities, or supplies held for future sale or to be used in manufacturing, servicing or production process.",
                            "label":  "Schedule of Inventory, Current [Table Text Block]",
                            "terseLabel":  "Schedule of Inventories"
                            }
                        }
                    },
                "localname":  "ScheduleOfInventoryCurrentTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/InventoriesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock":  {
                "auth_ref":  [
                    "r328"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the changes in outstanding nonvested restricted stock units.",
                            "label":  "Schedule of Nonvested Restricted Stock Units Activity [Table Text Block]",
                            "terseLabel":  "Schedule of Nonvested Restricted Stock Units Activity"
                            }
                        }
                    },
                "localname":  "ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfProductWarrantyLiabilityTableTextBlock":  {
                "auth_ref":  [
                    "r264"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the changes in the guarantor's aggregate product warranty liability, including the beginning balance of the aggregate product warranty liability, the aggregate reductions in that liability for payments made (in cash or in kind) under the warranty, the aggregate changes in the liability for accruals related to product warranties issued during the reporting period, the aggregate changes in the liability for accruals related to preexisting warranties (including adjustments related to changes in estimates), and the ending balance of the aggregate product warranty liability.",
                            "label":  "Schedule of Product Warranty Liability [Table Text Block]",
                            "terseLabel":  "Changes in Warranty Obligations"
                            }
                        }
                    },
                "localname":  "ScheduleOfProductWarrantyLiabilityTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WarrantyObligationsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfRestructuringAndRelatedCostsTable":  {
                "auth_ref":  [
                    "r248",
                    "r249",
                    "r253"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Table presenting the description of the restructuring costs, such as the expected cost; the costs incurred during the period; the cumulative costs incurred as of the balance sheet date; the income statement caption within which the restructuring charges recognized for the period are included; and the amount of and periodic changes to an entity's restructuring reserve that occurred during the period associated with the exit from or disposal of business activities or restructurings for each major type of cost by type of restructuring.",
                            "label":  "Schedule of Restructuring and Related Costs [Table]",
                            "terseLabel":  "Schedule of Restructuring and Related Costs [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfRestructuringAndRelatedCostsTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfRestructuringAndRelatedCostsTextBlock":  {
                "auth_ref":  [
                    "r248",
                    "r249",
                    "r253"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of costs incurred for restructuring including, but not limited to, exit and disposal activities, remediation, implementation, integration, asset impairment, and charges against earnings from the write-down of assets.",
                            "label":  "Restructuring and Related Costs [Table Text Block]",
                            "terseLabel":  "Schedule of Restructuring Charges"
                            }
                        }
                    },
                "localname":  "ScheduleOfRestructuringAndRelatedCostsTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfRestructuringReserveByTypeOfCostTextBlock":  {
                "auth_ref":  [
                    "r245",
                    "r255"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of an entity's restructuring reserve that occurred during the period associated with the exit from or disposal of business activities or restructurings for each major type of cost.  This element may also include a description of any reversal and other adjustment made during the period to the amount of an accrued liability for restructuring activities.  This element may be used to encapsulate the roll forward presentations of an entity's restructuring reserve by type of cost and in total, and explanation of changes that occurred in the period.",
                            "label":  "Schedule of Restructuring Reserve by Type of Cost [Table Text Block]",
                            "terseLabel":  "Schedule of Activity in Restructuring Reserve"
                            }
                        }
                    },
                "localname":  "ScheduleOfRestructuringReserveByTypeOfCostTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable":  {
                "auth_ref":  [
                    "r317",
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Disclosure of information about share-based payment arrangement.",
                            "label":  "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]",
                            "terseLabel":  "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
                            }
                        }
                    },
                "localname":  "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock":  {
                "auth_ref":  [
                    "r320",
                    "r333",
                    "r335"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure for stock option plans.  Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value.",
                            "label":  "Share-based Payment Arrangement, Option, Activity [Table Text Block]",
                            "terseLabel":  "Summary of Stock Option Activity"
                            }
                        }
                    },
                "localname":  "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock":  {
                "auth_ref":  [
                    "r338"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the significant assumptions used during the year to estimate the fair value of stock options, including, but not limited to: (a) expected term of share options and similar instruments, (b) expected volatility of the entity's shares, (c) expected dividends, (d) risk-free rate(s), and (e) discount for post-vesting restrictions.",
                            "label":  "Schedule of Share-based Payment Award, Stock Options, Valuation Assumptions [Table Text Block]",
                            "terseLabel":  "Weighted-Average Assumptions Used in Estimating Fair Values of Stock Options Granted"
                            }
                        }
                    },
                "localname":  "ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock":  {
                "auth_ref":  [
                    "r181"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "For all investments in an unrealized loss position, including those for which other-than-temporary impairments have not been recognized in earnings (including investments for which a portion of an other-than-temporary impairment has been recognized in other comprehensive income), a tabular disclosure of the aggregate related fair value of investments with unrealized losses and the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value).",
                            "label":  "Schedule of Unrealized Loss on Investments [Table Text Block]",
                            "terseLabel":  "Gross Unrealized Losses and Fair Values for Available-for-Sale Investments"
                            }
                        }
                    },
                "localname":  "ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleOfWeightedAverageNumberOfSharesTableTextBlock":  {
                "auth_ref":  [
                    "r129"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the weighted average number of shares used in calculating basic net earnings per share (or unit) and diluted earnings per share (or unit).",
                            "label":  "Schedule of Weighted Average Number of Shares [Table Text Block]",
                            "terseLabel":  "Calculation of Weighted-Average Shares"
                            }
                        }
                    },
                "localname":  "ScheduleOfWeightedAverageNumberOfSharesTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock":  {
                "auth_ref":  [
                    "r232"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets.",
                            "label":  "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
                            "terseLabel":  "Schedule of Intangible Assets, Future Amortization Expense"
                            }
                        }
                    },
                "localname":  "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsTables"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_SellingGeneralAndAdministrativeExpense":  {
                "auth_ref":  [
                    "r76"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations":  {
                        "order":  3.0,
                        "parentTag":  "us-gaap_OperatingIncomeLoss",
                        "weight":  -1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The aggregate total costs related to selling a firm's product and services, as well as all other general and administrative expenses.  Direct selling expenses (for example, credit, warranty, and advertising) are expenses that can be directly linked to the sale of specific products.  Indirect selling expenses are expenses that cannot be directly linked to the sale of specific products, for example telephone expenses, Internet, and postal charges.  General and administrative expenses include salaries of non-sales personnel, rent, utilities, communication, etc.",
                            "label":  "Selling, General and Administrative Expense",
                            "terseLabel":  "Selling, general, and administrative expenses"
                            }
                        }
                    },
                "localname":  "SellingGeneralAndAdministrativeExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1":  {
                "auth_ref":  [
                    "r318"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.  Includes, but is not limited to, combination of market, performance or service condition.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
                            "terseLabel":  "Vesting period for stock option plans"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod":  {
                "auth_ref":  [
                    "r326"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
                            "negatedTerseLabel":  "Forfeited or expired (in shares)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue":  {
                "auth_ref":  [
                    "r332"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
                            "terseLabel":  "Forfeited or expired (in dollars per share)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod":  {
                "auth_ref":  [
                    "r330"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
                            "terseLabel":  "Granted (in shares)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue":  {
                "auth_ref":  [
                    "r330"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
                            "terseLabel":  "Granted (in dollars per share)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber":  {
                "auth_ref":  [
                    "r329"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
                            "periodEndLabel":  "Nonvested as of March 29, 2020 (in shares)",
                            "periodStartLabel":  "Nonvested as of December 31, 2019 (in shares)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
                            "terseLabel":  "Shares (in thousands)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue":  {
                "auth_ref":  [
                    "r329"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement.  Excludes share and unit options.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
                            "periodEndLabel":  "Nonvested as of March 29, 2020 (in dollars per share)",
                            "periodStartLabel":  "Nonvested as of December 31, 2019 (in dollars per share)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
                            "terseLabel":  "Weighted-Average Grant Date Fair Value"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod":  {
                "auth_ref":  [
                    "r331"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
                            "terseLabel":  "Vested (in shares)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue":  {
                "auth_ref":  [
                    "r331"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
                            "terseLabel":  "Vested (in dollars per share)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate":  {
                "auth_ref":  [
                    "r341"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Dividend Rate",
                            "terseLabel":  "Expected dividend yield"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedinEstimatingFairValuesofStockOptionsGrantedDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate":  {
                "auth_ref":  [
                    "r340"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The estimated measure of the percentage by which a share price is expected to fluctuate during a period.  Volatility also may be defined as a probability-weighted measure of the dispersion of returns about the mean.  The volatility of a share price is the standard deviation of the continuously compounded rates of return on the share over a specified period.  That is the same as the standard deviation of the differences in the natural logarithms of the stock prices plus dividends, if any, over the period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate",
                            "terseLabel":  "Expected volatility"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedinEstimatingFairValuesofStockOptionsGrantedDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate":  {
                "auth_ref":  [
                    "r342"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The risk-free interest rate assumption that is used in valuing an option on its own shares.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate",
                            "terseLabel":  "Risk-free rate"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedinEstimatingFairValuesofStockOptionsGrantedDetails"
                    ],
                "xbrltype":  "percentItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]",
                            "terseLabel":  "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant":  {
                "auth_ref":  [
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant",
                            "terseLabel":  "Shares available for grant under stock option plans"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract]",
                            "terseLabel":  "Weighted- Average Remaining Contractual Term\u00a0(in\u00a0years)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber":  {
                "auth_ref":  [
                    "r323"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The number of shares into which fully or partially vested stock options outstanding as of the balance sheet date can be currently converted under the option plan.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Number",
                            "terseLabel":  "Exercisable as of reporting date, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    "r323"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The weighted-average price as of the balance sheet date at which grantees can acquire the shares reserved for issuance on vested portions of options outstanding and currently exercisable under the stock option plan.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Exercise Price",
                            "terseLabel":  "Exercisable as of reporting date, Weighted-Average Exercise Price, in dollars per share"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod":  {
                "auth_ref":  [
                    "r327"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "For presentations that combine terminations, the number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan or that expired.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period",
                            "negatedLabel":  "Forfeited or expired, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    "r327"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average price of options that were either forfeited or expired.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period, Weighted Average Exercise Price",
                            "terseLabel":  "Forfeited or expired, in dollars per share"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod":  {
                "auth_ref":  [
                    "r324"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Net number of share options (or share units) granted during the period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Net of Forfeitures",
                            "terseLabel":  "Granted, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue":  {
                "auth_ref":  [
                    "r334"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value",
                            "terseLabel":  "Weighted-average grant-date fair values, in dollars per share"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue":  {
                "auth_ref":  [
                    "r347"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value",
                            "terseLabel":  "Outstanding, in dollars"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber":  {
                "auth_ref":  [
                    "r322",
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of options outstanding, including both vested and non-vested options.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number",
                            "periodEndLabel":  "Outstanding, shares",
                            "periodStartLabel":  "Outstanding, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward]",
                            "terseLabel":  "Shares (in\u00a0thousands)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    "r321"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
                            "periodEndLabel":  "Outstanding, shares",
                            "periodStartLabel":  "Outstanding, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract]",
                            "terseLabel":  "Weighted- Average Exercise Price"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber":  {
                "auth_ref":  [
                    "r337"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of fully vested and expected to vest exercisable options that may be converted into shares under option plan.  Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Number",
                            "terseLabel":  "Options vested or expected to vest as of reporting date, shares"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue":  {
                "auth_ref":  [
                    "r335"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest options outstanding.  Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Aggregate Intrinsic Value",
                            "terseLabel":  "Options vested or expected to vest, in dollars"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    "r336"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest options outstanding.  Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price",
                            "terseLabel":  "Weighted- Average Remaining Contractual Term\u00a0(in\u00a0years)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod":  {
                "auth_ref":  [
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of shares issued under share-based payment arrangement.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Shares Issued in Period",
                            "terseLabel":  "Issuance of common stock under stock plans (in shares)"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain":  {
                "auth_ref":  [
                    "r315",
                    "r319"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Award under share-based payment arrangement.",
                            "label":  "Award Type [Domain]",
                            "terseLabel":  "Award Type [Domain]"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseDetails",
                    "http://www.cognex.com/role/StockBasedCompensationExpenseStockBasedCompensationExpenseScheduleofRestrictedStockUnitsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average price at which option holders acquired shares when converting their stock options into shares.",
                            "label":  "Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price",
                            "terseLabel":  "Exercised, in dollars per share"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options.",
                            "label":  "Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price",
                            "terseLabel":  "Granted, in dollars per share"
                            }
                        }
                    },
                "localname":  "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "perShareItemType"
                },
            "us-gaap_ShareRepurchaseProgramAxis":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by share repurchase program.",
                            "label":  "Share Repurchase Program [Axis]",
                            "terseLabel":  "Share Repurchase Program [Axis]"
                            }
                        }
                    },
                "localname":  "ShareRepurchaseProgramAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_ShareRepurchaseProgramDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Name of the share repurchase program.",
                            "label":  "Share Repurchase Program [Domain]",
                            "terseLabel":  "Share Repurchase Program [Domain]"
                            }
                        }
                    },
                "localname":  "ShareRepurchaseProgramDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1":  {
                "auth_ref":  [
                    "r339",
                    "r358"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Expected term of award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term",
                            "terseLabel":  "Expected term (in years)"
                            }
                        }
                    },
                "localname":  "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseWeightedAverageAssumptionsUsedinEstimatingFairValuesofStockOptionsGrantedDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1":  {
                "auth_ref":  [
                    "r347"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average remaining contractual term for vested portions of options outstanding and currently exercisable or convertible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term",
                            "terseLabel":  "Exercisable, in years"
                            }
                        }
                    },
                "localname":  "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2":  {
                "auth_ref":  [
                    "r336"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
                            "terseLabel":  "Outstanding, in years"
                            }
                        }
                    },
                "localname":  "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1":  {
                "auth_ref":  [
                    "r336"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Weighted average remaining contractual term for fully vested and expected to vest options outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.  Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term",
                            "terseLabel":  "Options vested or expected to vest, in years"
                            }
                        }
                    },
                "localname":  "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "durationItemType"
                },
            "us-gaap_ShortTermInvestmentsMember":  {
                "auth_ref":  [
                    "r578",
                    "r579",
                    "r580",
                    "r581"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet.",
                            "label":  "Short-term Investments [Member]",
                            "terseLabel":  "Short-Term Investments"
                            }
                        }
                    },
                "localname":  "ShortTermInvestmentsMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_SignificantAccountingPoliciesTextBlock":  {
                "auth_ref":  [
                    "r99"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for all significant accounting policies of the reporting entity.",
                            "label":  "Significant Accounting Policies [Text Block]",
                            "terseLabel":  "Summary of Significant Accounting Policies"
                            }
                        }
                    },
                "localname":  "SignificantAccountingPoliciesTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SummaryofSignificantAccountingPolicies"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_SovereignDebtMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Debt securities that are issued or guaranteed by a national government.",
                            "label":  "Sovereign Debt [Member]",
                            "terseLabel":  "Sovereign bonds"
                            }
                        }
                    },
                "localname":  "SovereignDebtMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_SovereignDebtSecuritiesMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Debt security issued by foreign government (not within the country of domicile of the entity).",
                            "label":  "Sovereign Debt Securities [Member]",
                            "terseLabel":  "Sovereign Bonds"
                            }
                        }
                    },
                "localname":  "SovereignDebtSecuritiesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_StateAdministrationOfTaxationChinaMember":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Designated tax department of the government of China.",
                            "label":  "State Administration of Taxation, China [Member]",
                            "terseLabel":  "State Administration of Taxation, China"
                            }
                        }
                    },
                "localname":  "StateAdministrationOfTaxationChinaMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_StatementEquityComponentsAxis":  {
                "auth_ref":  [
                    "r40",
                    "r100",
                    "r101",
                    "r102",
                    "r106",
                    "r115",
                    "r117",
                    "r136",
                    "r190",
                    "r266",
                    "r267",
                    "r353",
                    "r354",
                    "r355",
                    "r381",
                    "r382",
                    "r453",
                    "r454",
                    "r455",
                    "r456",
                    "r457",
                    "r459",
                    "r555",
                    "r556",
                    "r557"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by component of equity.",
                            "label":  "Equity Components [Axis]",
                            "terseLabel":  "Equity Components [Axis]"
                            }
                        }
                    },
                "localname":  "StatementEquityComponentsAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "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.",
                            "label":  "Statement [Line Items]",
                            "terseLabel":  "Statement [Line Items]"
                            }
                        }
                    },
                "localname":  "StatementLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementOfCashFlowsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statement of Cash Flows [Abstract]",
                            "terseLabel":  "Statement of Cash Flows [Abstract]"
                            }
                        }
                    },
                "localname":  "StatementOfCashFlowsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementOfFinancialPositionAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statement of Financial Position [Abstract]",
                            "terseLabel":  "Statement of Financial Position [Abstract]"
                            }
                        }
                    },
                "localname":  "StatementOfFinancialPositionAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statement of Comprehensive Income [Abstract]",
                            "terseLabel":  "Statement of Comprehensive Income [Abstract]"
                            }
                        }
                    },
                "localname":  "StatementOfIncomeAndComprehensiveIncomeAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementOfStockholdersEquityAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Statement of Stockholders' Equity [Abstract]",
                            "terseLabel":  "Statement of Stockholders' Equity [Abstract]"
                            }
                        }
                    },
                "localname":  "StatementOfStockholdersEquityAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StatementTable":  {
                "auth_ref":  [
                    "r100",
                    "r101",
                    "r102",
                    "r136",
                    "r511"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
                            "label":  "Statement [Table]",
                            "terseLabel":  "Statement [Table]"
                            }
                        }
                    },
                "localname":  "StatementTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised":  {
                "auth_ref":  [
                    "r13",
                    "r14",
                    "r266",
                    "r267",
                    "r325"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of share options (or share units) exercised during the current period.",
                            "label":  "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period",
                            "negatedLabel":  "Exercised, shares"
                            }
                        }
                    },
                "localname":  "StockIssuedDuringPeriodSharesStockOptionsExercised",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockBasedCompensationExpenseSummaryofStockOptionActivityDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised":  {
                "auth_ref":  [
                    "r40",
                    "r266",
                    "r267"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Value of stock issued as a result of the exercise of stock options.",
                            "label":  "Stock Issued During Period, Value, Stock Options Exercised",
                            "terseLabel":  "Issuance of common stock under stock plans"
                            }
                        }
                    },
                "localname":  "StockIssuedDuringPeriodValueStockOptionsExercised",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockOptionPlanExpense":  {
                "auth_ref":  [
                    "r89"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows":  {
                        "order":  9.0,
                        "parentTag":  "us-gaap_NetCashProvidedByUsedInOperatingActivities",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of noncash expense for option under share-based payment arrangement.",
                            "label":  "Stock or Unit Option Plan Expense",
                            "terseLabel":  "Stock-based compensation expense"
                            }
                        }
                    },
                "localname":  "StockOptionPlanExpense",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofCashFlows"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockRepurchaseProgramAuthorizedAmount1":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount of stock repurchase plan authorized.",
                            "label":  "Stock Repurchase Program, Authorized Amount",
                            "terseLabel":  "Authorized common stock to be repurchased"
                            }
                        }
                    },
                "localname":  "StockRepurchaseProgramAuthorizedAmount1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1":  {
                "auth_ref":  [
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount remaining of a stock repurchase plan authorized.",
                            "label":  "Stock Repurchase Program, Remaining Authorized Repurchase Amount",
                            "terseLabel":  "Remaining authorized repurchase amount"
                            }
                        }
                    },
                "localname":  "StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockRepurchasedDuringPeriodShares":  {
                "auth_ref":  [
                    "r13",
                    "r14",
                    "r266",
                    "r267"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of shares that have been repurchased during the period and have not been retired and are not held in treasury.  Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore.  This element is used when state law does not recognize treasury stock.",
                            "label":  "Stock Repurchased During Period, Shares",
                            "negatedLabel":  "Repurchase of common stock (in shares)",
                            "verboseLabel":  "Repurchase of common stock (in shares)"
                            }
                        }
                    },
                "localname":  "StockRepurchasedDuringPeriodShares",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_StockRepurchasedDuringPeriodValue":  {
                "auth_ref":  [
                    "r13",
                    "r14",
                    "r266",
                    "r267"
                    ],
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury.  Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore.  This element is used when state law does not recognize treasury stock.",
                            "label":  "Stock Repurchased During Period, Value",
                            "negatedLabel":  "Repurchase of common stock",
                            "terseLabel":  "Stock repurchased during period, value"
                            }
                        }
                    },
                "localname":  "StockRepurchasedDuringPeriodValue",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity",
                    "http://www.cognex.com/role/StockRepurchaseProgramDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockholdersEquity":  {
                "auth_ref":  [
                    "r14",
                    "r19",
                    "r20",
                    "r96",
                    "r161",
                    "r186",
                    "r445"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_LiabilitiesAndStockholdersEquity",
                        "weight":  1.0
                        }
                    },
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent.  The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest).  This excludes temporary equity and is sometimes called permanent equity.",
                            "label":  "Stockholders' Equity Attributable to Parent",
                            "periodEndLabel":  "Ending Balance",
                            "periodStartLabel":  "Beginning Balance",
                            "totalLabel":  "Total shareholders\u2019 equity"
                            }
                        }
                    },
                "localname":  "StockholdersEquity",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets",
                    "http://www.cognex.com/role/ConsolidatedStatementofShareholdersEquity"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_StockholdersEquityAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Stockholders' Equity Attributable to Parent [Abstract]",
                            "terseLabel":  "Shareholders\u2019 equity:"
                            }
                        }
                    },
                "localname":  "StockholdersEquityAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_StockholdersEquityNoteDisclosureTextBlock":  {
                "auth_ref":  [
                    "r95",
                    "r267",
                    "r272"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income.  Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
                            "label":  "Stockholders' Equity Note Disclosure [Text Block]",
                            "terseLabel":  "Stock Repurchase Program"
                            }
                        }
                    },
                "localname":  "StockholdersEquityNoteDisclosureTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/StockRepurchaseProgram"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_SubsequentEventLineItems":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Detail information of subsequent event by type.  User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
                            "label":  "Subsequent Event [Line Items]",
                            "terseLabel":  "Subsequent Event [Line Items]"
                            }
                        }
                    },
                "localname":  "SubsequentEventLineItems",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_SubsequentEventMember":  {
                "auth_ref":  [
                    "r460",
                    "r477"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
                            "label":  "Subsequent Event [Member]",
                            "terseLabel":  "Subsequent Event"
                            }
                        }
                    },
                "localname":  "SubsequentEventMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_SubsequentEventTable":  {
                "auth_ref":  [
                    "r460",
                    "r477"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
                            "label":  "Subsequent Event [Table]",
                            "terseLabel":  "Subsequent Event [Table]"
                            }
                        }
                    },
                "localname":  "SubsequentEventTable",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_SubsequentEventTypeAxis":  {
                "auth_ref":  [
                    "r460",
                    "r477"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
                            "label":  "Subsequent Event Type [Axis]",
                            "terseLabel":  "Subsequent Event Type [Axis]"
                            }
                        }
                    },
                "localname":  "SubsequentEventTypeAxis",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_SubsequentEventTypeDomain":  {
                "auth_ref":  [
                    "r460",
                    "r477"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
                            "label":  "Subsequent Event Type [Domain]",
                            "terseLabel":  "Subsequent Event Type [Domain]"
                            }
                        }
                    },
                "localname":  "SubsequentEventTypeDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEventsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_SubsequentEventsAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Subsequent Events [Abstract]",
                            "terseLabel":  "Subsequent Events [Abstract]"
                            }
                        }
                    },
                "localname":  "SubsequentEventsAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "xbrltype":  "stringItemType"
                },
            "us-gaap_SubsequentEventsTextBlock":  {
                "auth_ref":  [
                    "r476",
                    "r478"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.  Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
                            "label":  "Subsequent Events [Text Block]",
                            "terseLabel":  "Subsequent Events"
                            }
                        }
                    },
                "localname":  "SubsequentEventsTextBlock",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/SubsequentEvents"
                    ],
                "xbrltype":  "textBlockItemType"
                },
            "us-gaap_TrademarksMember":  {
                "auth_ref":  [
                    "r397"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Rights acquired through registration of a trademark to gain or protect exclusive use of a business name, symbol or other device or style.",
                            "label":  "Trademarks [Member]",
                            "terseLabel":  "Trademarks"
                            }
                        }
                    },
                "localname":  "TrademarksMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IntangibleAssetsDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain":  {
                "auth_ref":  [
                    "r177",
                    "r178",
                    "r479",
                    "r480",
                    "r481",
                    "r482",
                    "r483",
                    "r484",
                    "r485",
                    "r486",
                    "r487",
                    "r488",
                    "r489",
                    "r490",
                    "r491",
                    "r493",
                    "r494",
                    "r495",
                    "r496",
                    "r497",
                    "r498",
                    "r499",
                    "r500",
                    "r501",
                    "r502",
                    "r503",
                    "r504",
                    "r505",
                    "r506",
                    "r507",
                    "r508",
                    "r509"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
                            "label":  "Financial Instruments [Domain]",
                            "terseLabel":  "Financial Instruments [Domain]"
                            }
                        }
                    },
                "localname":  "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_TypeOfAdoptionMember":  {
                "auth_ref":  [
                    "r105",
                    "r106",
                    "r107",
                    "r109",
                    "r187",
                    "r188",
                    "r189",
                    "r190",
                    "r193",
                    "r194",
                    "r349",
                    "r350",
                    "r351",
                    "r352",
                    "r353",
                    "r354",
                    "r355",
                    "r357",
                    "r379",
                    "r380",
                    "r381",
                    "r382",
                    "r513",
                    "r514",
                    "r515",
                    "r553",
                    "r554",
                    "r555",
                    "r556",
                    "r557",
                    "r558",
                    "r559",
                    "r560",
                    "r561",
                    "r562",
                    "r563",
                    "r564"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amendment to accounting standards.",
                            "label":  "Accounting Standards Update [Domain]",
                            "terseLabel":  "Accounting Standards Update [Domain]"
                            }
                        }
                    },
                "localname":  "TypeOfAdoptionMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_TypeOfRestructuringDomain":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Identification of the types of restructuring costs.",
                            "label":  "Type of Restructuring [Domain]",
                            "terseLabel":  "Type of Restructuring [Domain]"
                            }
                        }
                    },
                "localname":  "TypeOfRestructuringDomain",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/RestructuringChargesActivityinRestructuringReserveDetails",
                    "http://www.cognex.com/role/RestructuringChargesSummaryDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_USTreasurySecuritiesMember":  {
                "auth_ref":  [
                    "r302",
                    "r309",
                    "r529"
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "This category includes information about debt securities issued by the United States Department of the Treasury and backed by the United States government.  Such securities primarily consist of treasury bills (short-term maturities - one year or less), treasury notes (intermediate term maturities - two to ten years), and treasury bonds (long-term maturities - ten to thirty years).",
                            "label":  "US Treasury Securities [Member]",
                            "terseLabel":  "Treasury Bills"
                            }
                        }
                    },
                "localname":  "USTreasurySecuritiesMember",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsComponentsofCashCashEquivalentsandInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsEffectiveMaturityDatesofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsGrossUnrealizedLossesandFairValuesforAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/CashCashEquivalentsandInvestmentsSummaryofAvailableforSaleInvestmentsDetails",
                    "http://www.cognex.com/role/FairValueMeasurementsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
                    ],
                "xbrltype":  "domainItemType"
                },
            "us-gaap_UnbilledReceivablesCurrent":  {
                "auth_ref":  [
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets":  {
                        "order":  4.0,
                        "parentTag":  "us-gaap_AssetsCurrent",
                        "weight":  1.0
                        }
                    },
                "crdr":  "debit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount received for services rendered and products shipped, but not yet billed, for non-contractual agreements due within one year or the normal operating cycle, if longer.",
                            "label":  "Unbilled Receivables, Current",
                            "terseLabel":  "Unbilled revenue"
                            }
                        }
                    },
                "localname":  "UnbilledReceivablesCurrent",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedBalanceSheets"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued":  {
                "auth_ref":  [
                    "r369"
                    ],
                "crdr":  "credit",
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return.",
                            "label":  "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued",
                            "terseLabel":  "Interest and penalties, gross"
                            }
                        }
                    },
                "localname":  "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/IncomeTaxesDetails"
                    ],
                "xbrltype":  "monetaryItemType"
                },
            "us-gaap_WeightedAverageNumberBasicSharesOutstandingAdjustmentProForma":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Adjustment to the weighted average number of basic shares outstanding to convert this to a pro forma presentation.",
                            "label":  "Weighted Average Number Basic Shares Outstanding Adjustment, Pro Forma",
                            "terseLabel":  "Weighted Average Number Basic Shares Outstanding Adjustment, Pro Forma"
                            }
                        }
                    },
                "localname":  "WeightedAverageNumberBasicSharesOutstandingAdjustmentProForma",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment":  {
                "auth_ref":  [
                    "r127"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails":  {
                        "order":  2.0,
                        "parentTag":  "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The sum of dilutive potential common shares or units used in the calculation of the diluted per-share or per-unit computation.",
                            "label":  "Weighted Average Number Diluted Shares Outstanding Adjustment",
                            "terseLabel":  "Effect of dilutive equity awards"
                            }
                        }
                    },
                "localname":  "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails",
                    "http://www.cognex.com/role/WeightedAverageSharesDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding":  {
                "auth_ref":  [
                    "r122",
                    "r127"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails":  {
                        "order":  null,
                        "parentTag":  null,
                        "root":  true,
                        "weight":  null
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
                            "label":  "Weighted Average Number of Shares Outstanding, Diluted",
                            "terseLabel":  "Diluted (shares)",
                            "totalLabel":  "Weighted-average common and common-equivalent shares outstanding"
                            }
                        }
                    },
                "localname":  "WeightedAverageNumberOfDilutedSharesOutstanding",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails"
                    ],
                "xbrltype":  "sharesItemType"
                },
            "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract":  {
                "auth_ref":  [
                    ],
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "label":  "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
                            "terseLabel":  "Weighted-average common and common-equivalent shares outstanding:"
                            }
                        }
                    },
                "localname":  "WeightedAverageNumberOfSharesOutstandingAbstract",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations"
                    ],
                "xbrltype":  "stringItemType"
                },
            "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic":  {
                "auth_ref":  [
                    "r121",
                    "r127"
                    ],
                "calculation":  {
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails":  {
                        "order":  1.0,
                        "parentTag":  "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
                        "weight":  1.0
                        }
                    },
                "lang":  {
                    "en-US":  {
                        "role":  {
                            "documentation":  "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
                            "label":  "Weighted Average Number of Shares Outstanding, Basic",
                            "terseLabel":  "Basic (shares)",
                            "verboseLabel":  "Basic weighted-average common shares outstanding"
                            }
                        }
                    },
                "localname":  "WeightedAverageNumberOfSharesOutstandingBasic",
                "nsuri":  "http://fasb.org/us-gaap/2020-01-31",
                "presentation":  [
                    "http://www.cognex.com/role/ConsolidatedStatementsofOperations",
                    "http://www.cognex.com/role/WeightedAverageSharesCalculationofWeightedAverageSharesDetails"
                    ],
                "xbrltype":  "sharesItemType"
                }
            },
        "unitCount":  12
        }
    },
"std_ref":  {
    "r0":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "205",
        "URI":  "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
        },
    "r1":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
        },
    "r10":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(14))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r100":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "23",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21914-107793"
        },
    "r101":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "24",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21930-107793"
        },
    "r102":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21711-107793"
        },
    "r103":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r104":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(1)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r105":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(2)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r106":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(3)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r107":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(4)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r108":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r109":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
        },
    "r11":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(20))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r110":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "11",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
        },
    "r111":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "11",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
        },
    "r112":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794"
        },
    "r113":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22595-107794"
        },
    "r114":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
        },
    "r115":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
        },
    "r116":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794"
        },
    "r117":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794"
        },
    "r118":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 11.M.Q2)",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=112272810&loc=d3e31137-122693"
        },
    "r119":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/extlink&oid=112272810&loc=SL108384541-122693"
        },
    "r12":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(24))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r120":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "250",
        "URI":  "http://asc.fasb.org/topic&trid=2122394"
        },
    "r121":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1448-109256"
        },
    "r122":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "16",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1505-109256"
        },
    "r123":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1252-109256"
        },
    "r124":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "60B",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
        },
    "r125":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "60B",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
        },
    "r126":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1337-109256"
        },
    "r127":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
        },
    "r128":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
        },
    "r129":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
        },
    "r13":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(28))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r130":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
        },
    "r131":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
        },
    "r132":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=120380238&loc=d3e3842-109258"
        },
    "r133":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "52",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/extlink&oid=120380238&loc=d3e4984-109258"
        },
    "r134":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "260",
        "URI":  "http://asc.fasb.org/topic&trid=2144383"
        },
    "r135":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "270",
        "URI":  "http://asc.fasb.org/extlink&oid=121640914&loc=SL77927221-108306"
        },
    "r136":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "272",
        "URI":  "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70191-108054"
        },
    "r137":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "18",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "275",
        "URI":  "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
        },
    "r138":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "22",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
        },
    "r139":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "22",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
        },
    "r14":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(29))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r140":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "22",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(h)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
        },
    "r141":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "22",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
        },
    "r142":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "30",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
        },
    "r143":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "30",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
        },
    "r144":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "30",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
        },
    "r145":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "30",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
        },
    "r146":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "31",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599"
        },
    "r147":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "32",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
        },
    "r148":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "32",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
        },
    "r149":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "32",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
        },
    "r15":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(3))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r150":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "32",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
        },
    "r151":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "32",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
        },
    "r152":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "40",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599"
        },
    "r153":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "41",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
        },
    "r154":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "41",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
        },
    "r155":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "41",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "a",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
        },
    "r156":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "42",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "280",
        "URI":  "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599"
        },
    "r157":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4428-111522"
        },
    "r158":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4531-111522"
        },
    "r159":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5033-111524"
        },
    "r16":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(30)(a)(1))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r160":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5074-111524"
        },
    "r161":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 4.E)",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74512-122707"
        },
    "r162":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534"
        },
    "r163":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534"
        },
    "r164":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "310",
        "URI":  "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534"
        },
    "r165":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26610-111562"
        },
    "r166":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26626-111562"
        },
    "r167":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121553693&loc=SL6284422-111562"
        },
    "r168":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r169":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(aa)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r17":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(30)(a)(3))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r170":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(aaa)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r171":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r172":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r173":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r174":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
        },
    "r175":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
        },
    "r176":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
        },
    "r177":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
        },
    "r178":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
        },
    "r179":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)(1)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
        },
    "r18":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(30)(a)(4))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r180":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)(2)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
        },
    "r181":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
        },
    "r182":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27337-111563"
        },
    "r183":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27340-111563"
        },
    "r184":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)-(d)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
        },
    "r185":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "320",
        "URI":  "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
        },
    "r186":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "323",
        "URI":  "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
        },
    "r187":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r188":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r189":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r19":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(30))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r190":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r191":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(1)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r192":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(2)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r193":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(3)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r194":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(4)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
        },
    "r195":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599878&loc=SL82895884-210446"
        },
    "r196":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "11",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919244-210447"
        },
    "r197":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
        },
    "r198":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
        },
    "r199":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
        },
    "r2":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
        },
    "r20":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(31))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r200":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(f)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
        },
    "r201":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
        },
    "r202":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919253-210447"
        },
    "r203":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "16",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
        },
    "r204":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919230-210447"
        },
    "r205":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "79",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922352-210448"
        },
    "r206":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121558606&loc=SL82898722-210454"
        },
    "r207":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121558606&loc=SL82922868-210454"
        },
    "r208":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(1)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
        },
    "r209":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(2)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
        },
    "r21":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(32))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r210":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
        },
    "r211":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922890-210455"
        },
    "r212":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922895-210455"
        },
    "r213":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922897-210455"
        },
    "r214":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
        },
    "r215":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(g)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
        },
    "r216":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(h)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
        },
    "r217":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(i)",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
        },
    "r218":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
        },
    "r219":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "30",
        "Topic":  "326",
        "URI":  "http://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
        },
    "r22":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(4)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r220":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.BB)",
        "Topic":  "330",
        "URI":  "http://asc.fasb.org/extlink&oid=27011343&loc=d3e100047-122729"
        },
    "r221":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "330",
        "URI":  "http://asc.fasb.org/topic&trid=2126998"
        },
    "r222":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "40",
        "Subparagraph":  "(a)",
        "Topic":  "340",
        "URI":  "http://asc.fasb.org/extlink&oid=68051541&loc=SL49131252-203054"
        },
    "r223":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266"
        },
    "r224":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=120320667&loc=SL49117168-202975"
        },
    "r225":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(f)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
        },
    "r226":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
        },
    "r227":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267"
        },
    "r228":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "SubTopic":  "20",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/subtopic&trid=2144439"
        },
    "r229":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274"
        },
    "r23":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(5))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r230":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
        },
    "r231":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(d)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
        },
    "r232":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
        },
    "r233":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(1)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
        },
    "r234":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(2)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
        },
    "r235":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(3)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
        },
    "r236":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(d)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
        },
    "r237":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(b)",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16373-109275"
        },
    "r238":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "350",
        "URI":  "http://asc.fasb.org/topic&trid=2144416"
        },
    "r239":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "360",
        "URI":  "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
        },
    "r24":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(a)(1))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r240":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "360",
        "URI":  "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
        },
    "r241":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "360",
        "URI":  "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
        },
    "r242":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r243":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r244":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(1)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r245":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(2)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r246":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r247":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r248":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
        },
    "r249":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 5.P.3)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140864-122747"
        },
    "r25":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(a)(3))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r250":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.3)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140864-122747"
        },
    "r251":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 5.P.4(b)(2))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r252":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 5.P.4(b))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r253":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 5.P.4)",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r254":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.4(b)(1))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r255":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.4(b)(2))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r256":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.4(b))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r257":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.4(c))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r258":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 5.P.4(d))",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
        },
    "r259":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "420",
        "URI":  "http://asc.fasb.org/topic&trid=2175745"
        },
    "r26":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(a)(4))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r260":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "((c)(2))",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/extlink&oid=68068213&loc=d3e12565-110249"
        },
    "r261":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "((c)(3))",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/extlink&oid=68068213&loc=d3e12565-110249"
        },
    "r262":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/extlink&oid=68068213&loc=d3e12565-110249"
        },
    "r263":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(5)",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/extlink&oid=68068213&loc=d3e12565-110249"
        },
    "r264":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/extlink&oid=68068213&loc=d3e12565-110249"
        },
    "r265":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "460",
        "URI":  "http://asc.fasb.org/topic&trid=2155896"
        },
    "r266":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
        },
    "r267":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.3-04)",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
        },
    "r268":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655"
        },
    "r269":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=6405834&loc=d3e23285-112656"
        },
    "r27":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(a))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r270":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=6405834&loc=d3e23309-112656"
        },
    "r271":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/extlink&oid=6405834&loc=d3e23315-112656"
        },
    "r272":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "505",
        "URI":  "http://asc.fasb.org/topic&trid=2208762"
        },
    "r273":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121556615&loc=SL49130531-203044"
        },
    "r274":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121556615&loc=SL49130532-203044"
        },
    "r275":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130551-203045"
        },
    "r276":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
        },
    "r277":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
        },
    "r278":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
        },
    "r279":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
        },
    "r28":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(b))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r280":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130554-203045"
        },
    "r281":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(2)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130556-203045"
        },
    "r282":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130558-203045"
        },
    "r283":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045"
        },
    "r284":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045"
        },
    "r285":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130549-203045"
        },
    "r286":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130550-203045"
        },
    "r287":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r288":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r289":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r29":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(6)(c))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r290":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r291":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r292":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r293":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "91",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Subparagraph":  "(g)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
        },
    "r294":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(g)(2)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
        },
    "r295":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(i)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
        },
    "r296":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(i)(2)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
        },
    "r297":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(j)",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/extlink&oid=113356391&loc=SL49131195-203048"
        },
    "r298":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "606",
        "URI":  "http://asc.fasb.org/topic&trid=49130388"
        },
    "r299":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "710",
        "URI":  "http://asc.fasb.org/extlink&oid=6409950&loc=d3e20396-108366"
        },
    "r3":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
        },
    "r30":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(7))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r300":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "710",
        "URI":  "http://asc.fasb.org/topic&trid=2127225"
        },
    "r301":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(i)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r302":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(ii)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r303":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(01)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r304":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(02)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r305":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(02)(A)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r306":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(02)(B)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r307":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(02)(C)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r308":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(d)(iv)(03)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
        },
    "r309":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4179-114921"
        },
    "r31":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(8))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r310":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "11",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "80",
        "Subparagraph":  "(a)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
        },
    "r311":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "80",
        "Subparagraph":  "(d)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
        },
    "r312":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "80",
        "Subparagraph":  "(a)",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
        },
    "r313":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "80",
        "Topic":  "715",
        "URI":  "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
        },
    "r314":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "35",
        "SubTopic":  "10",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121326096&loc=d3e4534-113899"
        },
    "r315":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
        },
    "r316":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
        },
    "r317":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
        },
    "r318":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r319":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a),(g)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r32":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.1)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r320":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r321":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(i)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r322":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(i)-(ii)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r323":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(iii)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r324":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(iv)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r325":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(iv)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r326":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(iv)(3)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r327":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(1)(iv)(3)-(4)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r328":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r329":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)(i)-(ii)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r33":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.12)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r330":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)(iii)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r331":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)(iii)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r332":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(2)(iii)(3)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r333":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r334":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r335":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r336":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r337":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r338":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r339":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)(i)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r34":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.17)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r340":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)(ii)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r341":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)(iii)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r342":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)(iv)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r343":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(g)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r344":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(h)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r345":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(h)(1)(i)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r346":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(i)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r347":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
        },
    "r348":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120381028&loc=SL79508275-113901"
        },
    "r349":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r35":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.19(a))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r350":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r351":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r352":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r353":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r354":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r355":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(f)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r356":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(g)(1)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r357":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(g)(2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
        },
    "r358":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 14.D.2)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809"
        },
    "r359":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 14.F)",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809"
        },
    "r36":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.19-26)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r360":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11149-113907"
        },
    "r361":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11178-113907"
        },
    "r362":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "35",
        "SubTopic":  "740",
        "Topic":  "718",
        "URI":  "http://asc.fasb.org/extlink&oid=120384911&loc=d3e23163-113944"
        },
    "r363":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "730",
        "URI":  "http://asc.fasb.org/extlink&oid=6420194&loc=d3e21568-108373"
        },
    "r364":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=120406818&loc=d3e31917-109318"
        },
    "r365":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=120406818&loc=d3e31931-109318"
        },
    "r366":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319"
        },
    "r367":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319"
        },
    "r368":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32705-109319"
        },
    "r369":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
        },
    "r37":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.20)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r370":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
        },
    "r371":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
        },
    "r372":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319"
        },
    "r373":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32809-109319"
        },
    "r374":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "19",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32840-109319"
        },
    "r375":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "21",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32857-109319"
        },
    "r376":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32621-109319"
        },
    "r377":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32632-109319"
        },
    "r378":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "217",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=121610041&loc=d3e36027-109320"
        },
    "r379":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "740"
        },
    "r38":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.21)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r380":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "740"
        },
    "r381":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(d)(2)",
        "Topic":  "740"
        },
    "r382":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(d)(3)",
        "Topic":  "740"
        },
    "r383":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(1)",
        "Topic":  "740"
        },
    "r384":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(2)",
        "Topic":  "740"
        },
    "r385":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "10",
        "Subparagraph":  "(e)(3)",
        "Topic":  "740"
        },
    "r386":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 6.I.5.Q1)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
        },
    "r387":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB TOPIC 6.I.7)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
        },
    "r388":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 6.I.Fact.4)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
        },
    "r389":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 11.C)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330215-122817"
        },
    "r39":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.24)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r390":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
        },
    "r391":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "270",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
        },
    "r392":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
        },
    "r393":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "740",
        "URI":  "http://asc.fasb.org/topic&trid=2144680"
        },
    "r394":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
        },
    "r395":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463"
        },
    "r396":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472"
        },
    "r397":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=121598580&loc=d3e5263-128473"
        },
    "r398":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "38",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=121598580&loc=d3e5504-128473"
        },
    "r399":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "25",
        "SubTopic":  "30",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476"
        },
    "r4":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765"
        },
    "r40":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.29-31)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r400":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "35",
        "SubTopic":  "30",
        "Subparagraph":  "(b)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=116859824&loc=d3e6819-128478"
        },
    "r401":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(c)(1)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
        },
    "r402":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(c)(3)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
        },
    "r403":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)(1)",
        "Topic":  "805",
        "URI":  "http://asc.fasb.org/extlink&oid=120321790&loc=d3e7008-128479"
        },
    "r404":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "19",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683"
        },
    "r405":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569643-111683"
        },
    "r406":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "25",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
        },
    "r407":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "25",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
        },
    "r408":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)(3)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
        },
    "r409":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c),(3)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
        },
    "r41":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.6(a))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r410":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(bb)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
        },
    "r411":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "810",
        "URI":  "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
        },
    "r412":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=117331979&loc=d3e41228-113958"
        },
    "r413":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579240-113959"
        },
    "r414":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
        },
    "r415":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
        },
    "r416":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
        },
    "r417":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1B",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5580258-113959"
        },
    "r418":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
        },
    "r419":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41638-113959"
        },
    "r42":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.8)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r420":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
        },
    "r421":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
        },
    "r422":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)(1)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
        },
    "r423":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4B",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a),(c)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
        },
    "r424":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4B",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
        },
    "r425":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4B",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
        },
    "r426":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4C",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
        },
    "r427":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4D",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
        },
    "r428":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4D",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
        },
    "r429":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4E",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624181-113959"
        },
    "r43":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02.9)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r430":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41641-113959"
        },
    "r431":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
        },
    "r432":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "182",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "10",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121582272&loc=SL5629052-113961"
        },
    "r433":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "25",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
        },
    "r434":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "815",
        "URI":  "http://asc.fasb.org/topic&trid=2229140"
        },
    "r435":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r436":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r437":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(bb)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r438":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(bbb)(1)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r439":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(bbb)(2)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r44":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
        },
    "r440":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r441":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
        },
    "r442":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19279-110258"
        },
    "r443":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "820",
        "URI":  "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
        },
    "r444":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "825",
        "URI":  "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611"
        },
    "r445":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "28",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "825",
        "URI":  "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
        },
    "r446":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=120253306&loc=d3e28228-110885"
        },
    "r447":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "9",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=120253306&loc=d3e28129-110885"
        },
    "r448":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "35",
        "SubTopic":  "20",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=121605123&loc=d3e30226-110892"
        },
    "r449":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=109240200&loc=d3e30690-110894"
        },
    "r45":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
        },
    "r450":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=109240200&loc=d3e30755-110894"
        },
    "r451":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=6450222&loc=d3e30840-110895"
        },
    "r452":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "230",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
        },
    "r453":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
        },
    "r454":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
        },
    "r455":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Subparagraph":  "(b)",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
        },
    "r456":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Subparagraph":  "(c)",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
        },
    "r457":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Subparagraph":  "(d)",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
        },
    "r458":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "21",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32262-110900"
        },
    "r459":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
        },
    "r46":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
        },
    "r460":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "830",
        "URI":  "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901"
        },
    "r461":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "25",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121593497&loc=SL77918431-209957"
        },
    "r462":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
        },
    "r463":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Subparagraph":  "(b)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
        },
    "r464":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918643-209977"
        },
    "r465":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
        },
    "r466":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(g)(1)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
        },
    "r467":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(g)(3)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
        },
    "r468":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(g)(4)",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
        },
    "r469":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
        },
    "r47":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
        },
    "r470":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980"
        },
    "r471":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "53",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121568110&loc=SL77918982-209971"
        },
    "r472":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "SubTopic":  "20",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/subtopic&trid=77888251"
        },
    "r473":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121561866&loc=SL77919311-209978"
        },
    "r474":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121576215&loc=SL77919396-209981"
        },
    "r475":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Topic":  "842",
        "URI":  "http://asc.fasb.org/extlink&oid=121576215&loc=SL77919372-209981"
        },
    "r476":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "855",
        "URI":  "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
        },
    "r477":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "855",
        "URI":  "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
        },
    "r478":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "855",
        "URI":  "http://asc.fasb.org/topic&trid=2122774"
        },
    "r479":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(2)(i)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r48":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225877-175312"
        },
    "r480":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(2)(ii)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r481":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r482":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(bb)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r483":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(bb)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r484":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(bb)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r485":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r486":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r487":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
        },
    "r488":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
        },
    "r489":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
        },
    "r49":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
        },
    "r490":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(b)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
        },
    "r491":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
        },
    "r492":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4D",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Subparagraph":  "(c)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719"
        },
    "r493":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "30",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
        },
    "r494":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "30",
        "Subparagraph":  "(a)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
        },
    "r495":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
        },
    "r496":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
        },
    "r497":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
        },
    "r498":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(4)(i)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
        },
    "r499":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r5":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6801-107765"
        },
    "r50":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "20",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313"
        },
    "r500":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r501":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r502":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(4)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r503":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(5)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r504":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(6)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r505":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(a)(7)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r506":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(b)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r507":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(e)(1)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r508":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(e)(2)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r509":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "50",
        "Subparagraph":  "(e)(3)",
        "Topic":  "860",
        "URI":  "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
        },
    "r51":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
        },
    "r510":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "6",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "910",
        "URI":  "http://asc.fasb.org/extlink&oid=119991564&loc=SL119991595-234733"
        },
    "r511":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SAB Topic 11.L)",
        "Topic":  "924",
        "URI":  "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
        },
    "r512":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959"
        },
    "r513":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(a)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r514":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(b)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r515":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(c)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r516":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(f)(1)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r517":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(f)(2)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r518":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "20",
        "Subparagraph":  "(f)(3)",
        "Topic":  "926",
        "URI":  "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
        },
    "r519":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "340",
        "Topic":  "928",
        "URI":  "http://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004"
        },
    "r52":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(d)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
        },
    "r520":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03(10)(1))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r521":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03(11))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r522":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03(15)(1))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r523":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03(23))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r524":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03(6))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r525":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.9-03.15(5))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
        },
    "r526":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.9-04(22))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
        },
    "r527":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.9-04(26))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
        },
    "r528":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.9-04(27))",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
        },
    "r529":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "320",
        "Subparagraph":  "(b)",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62557-112803"
        },
    "r53":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(e)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
        },
    "r530":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "320",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62557-112803"
        },
    "r531":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "320",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
        },
    "r532":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "320",
        "Subparagraph":  "(a)",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
        },
    "r533":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "405",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
        },
    "r534":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "405",
        "Topic":  "942",
        "URI":  "http://asc.fasb.org/extlink&oid=116652737&loc=d3e64164-112818"
        },
    "r535":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(12))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r536":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(15)(a))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r537":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(15)(b)(1))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r538":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(23)(a)(3))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r539":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(23)(a)(4))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r54":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
        },
    "r540":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(25))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r541":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "210",
        "Subparagraph":  "(SX 210.7-03(a)(8))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
        },
    "r542":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(11))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r543":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(18))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r544":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(19))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r545":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(22))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r546":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(23))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r547":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "220",
        "Subparagraph":  "(SX 210.7-04(9))",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
        },
    "r548":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4H",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "40",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
        },
    "r549":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7A",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "40",
        "Subparagraph":  "(d)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121643868&loc=SL117782755-158439"
        },
    "r55":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "10A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
        },
    "r550":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13H",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "40",
        "Subparagraph":  "(a)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
        },
    "r551":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13H",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "40",
        "Subparagraph":  "(b)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
        },
    "r552":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "29F",
        "Publisher":  "FASB",
        "Section":  "55",
        "SubTopic":  "40",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121639165&loc=SL117819544-158441"
        },
    "r553":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(a)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r554":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(b)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r555":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(e)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r556":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(f)(1)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r557":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(f)(2)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r558":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(g)(1)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r559":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(g)(2)(i)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r56":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "11",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=d3e637-108580"
        },
    "r560":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(g)(2)(ii)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r561":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(g)(2)(iii)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r562":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(g)(2)(iv)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r563":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(h)(1)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r564":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "65",
        "SubTopic":  "40",
        "Subparagraph":  "(h)(2)",
        "Topic":  "944",
        "URI":  "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
        },
    "r565":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "20",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "210",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=118262064&loc=SL116631418-115840"
        },
    "r566":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "21",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "210",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=118262064&loc=SL116631419-115840"
        },
    "r567":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column B)(Footnote 1))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r568":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column B)(Footnote 6))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r569":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column B)(Footnote 7))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r57":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=d3e640-108580"
        },
    "r570":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column C)(Footnote 1))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r571":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column C)(Footnote 6))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r572":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column C)(Footnote 7))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r573":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column D)(Footnote 1))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r574":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column D)(Footnote 6))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r575":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-12B(Column D)(Footnote 7))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
        },
    "r576":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5D",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-13D(Column B)(Footnote 2))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=SL120429264-123010"
        },
    "r577":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5D",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-13D(Column C)(Footnote 2))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=SL120429264-123010"
        },
    "r578":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-15(Column A))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
        },
    "r579":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-15(Column B))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
        },
    "r58":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=d3e681-108580"
        },
    "r580":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-15(Column C))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
        },
    "r581":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "7",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "320",
        "Subparagraph":  "(SX 210.12-15(Column D))",
        "Topic":  "946",
        "URI":  "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
        },
    "r582":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "310",
        "Subparagraph":  "(SX 210.12-29(Footnote 4))",
        "Topic":  "948",
        "URI":  "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
        },
    "r583":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column B))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r584":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column C))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r585":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column D))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r586":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column E))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r587":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column F))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r588":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column G))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r589":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column H))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r59":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580"
        },
    "r590":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Column I))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r591":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "360",
        "Subparagraph":  "(SX 210.12-28(Footnote 2))",
        "Topic":  "970",
        "URI":  "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
        },
    "r592":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "20",
        "Topic":  "985",
        "URI":  "http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756"
        },
    "r593":  {
        "Name":  "Exchange Act",
        "Number":  "240",
        "Publisher":  "SEC",
        "Section":  "12",
        "Subsection":  "b"
        },
    "r594":  {
        "Name":  "Exchange Act",
        "Number":  "240",
        "Publisher":  "SEC",
        "Section":  "12",
        "Subsection":  "d1-1"
        },
    "r595":  {
        "Name":  "Form 10-Q",
        "Number":  "240",
        "Publisher":  "SEC",
        "Section":  "13",
        "Subsection":  "a-13"
        },
    "r596":  {
        "Name":  "Forms 10-K, 10-Q, 20-F",
        "Number":  "240",
        "Publisher":  "SEC",
        "Section":  "13",
        "Subsection":  "a-1-"
        },
    "r597":  {
        "Name":  "Regulation 12B",
        "Number":  "240",
        "Publisher":  "SEC",
        "Section":  "12",
        "Subsection":  "b-2"
        },
    "r598":  {
        "Name":  "Regulation S-T",
        "Number":  "232",
        "Publisher":  "SEC",
        "Section":  "405"
        },
    "r6":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=121566466&loc=d3e6935-107765"
        },
    "r60":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=d3e689-108580"
        },
    "r61":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724391-108580"
        },
    "r62":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17B",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724394-108580"
        },
    "r63":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
        },
    "r64":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
        },
    "r65":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1A",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
        },
    "r66":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1B",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
        },
    "r67":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1B",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
        },
    "r68":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "5",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=121641772&loc=d3e557-108580"
        },
    "r69":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03(13))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868656-224227"
        },
    "r7":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766"
        },
    "r70":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03(20))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r71":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03(24))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r72":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03(25))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r73":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03(5))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r74":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03.1,2)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r75":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03.2(a),(d))",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r76":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03.4)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r77":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03.7)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r78":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "2",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-03.9)",
        "Topic":  "220",
        "URI":  "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
        },
    "r79":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "12",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
        },
    "r8":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(1))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r80":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(c)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
        },
    "r81":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "13",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
        },
    "r82":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "14",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
        },
    "r83":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
        },
    "r84":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "15",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
        },
    "r85":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "17",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(f)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3367-108585"
        },
    "r86":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "24",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3521-108585"
        },
    "r87":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "25",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
        },
    "r88":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "28",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(a)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
        },
    "r89":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "28",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Subparagraph":  "(b)",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
        },
    "r9":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.5-02(13))",
        "Topic":  "210",
        "URI":  "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
        },
    "r90":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "28",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
        },
    "r91":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "4",
        "Publisher":  "FASB",
        "Section":  "45",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3044-108585"
        },
    "r92":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4273-108586"
        },
    "r93":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "8",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "230",
        "URI":  "http://asc.fasb.org/extlink&oid=121583591&loc=SL98516268-108586"
        },
    "r94":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "3",
        "Publisher":  "FASB",
        "Section":  "50",
        "SubTopic":  "10",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/extlink&oid=84158767&loc=d3e18780-107790"
        },
    "r95":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.4-08(e)(1))",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
        },
    "r96":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.4-08(g)(1)(ii))",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
        },
    "r97":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.4-08(h))",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
        },
    "r98":  {
        "Name":  "Accounting Standards Codification",
        "Paragraph":  "1",
        "Publisher":  "FASB",
        "Section":  "S99",
        "SubTopic":  "10",
        "Subparagraph":  "(SX 210.4-08.(h)(1)(i))",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
        },
    "r99":  {
        "Name":  "Accounting Standards Codification",
        "Publisher":  "FASB",
        "Topic":  "235",
        "URI":  "http://asc.fasb.org/topic&trid=2122369"
        }
    },
"version":  "2.1"
}

Top
Filing Submission 0000851205-20-000011   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Wed., May 8, 4:08:22.4pm ET