{
 "instance": {
  "catc-10q_20210630.htm": {
   "axisCustom": 0,
   "axisStandard": 36,
   "contextCount": 441,
   "dts": {
    "calculationLink": {
     "local": [
      "catc-20210630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "catc-20210630_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": [
      "catc-10q_20210630.htm"
     ]
    },
    "labelLink": {
     "local": [
      "catc-20210630_lab.xml"
     ],
     "remote": [
      "https://xbrl.sec.gov/dei/2020/dei-doc-2020-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-doc-2020-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "catc-20210630_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-ref-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-ref-2020-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "catc-20210630.xsd"
     ],
     "remote": [
      "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/2005/xbrldt-2005.xsd",
      "https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd",
      "https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "https://xbrl.sec.gov/exch/2020/exch-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "https://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd",
      "https://xbrl.sec.gov/sic/2020/sic-2020-01-31.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.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/srt/2020/elts/srt-roles-2020-01-31.xsd",
      "https://xbrl.sec.gov/stpr/2018/stpr-2018-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/us-gaap/2020/elts/us-types-2020-01-31.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": 722,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2020-01-31": 7,
    "http://www.cambridgetrust.com/20210630": 3,
    "http://xbrl.sec.gov/dei/2020-01-31": 4,
    "total": 14
   },
   "keyCustom": 73,
   "keyStandard": 435,
   "memberCustom": 35,
   "memberStandard": 63,
   "nsprefix": "catc",
   "nsuri": "http://www.cambridgetrust.com/20210630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:UseOfEstimatesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100090 - Disclosure - Use of Estimates",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureUseOfEstimates",
     "shortName": "Use of Estimates",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:UseOfEstimatesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100100 - Disclosure - Subsequent Events",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureSubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Recently Issued Accounting Guidance",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureRecentlyIssuedAccountingGuidance",
     "shortName": "Recently Issued Accounting Guidance",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Cash and Cash Equivalents",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalents",
     "shortName": "Cash and Cash Equivalents",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Investment Securities",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecurities",
     "shortName": "Investment Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivablesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Loans and the Allowance for Credit Losses",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLosses",
     "shortName": "Loans and the Allowance for Credit Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivablesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Income Taxes",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Pension and Retirement Plans",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlans",
     "shortName": "Pension and Retirement Plans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Stock Based Compensation",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensation",
     "shortName": "Stock Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Financial Instruments with Off-Balance-Sheet Risk",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRisk",
     "shortName": "Financial Instruments with Off-Balance-Sheet Risk",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - CONSOLIDATED BALANCE SHEETS (UNAUDITED)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED",
     "shortName": "CONSOLIDATED BALANCE SHEETS (UNAUDITED)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:MarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Leases",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Shareholders' Equity",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquity",
     "shortName": "Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Other Comprehensive Income (Loss)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss",
     "shortName": "Other Comprehensive Income (Loss)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Earnings Per Share",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Derivative And Hedging Activities",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivities",
     "shortName": "Derivative And Hedging Activities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Fair Value Measurements",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Mergers",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergers",
     "shortName": "Mergers",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:UseOfEstimatesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UseOfEstimates",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Basis of Presentation (Policies)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureBasisOfPresentationPolicies",
     "shortName": "Basis of Presentation (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:UseOfEstimatesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UseOfEstimates",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Investment Securities (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables",
     "shortName": "Investment Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Loans and the Allowance for Credit Losses (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables",
     "shortName": "Loans and the Allowance for Credit Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100020 - Statement - CONSOLIDATED BALANCE SHEETS (UNAUDITED) (Parenthetical)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical",
     "shortName": "CONSOLIDATED BALANCE SHEETS (UNAUDITED) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Income Taxes (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Pension and Retirement Plans (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansTables",
     "shortName": "Pension and Retirement Plans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Stock Based Compensation (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables",
     "shortName": "Stock Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Financial Instruments with Off-Balance-Sheet Risk (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskTables",
     "shortName": "Financial Instruments with Off-Balance-Sheet Risk (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Leases (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Shareholders' Equity (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityTables",
     "shortName": "Shareholders' Equity (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Other Comprehensive Income (Loss) (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables",
     "shortName": "Other Comprehensive Income (Loss) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Earnings Per Share (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Derivative And Hedging Activities (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables",
     "shortName": "Derivative And Hedging Activities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Fair Value Measurements (Tables)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:InterestIncomeLoansTaxable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030 - Statement - CONSOLIDATED STATEMENTS OF INCOME (LOSS) (UNAUDITED)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED",
     "shortName": "CONSOLIDATED STATEMENTS OF INCOME (LOSS) (UNAUDITED)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:InterestIncomeLoansTaxable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Cash and Cash Equivalents - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
     "shortName": "Cash and Cash Equivalents - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapCashAndCashEquivalentsAxis_catcFederalReserveBankOfBostonMember_20210630",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CashAndSecuritiesSegregatedUnderFederalAndOtherRegulations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Investment Securities - Summary of Carrying Amounts of Securities and Their Approximate Fair Values (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
     "shortName": "Investment Securities - Summary of Carrying Amounts of Securities and Their Approximate Fair Values (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Investment Securities - Gross Unrealized Losses of Aggregated by Investment Category and Length of Time that Individual Securities have been in Continuous Loss Position (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
     "shortName": "Investment Securities - Gross Unrealized Losses of Aggregated by Investment Category and Length of Time that Individual Securities have been in Continuous Loss Position (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:NumberOfDebtSecuritiesWithUnrealizedLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_catcSecurity",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Investment Securities - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
     "shortName": "Investment Securities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:NumberOfDebtSecuritiesWithUnrealizedLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_catcSecurity",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Investment Securities - Schedule of Amortized Cost and Fair Value of Debt Securities, Aggregated By Earlier of Guaranteed Call Date or Contractual Maturity (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
     "shortName": "Investment Securities - Schedule of Amortized Cost and Fair Value of Debt Securities, Aggregated By Earlier of Guaranteed Call Date or Contractual Maturity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:GainLossOnInvestmentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20200401_20200630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Investment Securities - Summary of Gains from Sale of Investment Securities (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails",
     "shortName": "Investment Securities - Summary of Gains from Sale of Investment Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:GainLossOnInvestmentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20200401_20200630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Investment Securities - Summary of Credit Rating of Debt Securities Portfolio (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
     "shortName": "Investment Securities - Summary of Credit Rating of Debt Securities Portfolio (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:AvailableForSaleSecuritiesAndHeldToMaturityCreditQualityIndicatorTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapInternalCreditAssessmentAxis_catcCreditRatingOneMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableGrossCarryingAmount",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Loans and the Allowance for Credit Losses - Loans Outstanding by Category (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Loans Outstanding by Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancingReceivablePortfolioSegmentAxis_us-gaapResidentialPortfolioSegmentMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_catcLoan",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Loans and the Allowance for Credit Losses - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_catcLoan",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20201231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Loans and the Allowance for Credit Losses - Non-performing Loans Disaggregated by Loan Category (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Non-performing Loans Disaggregated by Loan Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:ScheduleOfNonPerformingLoansIncludingTroubledDebtRestructuringsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancialInstrumentPerformanceStatusAxis_us-gaapNonperformingFinancingReceivableMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancingReceivablePortfolioSegmentAxis_us-gaapResidentialPortfolioSegmentMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Loans and the Allowance for Credit Losses - Loans Receivable Disaggregated by Credit Quality Indicator (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Loans Receivable Disaggregated by Credit Quality Indicator (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancingReceivablePortfolioSegmentAxis_us-gaapResidentialPortfolioSegmentMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentPastDue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Loans and the Allowance for Credit Losses - Schedule of Loans Receivable Disaggregated by Past Due Status (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Schedule of Loans Receivable Disaggregated by Past Due Status (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentPastDue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Loans and the Allowance for Credit Losses - Summary of Changes in Allowance for Credit Losses Disaggregated by Loan Category (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Summary of Changes in Allowance for Credit Losses Disaggregated by Loan Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapCollateralAxis_us-gaapCollateralPledgedMember_20210331",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Income Taxes - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails",
     "shortName": "Income Taxes - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Income Taxes - Components of Income Tax Expense (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails",
     "shortName": "Income Taxes - Components of Income Tax Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapRetirementPlanTypeAxis_us-gaapPensionPlansDefinedBenefitMember_20210101_20210331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanInterestCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Pension and Retirement Plans - Components of Net Periodic Benefit Cost (Credit) (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails",
     "shortName": "Pension and Retirement Plans - Components of Net Periodic Benefit Cost (Credit) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapRetirementPlanTypeAxis_us-gaapPensionPlansDefinedBenefitMember_20210101_20210331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanInterestCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapRetirementPlanNameAxis_catcFourZeroOneKMember_us-gaapRetirementPlanTypeAxis_catcEmployeeProfitSharingPlanMember_20210101_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Pension and Retirement Plans - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
     "shortName": "Pension and Retirement Plans - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapRetirementPlanNameAxis_catcFourZeroOneKMember_us-gaapRetirementPlanTypeAxis_catcEmployeeProfitSharingPlanMember_20210101_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_us-gaapRestrictedStockMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Stock Based Compensation - Schedule of Shares Issued and Fair Value of RSAs and RSUs (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
     "shortName": "Stock Based Compensation - Schedule of Shares Issued and Fair Value of RSAs and RSUs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_us-gaapRestrictedStockMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_catcPerformanceBasedRestrictedStockUnitsMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Stock Based Compensation - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
     "shortName": "Stock Based Compensation - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_catcPerformanceBasedRestrictedStockUnitsMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_catcPerformanceBasedRestrictedStockUnitsMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Stock Based Compensation - Schedule of Shares Granted and Fair Value of PRSUs (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
     "shortName": "Stock Based Compensation - Schedule of Shares Granted and Fair Value of PRSUs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapAwardTypeAxis_catcPerformanceBasedRestrictedStockUnitsMember_us-gaapPlanNameAxis_catcTwoThousandSeventeenEquityAndCashIncentivePlanMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20191231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
     "shortName": "CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20191231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Stock Based Compensation - Schedule of Pre-tax Expense Associated with All Outstanding Non-vested RSAs, RSUs, Performance Based Restricted Stock Units and Related Tax Benefits (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfPreTaxExpenseAssociatedWithAllOutstandingNonVestedRsasRsusPerformanceBasedRestrictedStockUnitsAndRelatedTaxBenefitsDetails",
     "shortName": "Stock Based Compensation - Schedule of Pre-tax Expense Associated with All Outstanding Non-vested RSAs, RSUs, Performance Based Restricted Stock Units and Related Tax Benefits (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancialSupportToNonconsolidatedLegalEntityAxis_us-gaapStandbyLettersOfCreditMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Financial Instruments with Off-Balance-Sheet Risk - Summary of Off-Balance-Sheet Financial Instruments with Contractual Amounts Include Present Credit Risk (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails",
     "shortName": "Financial Instruments with Off-Balance-Sheet Risk - Summary of Off-Balance-Sheet Financial Instruments with Contractual Amounts Include Present Credit Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFinancialSupportToNonconsolidatedLegalEntityAxis_us-gaapStandbyLettersOfCreditMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:LesseeOperatingLeaseExpirationDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Leases - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesAdditionalInformationDetails",
     "shortName": "Leases - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:LesseeOperatingLeaseExpirationDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Leases - Summary of Components of Operating Lease Cost and Other Related Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails",
     "shortName": "Leases - Summary of Components of Operating Lease Cost and Other Related Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Leases - Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails",
     "shortName": "Leases - Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Capital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Shareholders' Equity - Minimum Capital Requirements were Considered Well Capitalized by FRB and FDIC (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
     "shortName": "Shareholders' Equity - Minimum Capital Requirements were Considered Well Capitalized by FRB and FDIC (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Capital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Other Comprehensive Income (Loss) - Summary of Other Comprehensive Income (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Other Comprehensive Income (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20200401_20200630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Other Comprehensive Income (Loss) - Summary of Reclassifications out of Accumulated Other Comprehensive Income (\"AOCI\") (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Reclassifications out of Accumulated Other Comprehensive Income (\"AOCI\") (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_us-gaapReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_20200401_20200630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Earnings Per Share - Summary of Reconciliation Between Basic and Diluted Earnings Per Share (Detail)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
     "shortName": "Earnings Per Share - Summary of Reconciliation Between Basic and Diluted Earnings Per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Derivative And Hedging Activities - Summary of Fair Values of Derivative Instruments in the Company's Consolidated Balance Sheets (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
     "shortName": "Derivative And Hedging Activities - Summary of Fair Values of Derivative Instruments in the Company's Consolidated Balance Sheets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapHedgingDesignationAxis_us-gaapDesignatedAsHedgingInstrumentMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapStatementEquityComponentsAxis_us-gaapRetainedEarningsMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED) (Parenthetical)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical",
     "shortName": "CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (UNAUDITED) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapStatementEquityComponentsAxis_us-gaapRetainedEarningsMember_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipAxis_us-gaapCashFlowHedgingMember_us-gaapIncomeStatementLocationAxis_us-gaapInterestIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIIncludedComponent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Derivative And Hedging Activities - Summary of Changes to AOCI as a Result of Cash Flow Hedge Accounting (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
     "shortName": "Derivative And Hedging Activities - Summary of Changes to AOCI as a Result of Cash Flow Hedge Accounting (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipAxis_us-gaapCashFlowHedgingMember_us-gaapIncomeStatementLocationAxis_us-gaapInterestIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIIncludedComponent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Derivative And Hedging Activities - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
     "shortName": "Derivative And Hedging Activities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapIncomeStatementLocationAxis_us-gaapInterestIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:IncomePresentedInIncomeStatementWhichEffectsOfFairValueOrCashFlowHedges",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Derivative And Hedging Activities - Summary of Derivative Financial Instruments on the Consolidated Income (Loss) Statement (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
     "shortName": "Derivative And Hedging Activities - Summary of Derivative Financial Instruments on the Consolidated Income (Loss) Statement (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapIncomeStatementLocationAxis_us-gaapInterestIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:IncomePresentedInIncomeStatementWhichEffectsOfFairValueOrCashFlowHedges",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapDerivativeInstrumentRiskAxis_us-gaapOtherContractMember_us-gaapHedgingDesignationAxis_us-gaapNondesignatedMember_us-gaapIncomeStatementLocationAxis_catcLoanRelatedDerivativeIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Derivative And Hedging Activities - Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Income (Loss) Statement (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
     "shortName": "Derivative And Hedging Activities - Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Income (Loss) Statement (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapDerivativeInstrumentRiskAxis_us-gaapOtherContractMember_us-gaapHedgingDesignationAxis_us-gaapNondesignatedMember_us-gaapIncomeStatementLocationAxis_catcLoanRelatedDerivativeIncomeMember_20210401_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Derivative And Hedging Activities - Schedule of Financial Instruments Eligible for Offset in Consolidated Balance Sheet (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
     "shortName": "Derivative And Hedging Activities - Schedule of Financial Instruments Eligible for Offset in Consolidated Balance Sheet (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Fair Value Measurements - Summary of Carrying Values and Estimated Fair Values of Financial Instruments (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
     "shortName": "Fair Value Measurements - Summary of Carrying Values and Estimated Fair Values of Financial Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:FairValueDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFairValueByMeasurementBasisAxis_us-gaapCarryingReportedAmountFairValueDisclosureMember_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsRecurringMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Fair Value Measurements - Summary of Certain Assets and Liabilities Reported at Fair Value on a Recurring Basis (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
     "shortName": "Fair Value Measurements - Summary of Certain Assets and Liabilities Reported at Fair Value on a Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsRecurringMember_us-gaapFinancialInstrumentAxis_us-gaapUSGovernmentSponsoredEnterprisesDebtSecuritiesMember_20210630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Fair Value Measurements - Schedule of Carrying Value of Assets Measured at Fair Value on a Non-Recurring Basis (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
     "shortName": "Fair Value Measurements - Schedule of Carrying Value of Assets Measured at Fair Value on a Non-Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:FairValueTransfersBetweenLevelsAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Fair Value Measurements - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsAdditionalInformationDetails",
     "shortName": "Fair Value Measurements - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210401_20210630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:FairValueTransfersBetweenLevelsAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Mergers - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails",
     "shortName": "Mergers - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_us-gaapBusinessAcquisitionAxis_catcWellesleyBancorpIncMember_20200601_20200601",
      "decimals": null,
      "lang": "en-US",
      "name": "catc:BusinessAcquisitionNumberOfBankingOfficesOperated",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED",
     "shortName": "CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100080 - Disclosure - Basis of Presentation",
     "role": "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureBasisOfPresentation",
     "shortName": "Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "catc-10q_20210630.htm",
      "contextRef": "C_0000711772_20210101_20210630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 103,
   "tag": {
    "catc_AccruedInterestMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued interest.",
        "label": "Accrued Interest [Member]",
        "terseLabel": "Accrued Interest"
       }
      }
     },
     "localname": "AccruedInterestMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_AggregateDepreciationPercentageOfGrossUnrealizedLossesFromAmortizedCost": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate depreciation percentage of gross unrealized losses from amortized cost.",
        "label": "Aggregate Depreciation Percentage Of Gross Unrealized Losses From Amortized Cost",
        "terseLabel": "Aggregate depreciation percentage of gross unrealized losses from amortized cost"
       }
      }
     },
     "localname": "AggregateDepreciationPercentageOfGrossUnrealizedLossesFromAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "catc_AmortizationAccretionOfDeferredChargesAndFeesNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10200.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization (accretion) of deferred charges and fees net.",
        "label": "Amortization Accretion Of Deferred Charges And Fees Net",
        "terseLabel": "Amortization (accretion) of deferred charges and fees, net"
       }
      }
     },
     "localname": "AmortizationAccretionOfDeferredChargesAndFeesNet",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities amortized cost of securities sold.",
        "label": "Available For Sale Securities Amortized Cost Of Securities Sold",
        "totalLabel": "Amortized cost of securities sold"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturityCreditQualityIndicatorTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity credit quality indicator.",
        "label": "Available For Sale Securities And Held To Maturity Credit Quality Indicator Table [Text Block]",
        "terseLabel": "Summary of Credit Rating of Debt Securities Portfolio"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturityCreditQualityIndicatorTableTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10070.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after five year but within ten year amortized cost.",
        "label": "Available For Sale Securities And Held To Maturity Securities After Five Year But Within Ten Year Amortized Cost",
        "terseLabel": "Available for sale securities and Held to maturity securities, After Five, But Within Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after five year but within ten year fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities After Five Year But Within Ten Year Fair Value",
        "terseLabel": "Available for sale securities and Held to maturity securities, After Five, But Within Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10060.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after one year but within five year amortized cost.",
        "label": "Available For Sale Securities And Held To Maturity Securities After One Year But Within Five Year Amortized Cost",
        "terseLabel": "Available for sale securities and Held to maturity securities, After One, But Within Five Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after one year but within five year fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities After One Year But Within Five Year Fair Value",
        "terseLabel": "Available for sale securities and Held to maturity securities, After One, But Within Five Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10080.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after ten year amortized cost.",
        "label": "Available For Sale Securities And Held To Maturity Securities After Ten Year Amortized Cost",
        "terseLabel": "Available for sale securities and Held to maturity securities, After Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10040.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities after ten year fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities After Ten Year Fair Value",
        "terseLabel": "Available for sale securities and Held to maturity securities, After Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities amortized cost.",
        "label": "Available For Sale Securities And Held To Maturity Securities Amortized Cost",
        "totalLabel": "Available for sale securities and Held to maturity securities, Total, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position accumulated loss.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Accumulated Loss",
        "negatedTotalLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Fair Value",
        "totalLabel": "Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10010.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position less than twelve months accumulated loss.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Less Than Twelve Months Accumulated Loss",
        "negatedLabel": "Unrealized Losses, Less than 12 months"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsAccumulatedLoss",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10030.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position less than twelve months fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Less Than Twelve Months Fair Value",
        "terseLabel": "Fair Value, Less than 12 months"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10020.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position twelve months or longer accumulated loss.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Twelve Months Or Longer Accumulated Loss",
        "negatedLabel": "Unrealized Losses, 12 months or longer"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerAccumulatedLoss",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10040.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available-for-sale securities and held-to-maturity securities continuous unrealized loss position twelve months or longer fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities Continuous Unrealized Loss Position Twelve Months Or Longer Fair Value",
        "terseLabel": "Fair Value, 12 months or longer"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10050.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities within one year amortized cost.",
        "label": "Available For Sale Securities And Held To Maturity Securities Within One Year Amortized Cost",
        "terseLabel": "Available for sale securities and Held to maturity securities, Within One Year, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Available for sale securities and held to maturity securities within one year fair value.",
        "label": "Available For Sale Securities And Held To Maturity Securities Within One Year Fair Value",
        "terseLabel": "Available for sale securities and Held to maturity securities, Within One Year, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_BusinessAcquisitionNumberOfBankingOfficesOperated": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business acquisition number of banking offices operated.",
        "label": "Business Acquisition Number Of Banking Offices Operated",
        "terseLabel": "Number of banking offices"
       }
      }
     },
     "localname": "BusinessAcquisitionNumberOfBankingOfficesOperated",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_BusinessCombinationProvisionForCreditLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination, provision for credit losses.",
        "label": "Business Combination Provision For Credit Losses",
        "terseLabel": "Business combination, provision for credit losses"
       }
      }
     },
     "localname": "BusinessCombinationProvisionForCreditLosses",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_CashPaidDuringPeriodAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid during period abstract.",
        "label": "Cash Paid During Period [Abstract]",
        "terseLabel": "Cash paid during the period for:"
       }
      }
     },
     "localname": "CashPaidDuringPeriodAbstract",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_ChangeInDemandInterestBearingMoneyMarketAndSavingsAccounts": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10040.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in demand, interest bearing, money market and savings accounts.",
        "label": "Change In Demand Interest Bearing Money Market And Savings Accounts",
        "terseLabel": "Change in demand, interest bearing, money market and savings accounts"
       }
      }
     },
     "localname": "ChangeInDemandInterestBearingMoneyMarketAndSavingsAccounts",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_CommercialAndIndustrialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial and industrial portfolio segment.",
        "label": "Commercial And Industrial Portfolio Segment [Member]",
        "terseLabel": "Commercial and Industrial"
       }
      }
     },
     "localname": "CommercialAndIndustrialPortfolioSegmentMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_CommitmentsToSellResidentialMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments to sell residential mortgage loans.",
        "label": "Commitments To Sell Residential Mortgage Loans [Member]",
        "terseLabel": "Commitments to Sell Residential Mortgage Loans"
       }
      }
     },
     "localname": "CommitmentsToSellResidentialMortgageLoansMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_ConsumerSecuredMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consumer secured.",
        "label": "Consumer Secured [Member]",
        "terseLabel": "Secured"
       }
      }
     },
     "localname": "ConsumerSecuredMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_ConsumerUnsecuredMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consumer unsecured.",
        "label": "Consumer Unsecured [Member]",
        "terseLabel": "Unsecured"
       }
      }
     },
     "localname": "ConsumerUnsecuredMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_CreditRatingOneMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit rating one.",
        "label": "Credit Rating One [Member]",
        "terseLabel": "AAA/AA/A"
       }
      }
     },
     "localname": "CreditRatingOneMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_CreditRatingTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit rating two.",
        "label": "Credit Rating Two [Member]",
        "terseLabel": "BBB/BB/B"
       }
      }
     },
     "localname": "CreditRatingTwoMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DebtSecuritiesRealizedGains": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails": {
       "order": 10010.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities realized gains.",
        "label": "Debt Securities Realized Gains",
        "terseLabel": "Gross gains realized on securities sold"
       }
      }
     },
     "localname": "DebtSecuritiesRealizedGains",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DebtSecuritiesRealizedLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails": {
       "order": 10020.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities realized losses.",
        "label": "Debt Securities Realized Losses",
        "terseLabel": "Gross losses realized on securities sold"
       }
      }
     },
     "localname": "DebtSecuritiesRealizedLosses",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DefinedContributionPlanEmployeeEligibilityAge": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined contribution plan employee eligibility age.",
        "label": "Defined Contribution Plan Employee Eligibility Age",
        "terseLabel": "Employee eligibility age under the plan"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployeeEligibilityAge",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "catc_DefinedContributionPlanEmployeeNormalEligibleAgeOfRetirement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined contribution plan, employee normal eligible age of retirement.",
        "label": "Defined Contribution Plan Employee Normal Eligible Age Of Retirement",
        "terseLabel": "Normal retirement age of employees"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployeeNormalEligibleAgeOfRetirement",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "catc_DefinedContributionPlanMinimumHoursOfServicePerYearRequiredForEligibility": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Contribution plan minimum hours of service per year required for eligibility.",
        "label": "Defined Contribution Plan Minimum Hours Of Service Per Year Required For Eligibility",
        "terseLabel": "Defined contribution plan, minimum number of hours of service per year required for eligibility"
       }
      }
     },
     "localname": "DefinedContributionPlanMinimumHoursOfServicePerYearRequiredForEligibility",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "catc_DefinedContributionPlanMinimumServicePeriodRequiredForEligibility": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined contribution plan minimum service period required for eligibility.",
        "label": "Defined Contribution Plan Minimum Service Period Required For Eligibility",
        "terseLabel": "Defined contribution plan, minimum service period required for eligibility"
       }
      }
     },
     "localname": "DefinedContributionPlanMinimumServicePeriodRequiredForEligibility",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "catc_DefinedContributionSupplementalExecutiveRetirementPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined contribution supplemental executive retirement plan.",
        "label": "Defined Contribution Supplemental Executive Retirement Plan [Member]",
        "verboseLabel": "Defined Contribution Supplemental Executive Retirement Plan (\"DC SERP\")"
       }
      }
     },
     "localname": "DefinedContributionSupplementalExecutiveRetirementPlanMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossReclassifiedFromAccumulatedOCIIntoIncome": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments amount of gain or loss reclassified from accumulated OCI into income.",
        "label": "Derivative Instruments Amount Of Gain Or Loss Reclassified From Accumulated O C I Into Income",
        "terseLabel": "Amount of Gain or (Loss) Reclassified from AOCI into Income"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossReclassifiedFromAccumulatedOCIIntoIncome",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instruments amount of gain or loss recognized in OCI excluded component.",
        "label": "Derivative Instruments Amount Of Gain Or Loss Recognized In O C I Excluded Component",
        "terseLabel": "Amount of Gain or (Loss) Recognized in OCI - Excluded Component"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIIncludedComponent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative nstruments amount of gain or loss recognized in OCI included component.",
        "label": "Derivative Instruments Amount Of Gain Or Loss Recognized In O C I Included Component",
        "terseLabel": "Amount of Gain or (Loss) Recognized in OCI - Included Component"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIIncludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIOnDerivative": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments amount of gain or loss recognized in OCI on derivative.",
        "label": "Derivative Instruments Amount Of Gain Or Loss Recognized In O C I On Derivative",
        "terseLabel": "Amount of Gain or (Loss) Recognized in OCI"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIOnDerivative",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfUnrealizedGainsLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instruments amount of unrealized gains (losses).",
        "label": "Derivative Instruments Amount Of Unrealized Gains Losses",
        "terseLabel": "Unrealized gains on derivatives"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfUnrealizedGainsLosses",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DiscretionaryContributionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discretionary Contribution",
        "label": "Discretionary Contribution [Member]",
        "terseLabel": "Discretionary Contribution"
       }
      }
     },
     "localname": "DiscretionaryContributionMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DividendsOnFederalHomeLoanBank": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10330.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dividends on federal home loan bank.",
        "label": "Dividends On Federal Home Loan Bank",
        "terseLabel": "Dividends on FHLB of Boston stock"
       }
      }
     },
     "localname": "DividendsOnFederalHomeLoanBank",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_EmployeeProfitSharingPlanAndEmployeeStockOwnershipPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee profit sharing plan and employee stock ownership plan.",
        "label": "Employee Profit Sharing Plan And Employee Stock Ownership Plan [Member]",
        "terseLabel": "Profit Sharing and ESOP Plans"
       }
      }
     },
     "localname": "EmployeeProfitSharingPlanAndEmployeeStockOwnershipPlanMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_EmployeeProfitSharingPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee profit sharing plan.",
        "label": "Employee Profit Sharing Plan [Member]",
        "terseLabel": "Profit Sharing Plan"
       }
      }
     },
     "localname": "EmployeeProfitSharingPlanMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_EmployeeStockOwnershipPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock ownership plan.",
        "label": "Employee Stock Ownership Plan [Member]",
        "terseLabel": "Employee Stock Ownership Plan (ESOP)"
       }
      }
     },
     "localname": "EmployeeStockOwnershipPlanMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_FairValueOffBalanceSheetRisksDisclosureInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value off balance sheet risks disclosure information.",
        "label": "Fair Value Off Balance Sheet Risks Disclosure Information [Abstract]",
        "terseLabel": "Financial instruments whose contractual amount represents credit risk:"
       }
      }
     },
     "localname": "FairValueOffBalanceSheetRisksDisclosureInformationAbstract",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_FairValueTransfersBetweenLevelsAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value transfers between levels amount.",
        "label": "Fair Value Transfers Between Levels Amount",
        "terseLabel": "Transfers between levels"
       }
      }
     },
     "localname": "FairValueTransfersBetweenLevelsAmount",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FederalReserveBankOfBostonMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal reserve bank of Boston.",
        "label": "Federal Reserve Bank Of Boston [Member]",
        "terseLabel": "Federal Reserve Bank of Boston"
       }
      }
     },
     "localname": "FederalReserveBankOfBostonMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_FinancialInstrumentNotionalAmountExceedsCreditRisk": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument notional amount exceeds credit risk.",
        "label": "Financial Instrument Notional Amount Exceeds Credit Risk",
        "terseLabel": "Financial instrument notional amount exceeds credit risk"
       }
      }
     },
     "localname": "FinancialInstrumentNotionalAmountExceedsCreditRisk",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FinancialInstrumentNotionalAmountExceedsCreditRiskAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument notional amount exceeds credit risk.",
        "label": "Financial Instrument Notional Amount Exceeds Credit Risk [Abstract]",
        "terseLabel": "Financial instruments whose notional amount exceeds the amount of credit risk:"
       }
      }
     },
     "localname": "FinancialInstrumentNotionalAmountExceedsCreditRiskAbstract",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_FinancialInstrumentsWithOffBalanceSheetRiskTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instruments with off-balance-sheet risk.",
        "label": "Financial Instruments With Off Balance Sheet Risk [Text Block]",
        "terseLabel": "Financial Instruments with Off-Balance-Sheet Risk"
       }
      }
     },
     "localname": "FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRisk"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_FinancingReceivableAcquiredLoanCommitments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, acquired loan commitments.",
        "label": "Financing Receivable Acquired Loan Commitments",
        "terseLabel": "Acquired loan commitments"
       }
      }
     },
     "localname": "FinancingReceivableAcquiredLoanCommitments",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FinancingReceivableAllowanceForCreditLossesUnfundedCommitments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable allowance for credit losses unfunded commitments.",
        "label": "Financing Receivable Allowance For Credit Losses Unfunded Commitments",
        "terseLabel": "Allowance for credit losses-unfunded commitments"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesUnfundedCommitments",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FinancingReceivableInitialAllowanceForPurchasedCreditDeterioratedLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable, Initial allowance for purchased credit deteriorated loans.",
        "label": "Financing Receivable Initial Allowance For Purchased Credit Deteriorated Loans",
        "terseLabel": "Initial allowance for PCD"
       }
      }
     },
     "localname": "FinancingReceivableInitialAllowanceForPurchasedCreditDeterioratedLoans",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FinancingReceivableNumberOfLoans": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable number of loans.",
        "label": "Financing Receivable Number Of Loans",
        "terseLabel": "Number of loans"
       }
      }
     },
     "localname": "FinancingReceivableNumberOfLoans",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "catc_FinancingReceivableNumberOfLoansDeterminedToBeTroubledDebtRestructurings": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable number of loans determined to be troubled debt restructurings.",
        "label": "Financing Receivable Number Of Loans Determined To Be Troubled Debt Restructurings",
        "terseLabel": "Number of loans determined to be troubled debt restructurings"
       }
      }
     },
     "localname": "FinancingReceivableNumberOfLoansDeterminedToBeTroubledDebtRestructurings",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivable recorded investment aggregate non-performing loans.",
        "label": "Financing Receivable Recorded Investment Aggregate Nonperforming Loans",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentAggregateNonperformingLoans",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FourZeroOneKMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "401(k).",
        "label": "Four Zero One K [Member]",
        "terseLabel": "401(k)"
       }
      }
     },
     "localname": "FourZeroOneKMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_HomeEquityPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Home equity portfolio segment.",
        "label": "Home Equity Portfolio Segment [Member]",
        "terseLabel": "Home Equity"
       }
      }
     },
     "localname": "HomeEquityPortfolioSegmentMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_HomeEquityTermLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Home equity term loans.",
        "label": "Home Equity Term Loans [Member]",
        "terseLabel": "Home Equity - Term Loans"
       }
      }
     },
     "localname": "HomeEquityTermLoansMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_IncomePresentedInIncomeStatementWhichEffectsOfFairValueOrCashFlowHedges": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income presented in income statement which effects of fair value or cash flow hedges.",
        "label": "Income Presented In Income Statement Which Effects Of Fair Value Or Cash Flow Hedges",
        "terseLabel": "Total amount of income presented in the statements of income (loss) in which the effects of cash flow hedges are recorded"
       }
      }
     },
     "localname": "IncomePresentedInIncomeStatementWhichEffectsOfFairValueOrCashFlowHedges",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_IncomeTaxesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income taxes.",
        "label": "Income Taxes [Line Items]",
        "terseLabel": "Income Taxes [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxesLineItems",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_IncomeTaxesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income taxes.",
        "label": "Income Taxes [Table]",
        "terseLabel": "Income Taxes [Table]"
       }
      }
     },
     "localname": "IncomeTaxesTable",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_IndividuallyEvaluatedCollateralDependentLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Individually evaluated collateral dependent loans.",
        "label": "Individually Evaluated Collateral Dependent Loans [Member]",
        "terseLabel": "Individually Evaluated Collateral Dependent Loans"
       }
      }
     },
     "localname": "IndividuallyEvaluatedCollateralDependentLoansMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_InterestExpenseSubordinatedDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10280.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense, subordinated debt.",
        "label": "Interest Expense Subordinated Debt",
        "terseLabel": "Interest on subordinated debt"
       }
      }
     },
     "localname": "InterestExpenseSubordinatedDebt",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InterestIncomeLoansTaxExempt": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10300.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income loans tax exempt.",
        "label": "Interest Income Loans Tax Exempt",
        "terseLabel": "Interest on tax-exempt loans"
       }
      }
     },
     "localname": "InterestIncomeLoansTaxExempt",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InterestIncomeLoansTaxable": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10290.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income loans taxable.",
        "label": "Interest Income Loans Taxable",
        "terseLabel": "Interest on taxable loans"
       }
      }
     },
     "localname": "InterestIncomeLoansTaxable",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InterestReceivableFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest receivable fair value.",
        "label": "Interest Receivable Fair Value",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "InterestReceivableFairValue",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAccumulatedUnrealizedGains": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10010.0,
       "parentTag": "catc_InvestmentsSecuritiesAmortizedCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments securities accumulated unrealized gains.",
        "label": "Investments Securities Accumulated Unrealized Gains",
        "terseLabel": "Total, Gross Unrealized Gains"
       }
      }
     },
     "localname": "InvestmentsSecuritiesAccumulatedUnrealizedGains",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAccumulatedUnrealizedLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10020.0,
       "parentTag": "catc_InvestmentsSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments securities accumulated unrealized losses.",
        "label": "Investments Securities Accumulated Unrealized Losses",
        "negatedLabel": "Total, Gross Unrealized Losses"
       }
      }
     },
     "localname": "InvestmentsSecuritiesAccumulatedUnrealizedLosses",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments securities amortized cost.",
        "label": "Investments Securities Amortized Cost",
        "totalLabel": "Total, Amortized Cost"
       }
      }
     },
     "localname": "InvestmentsSecuritiesAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LesseeOperatingLeaseExpirationDescription": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lessee operating lease expiration description.",
        "label": "Lessee Operating Lease Expiration Description",
        "terseLabel": "Description of operating lease expiration terms"
       }
      }
     },
     "localname": "LesseeOperatingLeaseExpirationDescription",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10060.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lessee operating lease liability payments due after year four.",
        "label": "Lessee Operating Lease Liability Payments Due After Year Four",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LoanLevelInterestRateSwapsAssetsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan level interest rate swaps assets fair value disclosure.",
        "label": "Loan Level Interest Rate Swaps Assets Fair Value Disclosure",
        "terseLabel": "Loan level interest rate swaps"
       }
      }
     },
     "localname": "LoanLevelInterestRateSwapsAssetsFairValueDisclosure",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LoanLevelInterestRateSwapsLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan level interest rate swaps liabilities fair value disclosure.",
        "label": "Loan Level Interest Rate Swaps Liabilities Fair Value Disclosure",
        "terseLabel": "Loan level interest rate swaps"
       }
      }
     },
     "localname": "LoanLevelInterestRateSwapsLiabilitiesFairValueDisclosure",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LoanRelatedDerivativeContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan related derivative contracts.",
        "label": "Loan Related Derivative Contracts [Member]",
        "terseLabel": "Loan Related Derivative Contracts"
       }
      }
     },
     "localname": "LoanRelatedDerivativeContractsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_LoanRelatedDerivativeIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan related derivative income.",
        "label": "Loan Related Derivative Income [Member]",
        "terseLabel": "Loan related derivative income"
       }
      }
     },
     "localname": "LoanRelatedDerivativeIncomeMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_LoansAndLeasesReceivableAtAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and leases receivable at amortized cost.",
        "label": "Loans And Leases Receivable At Amortized Cost",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableAtAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LoansAndLeasesReceivableNonaccrualStatusCommitmentToLend": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans and leases receivable nonaccrual status commitment to lend.",
        "label": "Loans And Leases Receivable Nonaccrual Status Commitment To Lend",
        "terseLabel": "Commitments to lend additional funds to borrowers whose loans were on non-accrual status"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNonaccrualStatusCommitmentToLend",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_LoansHeldForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loans held for sale.",
        "label": "Loans Held For Sale [Member]",
        "terseLabel": "Loans Held for Sale"
       }
      }
     },
     "localname": "LoansHeldForSaleMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_MaximumLoanEligibilityForFirstTimeBorrowers": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum loan eligibility for first time borrowers.",
        "label": "Maximum Loan Eligibility For First Time Borrowers",
        "terseLabel": "Maximum loan eligibility for first time borrowers"
       }
      }
     },
     "localname": "MaximumLoanEligibilityForFirstTimeBorrowers",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_MirrorSwapsWithCounterpartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mirror swaps with counterparties.",
        "label": "Mirror Swaps With Counterparties [Member]",
        "terseLabel": "Mirror Swaps with Counterparties"
       }
      }
     },
     "localname": "MirrorSwapsWithCounterpartiesMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_MortgageServicingRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgage servicing rights.",
        "label": "Mortgage Servicing Rights [Member]",
        "terseLabel": "Mortgage Servicing Rights"
       }
      }
     },
     "localname": "MortgageServicingRightsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_MortgagesNonownerOccupiedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgages nonowner occupied.",
        "label": "Mortgages Nonowner Occupied [Member]",
        "terseLabel": "Mortgages - Non-owner Occupied"
       }
      }
     },
     "localname": "MortgagesNonownerOccupiedMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_MortgagesOwnerOccupiedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgages owner occupied.",
        "label": "Mortgages Owner Occupied [Member]",
        "terseLabel": "Mortgages - Owner Occupied"
       }
      }
     },
     "localname": "MortgagesOwnerOccupiedMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_NumberOfDebtSecuritiesWithUnrealizedLosses": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of debt securities with unrealized losses.",
        "label": "Number Of Debt Securities With Unrealized Losses",
        "terseLabel": "Number of debt securities with unrealized losses"
       }
      }
     },
     "localname": "NumberOfDebtSecuritiesWithUnrealizedLosses",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "catc_OffsettingAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Offsetting assets and liabilities.",
        "label": "Offsetting Assets And Liabilities Table [Text Block]",
        "terseLabel": "Schedule of Financial Instruments Eligible for Offset in Consolidated Balance Sheet"
       }
      }
     },
     "localname": "OffsettingAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_OperatingLeaseLiabilityReduction": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease liability reduction.",
        "label": "Operating Lease Liability Reduction",
        "terseLabel": "Operating Lease - Operating cash flows (Liability reduction)"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityReduction",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncome": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCI on derivatives into income.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C I On Derivatives Into Income",
        "verboseLabel": "Amount of gain reclassed from AOCI into income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncome",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncomeExcludedComponent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCI on derivatives into income excluded component.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C I On Derivatives Into Income Excluded Component",
        "verboseLabel": "Amount of loss reclassed from AOCI into income (loss) - Excluded Component"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncomeExcludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncomeIncludedComponent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCI on derivatives into income included component.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C I On Derivatives Into Income Included Component",
        "verboseLabel": "Amount of gain reclassed from AOCI into income (loss) - Included Component"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesIntoIncomeIncludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Information.",
        "label": "Other Information [Abstract]",
        "terseLabel": "Other Information"
       }
      }
     },
     "localname": "OtherInformationAbstract",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_OtherRealEstateOwnedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other real estate owned.",
        "label": "Other Real Estate Owned [Member]",
        "terseLabel": "Other Real Estate Owned"
       }
      }
     },
     "localname": "OtherRealEstateOwnedMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_PaycheckProtectionProgramLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Paycheck protection program loans.",
        "label": "Paycheck Protection Program Loans [Member]",
        "terseLabel": "PPP Loans"
       }
      }
     },
     "localname": "PaycheckProtectionProgramLoansMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_PercentageOfLoansOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of loans outstanding.",
        "label": "Percentage Of Loans Outstanding",
        "terseLabel": "Percentage of total loans outstanding"
       }
      }
     },
     "localname": "PercentageOfLoansOutstanding",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "catc_PercentageOfUnrealizedDollarLossOnAmortizedCost": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of unrealized dollar loss on amortized cost.",
        "label": "Percentage Of Unrealized Dollar Loss On Amortized Cost",
        "terseLabel": "Percentage of unrealized dollar loss on amortized cost"
       }
      }
     },
     "localname": "PercentageOfUnrealizedDollarLossOnAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "catc_PerformanceBasedRestrictedStockUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance-based restricted stock units.",
        "label": "Performance Based Restricted Stock Units [Member]",
        "terseLabel": "Performance-Based Restricted Stock Units",
        "verboseLabel": "PRSUs"
       }
      }
     },
     "localname": "PerformanceBasedRestrictedStockUnitsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_PledgedAmountToFederalBankingDepartment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pledged amount to federal banking department.",
        "label": "Pledged Amount To Federal Banking Department",
        "terseLabel": "Pledged amount to federal banking department"
       }
      }
     },
     "localname": "PledgedAmountToFederalBankingDepartment",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_RiskParticipationAgreementsInWithCounterpartiesLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk participation agreements in with counterparties liabilities fair value disclosure.",
        "label": "Risk Participation Agreements In With Counterparties Liabilities Fair Value Disclosure",
        "terseLabel": "Risk participation agreements in with counterparties"
       }
      }
     },
     "localname": "RiskParticipationAgreementsInWithCounterpartiesLiabilitiesFairValueDisclosure",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_RiskParticipationAgreementsInWithCounterpartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk participation agreements in with counterparties.",
        "label": "Risk Participation Agreements In With Counterparties [Member]",
        "terseLabel": "Risk Participation Agreements in With Counterparties"
       }
      }
     },
     "localname": "RiskParticipationAgreementsInWithCounterpartiesMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_RiskParticipationAgreementsOutToCounterpartiesAssetsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk participation agreements out to counterparties assets fair value disclosure.",
        "label": "Risk Participation Agreements Out To Counterparties Assets Fair Value Disclosure",
        "terseLabel": "Risk participation agreements out to counterparties"
       }
      }
     },
     "localname": "RiskParticipationAgreementsOutToCounterpartiesAssetsFairValueDisclosure",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_RiskParticipationAgreementsOutToCounterpartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk participation agreements out to counterparties.",
        "label": "Risk Participation Agreements Out To Counterparties [Member]",
        "terseLabel": "Risk Participation Agreements Out to Counterparties"
       }
      }
     },
     "localname": "RiskParticipationAgreementsOutToCounterpartiesMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_RiskParticipationAgreementsWithCounterpartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk participation agreements with counterparties.",
        "label": "Risk Participation Agreements With Counterparties [Member]",
        "terseLabel": "Risk Participation Agreements with Counterparties"
       }
      }
     },
     "localname": "RiskParticipationAgreementsWithCounterpartiesMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of available for sale securities and held to maturity securities.",
        "label": "Schedule Of Available For Sale Securities And Held To Maturity Securities [Line Items]",
        "terseLabel": "Schedule of Available for Sale Securities and Held to Maturity Securities [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesLineItems",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of available for sale securities and held to maturity securities.",
        "label": "Schedule Of Available For Sale Securities And Held To Maturity Securities [Table]",
        "terseLabel": "Schedule Of Available For Sale Securities And Held To Maturity Securities [Table]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesAndHeldToMaturitySecuritiesTable",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_ScheduleOfNonPerformingLoansIncludingTroubledDebtRestructuringsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of non-performing loans including troubled debt restructurings.",
        "label": "Schedule Of Non Performing Loans Including Troubled Debt Restructurings Table [Text Block]",
        "terseLabel": "Non-performing Loans Disaggregated by Loan Category"
       }
      }
     },
     "localname": "ScheduleOfNonPerformingLoansIncludingTroubledDebtRestructuringsTableTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of operating lease cost and other related information.",
        "label": "Schedule Of Operating Lease Cost And Other Related Information Table [Text Block]",
        "terseLabel": "Summary of Components of Operating Lease Cost and Other Related Information"
       }
      }
     },
     "localname": "ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_StateNetOperatingLossCarryforwardsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "State net operating loss carryforwards.",
        "label": "State Net Operating Loss Carryforwards [Member]",
        "terseLabel": "State NOL [Member]"
       }
      }
     },
     "localname": "StateNetOperatingLossCarryforwardsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_TroubledDebtRestructuringsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Troubled debt restructurings.",
        "label": "Troubled Debt Restructurings [Member]",
        "terseLabel": "Troubled Debt Restructurings"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_TwoThousandSeventeenEquityAndCashIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand seventeen equity and cash incentive plan.",
        "label": "Two Thousand Seventeen Equity And Cash Incentive Plan [Member]",
        "terseLabel": "2017 Equity and Cash Incentive Plan"
       }
      }
     },
     "localname": "TwoThousandSeventeenEquityAndCashIncentivePlanMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_UnearnedFeesNetOfDeferredCosts": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unearned fees, net of deferred costs.",
        "label": "Unearned Fees Net Of Deferred Costs",
        "negatedLabel": "Unearned fees, net of deferred costs"
       }
      }
     },
     "localname": "UnearnedFeesNetOfDeferredCosts",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_UnfundedCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded Commitments [Member]",
        "label": "Unfunded Commitments [Member]",
        "terseLabel": "Unfunded Commitments"
       }
      }
     },
     "localname": "UnfundedCommitmentsMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_UnrealizedDollarLossOfAmortizedCostBasis": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized dollar loss of amortized cost basis.",
        "label": "Unrealized Dollar Loss Of Amortized Cost Basis",
        "terseLabel": "Unrealized dollar loss of amortized cost basis"
       }
      }
     },
     "localname": "UnrealizedDollarLossOfAmortizedCostBasis",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_UseOfEstimatesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Use of estimates.",
        "label": "Use Of Estimates [Abstract]"
       }
      }
     },
     "localname": "UseOfEstimatesAbstract",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "xbrltype": "stringItemType"
    },
    "catc_UseOfEstimatesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Use of estimates.",
        "label": "Use Of Estimates [Text Block]",
        "terseLabel": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimatesTextBlock",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureUseOfEstimates"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_WellesleyBancorpIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Wellesley Bancorp Inc..",
        "label": "Wellesley Bancorp Inc [Member]",
        "terseLabel": "Wellesley"
       }
      }
     },
     "localname": "WellesleyBancorpIncMember",
     "nsuri": "http://www.cambridgetrust.com/20210630",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2020-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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY 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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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 YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r684"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r685"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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 Line1",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r686"
     ],
     "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",
        "verboseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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 Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r687"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r686"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r682"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Security12b Title",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r683"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r437",
      "r438",
      "r442",
      "r443",
      "r681"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r437",
      "r438",
      "r442",
      "r443"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "auth_ref": [
      "r91",
      "r101",
      "r215",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption Adjustment [Member]",
        "terseLabel": "Cumulative Effect, Period of Adoption, Adjustment"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "auth_ref": [
      "r91",
      "r101",
      "r215",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption [Axis]",
        "terseLabel": "Cumulative Effect, Period of Adoption"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "auth_ref": [
      "r91",
      "r101",
      "r215",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect Period Of Adoption [Domain]",
        "terseLabel": "Cumulative Effect, Period of Adoption"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r361",
      "r371",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r565",
      "r631",
      "r634"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r361",
      "r371",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r565",
      "r631",
      "r634"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]",
        "verboseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r153",
      "r267",
      "r268",
      "r566",
      "r630",
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product Or Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r153",
      "r267",
      "r268",
      "r566",
      "r630",
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products And Services [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r299",
      "r361",
      "r371",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r565",
      "r631",
      "r634"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r299",
      "r361",
      "r371",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r565",
      "r631",
      "r634"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Member]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioForecastMember": {
     "auth_ref": [
      "r366"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario Forecast [Member]",
        "terseLabel": "Scenario Forecast"
       }
      }
     },
     "localname": "ScenarioForecastMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r366"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario Unspecified [Domain]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r154",
      "r155",
      "r267",
      "r269",
      "r633",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Geographical [Domain]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r154",
      "r155",
      "r267",
      "r269",
      "r633",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Geographical [Axis]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r258",
      "r366",
      "r529"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement Scenario [Axis]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SubsidiariesMember": {
     "auth_ref": [
      "r326",
      "r525",
      "r526",
      "r527"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [Member]",
        "terseLabel": "Cambridge Trust Company"
       }
      }
     },
     "localname": "SubsidiariesMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NH": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW HAMPSHIRE",
        "terseLabel": "New Hampshire"
       }
      }
     },
     "localname": "NH",
     "nsuri": "http://xbrl.sec.gov/stpr/2018-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "auth_ref": [
      "r208"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments.",
        "label": "Accounting Standards Update201613 [Member]",
        "terseLabel": "ASU-2016-13",
        "verboseLabel": "ASC 326"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201613Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdateExtensibleList": {
     "auth_ref": [
      "r94",
      "r95",
      "r96",
      "r98",
      "r212",
      "r213",
      "r214",
      "r215",
      "r218",
      "r219",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r391",
      "r410",
      "r411",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates amendment to accounting standards.",
        "label": "Accounting Standards Update Extensible List",
        "terseLabel": "Accounting Standards Update [Extensible List]"
       }
      }
     },
     "localname": "AccountingStandardsUpdateExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "extensibleListItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r10",
      "r34",
      "r36",
      "r37",
      "r619",
      "r642",
      "r646"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10060.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 income (loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r33",
      "r37",
      "r40",
      "r88",
      "r89",
      "r90",
      "r441",
      "r637",
      "r638"
     ],
     "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": "Accumulated Other Comprehensive Income [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r8"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10040.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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r88",
      "r89",
      "r90",
      "r387",
      "r388",
      "r389"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustableRateResidentialMortgageMember": {
     "auth_ref": [
      "r670"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan to purchase or refinance residential real estate (for example, but not limited to, a home) in which the interest rate is periodically adjusted according to changes in a specified reference rate.",
        "label": "Adjustable Rate Residential Mortgage [Member]",
        "terseLabel": "Mortgages - Adjustable Rate"
       }
      }
     },
     "localname": "AdjustableRateResidentialMortgageMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r94",
      "r95",
      "r96",
      "r98",
      "r212",
      "r213",
      "r214",
      "r215",
      "r218",
      "r219",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r391",
      "r408",
      "r409",
      "r410",
      "r411",
      "r567",
      "r568",
      "r569",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Adjustments For New Accounting Pronouncements [Axis]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r373",
      "r375",
      "r393",
      "r394"
     ],
     "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": "Adjustments To Additional Paid In Capital Sharebased Compensation Requisite Service Period Recognition Value",
        "terseLabel": "Share based compensation and other share-based activity"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "auth_ref": [
      "r614"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10080.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of borrowings as of the balance sheet date from the Federal Home Loan Bank, which are primarily used to cover shortages in the required reserve balance and liquidity shortages.",
        "label": "Advances From Federal Home Loan Banks",
        "terseLabel": "Borrowings"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r375",
      "r381",
      "r392"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Allocated Share Based Compensation Expense",
        "terseLabel": "Stock based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfPreTaxExpenseAssociatedWithAllOutstandingNonVestedRsasRsusPerformanceBasedRestrictedStockUnitsAndRelatedTaxBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r164",
      "r229"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable.",
        "label": "Allowance For Credit Losses On Financing Receivables Table [Text Block]",
        "terseLabel": "Summary of Changes in Allowance for Credit Losses Disaggregated by Loan Category"
       }
      }
     },
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AssetManagement1Member": {
     "auth_ref": [
      "r268"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management of investment fund portfolio. Excludes investment advisory, distribution and servicing, and performance fee.",
        "label": "Asset Management1 [Member]",
        "terseLabel": "Wealth Management Revenue"
       }
      }
     },
     "localname": "AssetManagement1Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r84",
      "r142",
      "r145",
      "r151",
      "r207",
      "r437",
      "r442",
      "r494",
      "r577",
      "r618"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r478"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets Fair Value Disclosure",
        "terseLabel": "Assets, fair value, non-recurring basis"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Fair Value Disclosure [Abstract]",
        "terseLabel": "Financial assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r187"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10100.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": "Available For Sale Debt Securities Accumulated Gross Unrealized Gain Before Tax",
        "terseLabel": "Available for sale securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r188"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10110.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": "Available For Sale Debt Securities Accumulated Gross Unrealized Loss Before Tax",
        "negatedLabel": "Available for sale securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [
      "r185",
      "r244"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "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": "Available For Sale Debt Securities Amortized Cost Basis",
        "terseLabel": "Available for sale securities, amortized cost",
        "totalLabel": "Available for sale securities, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10210.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "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), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Next Rolling Twelve Months Amortized Cost Basis",
        "terseLabel": "Available for sale securities, Within One Year, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10170.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "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 rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Next Rolling Twelve Months Fair Value",
        "terseLabel": "Available for sale securities, Within One Year, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10240.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "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), with single maturity date and allocated without single maturity date, maturing after rolling tenth fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling After Year Ten Amortized Cost Basis",
        "terseLabel": "Available for sale securities, After Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10200.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "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 after rolling tenth fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling After Year Ten Fair Value",
        "terseLabel": "Available for sale securities, After Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10230.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "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), with single maturity date and allocated without single maturity date, maturing in rolling sixth through tenth fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling Year Six Through Ten Amortized Cost Basis",
        "terseLabel": "Available for sale securities, After Five, But Within Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10190.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "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 rolling sixth through tenth fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling Year Six Through Ten Fair Value",
        "terseLabel": "Available for sale securities, After Five, But Within Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10220.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "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), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year through fifth year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling Year Two Through Five Amortized Cost Basis",
        "terseLabel": "Available for sale securities, After One, But Within Five Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10180.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
       "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 rolling fiscal year through fifth year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Available For Sale Securities Debt Maturities Rolling Year Two Through Five Fair Value",
        "terseLabel": "Available for sale securities, After One, But Within Five Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate": {
     "auth_ref": [
      "r189",
      "r190",
      "r609"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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.",
        "label": "Available For Sale Securities Debt Maturities Single Maturity Date",
        "totalLabel": "Available for sale securities, Total, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis": {
     "auth_ref": [
      "r189",
      "r190",
      "r608"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "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), with single maturity date and allocated without single maturity date.",
        "label": "Available For Sale Securities Debt Maturities Single Maturity Date Amortized Cost Basis",
        "totalLabel": "Available for sale securities, Total, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r182",
      "r186",
      "r244",
      "r579"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10120.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10310.0,
       "parentTag": "us-gaap_MarketableSecurities",
       "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": "Available For Sale Securities Debt Securities",
        "positiveTerseLabel": "Available for sale securities, Fair Value",
        "positiveVerboseLabel": "Securities available for sale",
        "terseLabel": "Available for sale, at fair value (amortized cost $211,990 and $234,252, respectively)",
        "verboseLabel": "Total available for sale securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r376",
      "r382"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables"
     ],
     "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"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r452",
      "r458"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "auth_ref": [
      "r576"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10210.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of a life insurance policy on an officer, executive or employee for which the reporting entity (a bank) is entitled to proceeds from the policy upon death of the insured or surrender of the insurance policy.",
        "label": "Bank Owned Life Insurance",
        "terseLabel": "Bank owned life insurance"
       }
      }
     },
     "localname": "BankOwnedLifeInsurance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "auth_ref": [
      "r597"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10220.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10170.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies.",
        "label": "Bank Owned Life Insurance Income",
        "negatedLabel": "Bank owned life insurance income",
        "terseLabel": "Bank owned life insurance income"
       }
      }
     },
     "localname": "BankOwnedLifeInsuranceIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioCapitalAdequacyMinimum": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Common Equity Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation Common Equity Tier One Risk Based Capital Ratio Capital Adequacy Minimum",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Ratio"
       }
      }
     },
     "localname": "BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioCapitalAdequacyMinimum",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Common Equity Tier 1 risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Banking Regulation Common Equity Tier One Risk Based Capital Ratio Well Capitalized Minimum",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Ratio"
       }
      }
     },
     "localname": "BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r354",
      "r367"
     ],
     "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"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r354",
      "r367",
      "r426",
      "r427"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "auth_ref": [
      "r432"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity.",
        "label": "Business Acquisition Equity Interests Issued Or Issuable Number Of Shares Issued",
        "terseLabel": "Common stock issued related to merger"
       }
      }
     },
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "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": "Business Acquisition [Line Items]",
        "terseLabel": "Business Acquisition [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination.",
        "label": "Business Acquisition Share Price",
        "terseLabel": "Business combination, share price"
       }
      }
     },
     "localname": "BusinessAcquisitionSharePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "auth_ref": [
      "r429",
      "r430",
      "r431"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer.",
        "label": "Business Combination Consideration Transferred1",
        "terseLabel": "Total consideration paid"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferred1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r433"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. The disclosure may include leverage buyout transactions (as applicable).",
        "label": "Business Combination Disclosure [Text Block]",
        "terseLabel": "Mergers"
       }
      }
     },
     "localname": "BusinessCombinationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergers"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessCombinationIntegrationRelatedCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Costs incurred to effect a business combination which have been expensed during the period. Such costs could include business integration costs, systems integration and conversion costs, and severance and other employee-related costs.",
        "label": "Business Combination Integration Related Costs",
        "terseLabel": "Merger expenses"
       }
      }
     },
     "localname": "BusinessCombinationIntegrationRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "auth_ref": [
      "r428"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets acquired at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Assets",
        "terseLabel": "Total assets acquired"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "auth_ref": [
      "r428"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Liabilities",
        "terseLabel": "Total liabilities assumed"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessDescriptionAndBasisOfPresentationTextBlock": {
     "auth_ref": [
      "r1",
      "r87",
      "r137"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the business description and basis of presentation concepts.  Business description describes the nature and type of organization including but not limited to organizational structure as may be applicable to holding companies, parent and subsidiary relationships, business divisions, business units, business segments, affiliates and information about significant ownership of the reporting entity.  Basis of presentation describes the underlying basis used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Business Description And Basis Of Presentation [Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BusinessDescriptionAndBasisOfPresentationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Capital": {
     "auth_ref": [
      "r615",
      "r667",
      "r668"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of total capital as defined by regulatory framework.",
        "label": "Capital",
        "terseLabel": "Total capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "Capital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum total risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Capital Required For Capital Adequacy",
        "terseLabel": "Total capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Amount"
       }
      }
     },
     "localname": "CapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework.",
        "label": "Capital Required For Capital Adequacy To Risk Weighted Assets",
        "terseLabel": "Total capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Ratio"
       }
      }
     },
     "localname": "CapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum total risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Capital Required To Be Well Capitalized",
        "terseLabel": "Total capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Amount"
       }
      }
     },
     "localname": "CapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum total risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Capital Required To Be Well Capitalized To Risk Weighted Assets",
        "terseLabel": "Total capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Ratio"
       }
      }
     },
     "localname": "CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of total risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Capital To Risk Weighted Assets",
        "verboseLabel": "Total capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "CapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r492",
      "r493"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Carrying Reported Amount Fair Value Disclosure [Member]",
        "terseLabel": "Carrying Value"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "auth_ref": [
      "r63"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10170.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business).",
        "label": "Cash Acquired From Acquisition",
        "terseLabel": "Net cash acquired in business combinations"
       }
      }
     },
     "localname": "CashAcquiredFromAcquisition",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash And Cash Equivalents [Abstract]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r2",
      "r14",
      "r77"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10160.0,
       "parentTag": "us-gaap_Assets",
       "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"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of cash and cash equivalent balance.",
        "label": "Cash And Cash Equivalents [Axis]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsDisclosureTextBlock": {
     "auth_ref": [
      "r3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for cash and cash equivalent footnotes,  which may include the types of deposits and money market instruments, applicable carrying amounts, restricted amounts and compensating balance arrangements. Cash and equivalents include: (1) currency on hand (2) demand deposits with banks or financial institutions (3) other kinds of accounts that have the general characteristics of demand deposits (4) 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. Generally, only investments maturing within three months from the date of acquisition qualify.",
        "label": "Cash And Cash Equivalents Disclosure [Text Block]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion 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.",
        "label": "Cash And Cash Equivalents Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndSecuritiesSegregatedUnderFederalAndOtherRegulations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash subject to withdrawal restrictions, restricted deposits held as compensating balances, and cash and securities segregated in compliance with regulations (such as cash deposited in a special reserve account for the exclusive benefit of customers).",
        "label": "Cash And Securities Segregated Under Federal And Other Regulations",
        "terseLabel": "Reserve balance of cash and due from banks"
       }
      }
     },
     "localname": "CashAndSecuritiesSegregatedUnderFederalAndOtherRegulations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r70",
      "r77",
      "r82"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, 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 Including Disposal Group And Discontinued Operations",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of period"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "auth_ref": [
      "r70",
      "r496"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; excluding 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 Excluding Exchange Rate Effect",
        "totalLabel": "Net change in cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r450"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk.",
        "label": "Cash Flow Hedging [Member]",
        "terseLabel": "Cash Flow Hedging"
       }
      }
     },
     "localname": "CashFlowHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "auth_ref": [
      "r92",
      "r209",
      "r210",
      "r211",
      "r212",
      "r213",
      "r383",
      "r384",
      "r385",
      "r408",
      "r475",
      "r495",
      "r509",
      "r567",
      "r568",
      "r635",
      "r636"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether accounting standards update was adopted.",
        "label": "Change In Accounting Principle Accounting Standards Update Adopted",
        "terseLabel": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "auth_ref": [
      "r101",
      "r209",
      "r210",
      "r211",
      "r212",
      "r213",
      "r383",
      "r384",
      "r385",
      "r408",
      "r475",
      "r495",
      "r509",
      "r567",
      "r568",
      "r635",
      "r636"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date accounting standards update was adopted, in CCYY-MM-DD format.",
        "label": "Change In Accounting Principle Accounting Standards Update Adoption Date",
        "terseLabel": "Change in Accounting Principle, Accounting Standards Update, Adoption Date"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_CollateralAlreadyPostedAggregateFairValue": {
     "auth_ref": [
      "r469"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate fair value of assets that are already posted, at the end of the reporting period, as collateral for derivative instruments with credit-risk-related contingent features.",
        "label": "Collateral Already Posted Aggregate Fair Value",
        "terseLabel": "Minimum collateral posting threshold of derivative counterparties",
        "verboseLabel": "Pledged cash collateral to derivative counterparties"
       }
      }
     },
     "localname": "CollateralAlreadyPostedAggregateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CollateralAxis": {
     "auth_ref": [
      "r239"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Axis]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Domain]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CollateralPledgedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pledge of specific property to serve as protection against default.",
        "label": "Collateral Pledged [Member]",
        "terseLabel": "Funded Commitments"
       }
      }
     },
     "localname": "CollateralPledgedMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables.",
        "label": "Commercial Portfolio Segment [Member]",
        "terseLabel": "Commercial Mortgage"
       }
      }
     },
     "localname": "CommercialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialRealEstatePortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial real estate.",
        "label": "Commercial Real Estate Portfolio Segment [Member]",
        "terseLabel": "Commercial Mortgage"
       }
      }
     },
     "localname": "CommercialRealEstatePortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonEquityTierOneCapital": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Common Equity Tier 1 risk-based capital as defined by regulatory framework.",
        "label": "Common Equity Tier One Capital",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "CommonEquityTierOneCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRatio": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Common Equity Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Common Equity Tier One Capital Ratio",
        "verboseLabel": "Common equity tier I capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitalRatio",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Common Equity Tier 1 risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Common Equity Tier One Capital Required For Capital Adequacy",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Amount"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Common Equity Tier 1 risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Common Equity Tier One Capital Required To Be Well Capitalized",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Amount"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r263"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock Dividends Per Share Declared",
        "terseLabel": "Dividends declared, per share"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r88",
      "r89"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock Par Or Stated Value Per Share",
        "terseLabel": "Common stock, par value"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r7"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r7",
      "r262"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock Shares Outstanding",
        "terseLabel": "Common stock, shares, outstanding"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r7"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10030.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock Value",
        "terseLabel": "Common stock, par value $1.00; Authorized: 10,000,000 shares; Outstanding: 6,965,557 shares and 6,926,728 shares, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommunicationsAndInformationTechnology": {
     "auth_ref": [
      "r57"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10080.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense in the period for communications and data processing expense.",
        "label": "Communications And Information Technology",
        "terseLabel": "Data processing"
       }
      }
     },
     "localname": "CommunicationsAndInformationTechnology",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation And Retirement Disclosure [Abstract]"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems": {
     "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": "Compliance With Regulatory Capital Requirements Under Banking Regulations [Line Items]",
        "terseLabel": "Compliance With Regulatory Capital Requirements Under Banking Regulations [Line Items]"
       }
      }
     },
     "localname": "ComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r43",
      "r45",
      "r46",
      "r52",
      "r590",
      "r625"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "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 Net Of Tax",
        "totalLabel": "Comprehensive income (loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r51",
      "r60",
      "r589",
      "r624"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.",
        "label": "Comprehensive Income Note [Text Block]",
        "terseLabel": "Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionLoansMember": {
     "auth_ref": [
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A borrowing arrangement which provides the entity constructing a facility (such as a building and a landfill) with funds to effect construction, generally on a draw down, or as needed, basis.",
        "label": "Construction Loans [Member]",
        "terseLabel": "Construction"
       }
      }
     },
     "localname": "ConstructionLoansMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables.",
        "label": "Consumer Portfolio Segment [Member]",
        "terseLabel": "Consumer",
        "verboseLabel": "Consumer Loans"
       }
      }
     },
     "localname": "ConsumerPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r300",
      "r348",
      "r647"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities issued by domestic or foreign corporate business, banks and other entities with a promise of repayment.",
        "label": "Corporate Debt Securities [Member]",
        "terseLabel": "Corporate Debt Securities"
       }
      }
     },
     "localname": "CorporateDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current state, local, and federal tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current Federal State And Local Tax Expense Benefit",
        "totalLabel": "Total current income tax expense"
       }
      }
     },
     "localname": "CurrentFederalStateAndLocalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefitAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Federal State And Local Tax Expense Benefit [Abstract]",
        "terseLabel": "Current income tax expense"
       }
      }
     },
     "localname": "CurrentFederalStateAndLocalTaxExpenseBenefitAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r85",
      "r405",
      "r417"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current federal tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current Federal Tax Expense Benefit",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "CurrentFederalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [
      "r85",
      "r405",
      "r417"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10060.0,
       "parentTag": "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current state and local tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current State And Local Tax Expense Benefit",
        "terseLabel": "State"
       }
      }
     },
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebitCardMember": {
     "auth_ref": [
      "r268"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Card issued to user to facilitate payment for purchase of product and service, directly from user's checking account.",
        "label": "Debit Card [Member]",
        "terseLabel": "ATM/Debit Card Income"
       }
      }
     },
     "localname": "DebitCardMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "auth_ref": [
      "r54",
      "r55"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10230.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10180.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities.",
        "label": "Debt And Equity Securities Gain Loss",
        "negatedLabel": "Gain on disposition of investment securities",
        "terseLabel": "Gain on disposition of investment securities",
        "verboseLabel": "Unrealized gains on available for sale securities"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity": {
     "auth_ref": [
      "r579"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity) and 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 And Held To Maturity",
        "totalLabel": "Available for sale securities and Held to maturity securities, Total, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAndHeldToMaturity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r203",
      "r248",
      "r251"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10120.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 Position12 Months Or Longer",
        "terseLabel": "Available for sale securities, Fair Value, 12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r203",
      "r248"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10100.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 Position12 Months Or Longer Accumulated Loss",
        "negatedLabel": "Available for sale securities, Unrealized Losses, 12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r203",
      "r248",
      "r251"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10110.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 Than12 Months",
        "terseLabel": "Available for sale securities, Fair Value, Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r203",
      "r248"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10090.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 Than12 Months Accumulated Loss",
        "negatedLabel": "Available for sale securities, Unrealized Losses, Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTableTextBlock": {
     "auth_ref": [
      "r205"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure 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 Table [Text Block]",
        "terseLabel": "Summary of Carrying Amounts of Securities and Their Approximate Fair Values"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r201",
      "r245",
      "r251"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "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": "Available for sale securities, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r202",
      "r246"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "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",
        "negatedTotalLabel": "Available for sale securities, Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock": {
     "auth_ref": [
      "r200",
      "r247",
      "r251"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of fair value 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. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities Available For Sale Unrealized Loss Position Fair Value Table [Text Block]",
        "terseLabel": "Gross Unrealized Losses of Aggregated by Investment Category and Length of Time that Individual Securities have been in Continuous Loss Position"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r85",
      "r406",
      "r417"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred federal income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Federal Income Tax Expense Benefit",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred state, local, and federal tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Federal State And Local Tax Expense Benefit",
        "totalLabel": "Total deferred income tax expense (benefit)"
       }
      }
     },
     "localname": "DeferredFederalStateAndLocalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefitAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Federal State And Local Tax Expense Benefit [Abstract]",
        "terseLabel": "Deferred income tax expense (benefit)"
       }
      }
     },
     "localname": "DeferredFederalStateAndLocalTaxExpenseBenefitAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "auth_ref": [
      "r396",
      "r397"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10240.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, net",
        "verboseLabel": "Net deferred tax assets"
       }
      }
     },
     "localname": "DeferredIncomeTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r85",
      "r406",
      "r417"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 10040.0,
       "parentTag": "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred state and local tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred State And Local Income Tax Expense Benefit",
        "terseLabel": "State"
       }
      }
     },
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r402"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Deferred Tax Assets Valuation Allowance",
        "terseLabel": "Deferred tax assets, valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "auth_ref": [
      "r277",
      "r315",
      "r342",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan.",
        "label": "Defined Benefit Plan Amortization Of Gains Losses",
        "negatedLabel": "Amortization of net actuarial (gain) loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "auth_ref": [
      "r277",
      "r316",
      "r343",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 10040.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prior service cost (credit) recognized in net periodic benefit cost (credit) of defined benefit plan.",
        "label": "Defined Benefit Plan Amortization Of Prior Service Cost Credit",
        "terseLabel": "Amortization of prior service credit"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "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": "Defined Benefit Plan Disclosure [Line Items]",
        "terseLabel": "Defined Benefit Plan Disclosure [Line Items]"
       }
      }
     },
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "auth_ref": [
      "r277",
      "r314",
      "r341",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan.",
        "label": "Defined Benefit Plan Expected Return On Plan Assets",
        "negatedLabel": "Expected return on assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r277",
      "r281",
      "r313",
      "r340",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan.",
        "label": "Defined Benefit Plan Interest Cost",
        "terseLabel": "Interest cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanInterestCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r311",
      "r338",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan.",
        "label": "Defined Benefit Plan Net Periodic Benefit Cost",
        "totalLabel": "Net periodic benefit cost (credit)"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Net Periodic Benefit Cost [Abstract]",
        "terseLabel": "Net periodic benefit cost (credit)"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "auth_ref": [
      "r279",
      "r312",
      "r339",
      "r348",
      "r349"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Defined Benefit Plan Service Cost",
        "terseLabel": "Service cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanServiceCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPostretirementHealthCoverageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide postretirement health benefits to retiree or beneficiary. Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Defined Benefit Postretirement Health Coverage [Member]",
        "terseLabel": "Postretirement Healthcare Plan"
       }
      }
     },
     "localname": "DefinedBenefitPostretirementHealthCoverageMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "auth_ref": [
      "r352"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for defined contribution plan.",
        "label": "Defined Contribution Plan Cost Recognized",
        "terseLabel": "Contribution expense related to plans"
       }
      }
     },
     "localname": "DefinedContributionPlanCostRecognized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discretionary contributions made by an employer to a defined contribution plan.",
        "label": "Defined Contribution Plan Employer Discretionary Contribution Amount",
        "terseLabel": "Contributions to defined benefit pension plan"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerDiscretionaryContributionAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan.",
        "label": "Defined Contribution Plan Employer Matching Contribution Percent",
        "terseLabel": "Defined contribution plan, employer matching contribution, percent"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMatchingContributionPercent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage employer matches of the employee's percentage contribution matched.",
        "label": "Defined Contribution Plan Employer Matching Contribution Percent Of Match",
        "terseLabel": "Defined contribution plan, employer matching contribution, percent"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMatchingContributionPercentOfMatch",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum percentage of employee gross pay the employee may contribute to a defined contribution plan.",
        "label": "Defined Contribution Plan Maximum Annual Contributions Per Employee Percent",
        "terseLabel": "Defined contribution plan, maximum employee contribution, percent"
       }
      }
     },
     "localname": "DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DemandDepositAccounts": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10110.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of money in accounts that may bear interest and that the depositor is entitled to withdraw at any time without prior notice.",
        "label": "Demand Deposit Accounts",
        "terseLabel": "Demand"
       }
      }
     },
     "localname": "DemandDepositAccounts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositAccountMember": {
     "auth_ref": [
      "r268"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bank account at depository institution allowing money to be withdrawn or deposited by account holder.",
        "label": "Deposit Account [Member]",
        "terseLabel": "Deposit Account Fees"
       }
      }
     },
     "localname": "DepositAccountMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Deposits": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10070.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate of all deposit liabilities held by the entity, including foreign and domestic, interest and noninterest bearing; may include demand deposits, saving deposits, Negotiable Order of Withdrawal (NOW) and time deposits among others.",
        "label": "Deposits",
        "totalLabel": "Total deposits"
       }
      }
     },
     "localname": "Deposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Abstract]",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "DepositsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DepositsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of deposit liabilities held by the entity, including, but not limited to, foreign and domestic, interest and noninterest bearing, demand deposits, saving deposits, negotiable orders of withdrawal (NOW) and time deposits.",
        "label": "Deposits Fair Value Disclosure",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "DepositsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsMoneyMarketDeposits": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10130.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deposits in accounts that offer many of the same services as checking accounts although transactions may be somewhat more limited, share some of the characteristics of a money market fund and are insured by the Federal government, also known as money market accounts.",
        "label": "Deposits Money Market Deposits",
        "terseLabel": "Money market"
       }
      }
     },
     "localname": "DepositsMoneyMarketDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsSavingsDeposits": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10140.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest bearing deposits with no stated maturity, which may include passbook and statement savings accounts and money-market deposit accounts (MMDAs).",
        "label": "Deposits Savings Deposits",
        "terseLabel": "Savings"
       }
      }
     },
     "localname": "DepositsSavingsDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r75"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10210.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Depreciation Amortization And Accretion Net",
        "terseLabel": "(Accretion), depreciation, and amortization, net"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset": {
     "auth_ref": [
      "r20",
      "r446"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10080.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral",
       "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",
        "negatedLabel": "Gross Amounts Not Offset, Collateral Pledged (Received), Derivative Assets"
       }
      }
     },
     "localname": "DerivativeAssetCollateralObligationToReturnCashOffset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "auth_ref": [
      "r20",
      "r27",
      "r456"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10100.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of liability associated with 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.",
        "label": "Derivative Asset Fair Value Gross Liability",
        "terseLabel": "Gross Amounts Offset, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeAssetFairValueGrossLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "auth_ref": [
      "r447",
      "r448",
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset.",
        "label": "Derivative Asset Notional Amount",
        "terseLabel": "Derivative Assets, Notional amount"
       }
      }
     },
     "localname": "DerivativeAssetNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r21",
      "r24",
      "r491"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10060.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "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 Assets",
        "totalLabel": "Net Amounts Recognized, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralObligationToReturnSecurities": {
     "auth_ref": [
      "r22",
      "r25"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10070.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to return securities collateral under master netting arrangements that have not been offset against derivative assets.",
        "label": "Derivative Collateral Obligation To Return Securities",
        "terseLabel": "Gross Amounts Not Offset, Financial Instruments, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeCollateralObligationToReturnSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimCash": {
     "auth_ref": [
      "r22",
      "r25",
      "r472"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities.",
        "label": "Derivative Collateral Right To Reclaim Cash",
        "terseLabel": "Gross Amounts Not Offset, Collateral Pledged (Received), Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeCollateralRightToReclaimCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimSecurities": {
     "auth_ref": [
      "r22",
      "r25"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive securities collateral under master netting arrangements that have not been offset against derivative liabilities.",
        "label": "Derivative Collateral Right To Reclaim Securities",
        "terseLabel": "Gross Amounts Not Offset, Financial Instruments, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeCollateralRightToReclaimSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument 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.",
        "label": "Derivative Contract Type [Domain]",
        "terseLabel": "Derivative Contract"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r19",
      "r26",
      "r456",
      "r544"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10090.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 Fair Value Of Derivative Asset",
        "terseLabel": "Derivative Assets, Fair value",
        "verboseLabel": "Gross Amounts Recognized, Derivative assets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral": {
     "auth_ref": [
      "r23",
      "r25",
      "r471"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after effects of master netting arrangements, of 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 offset against an obligation to return collateral. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Fair Value Of Derivative Asset Amount Offset Against Collateral",
        "totalLabel": "Gross Amounts Not Offset, Net amount, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r19",
      "r26",
      "r456",
      "r544"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10040.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 Fair Value Of Derivative Liability",
        "terseLabel": "Derivative Liabilities, Fair value",
        "verboseLabel": "Gross Amounts Recognized, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral": {
     "auth_ref": [
      "r23",
      "r25",
      "r471"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after effects of master netting arrangements, of 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 offset against the right to receive collateral. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Fair Value Of Derivative Liability Amount Offset Against Collateral",
        "totalLabel": "Gross Amounts Not Offset, Net amount, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r454"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10200.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "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": "Loan related derivative income"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r453",
      "r457",
      "r463",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument Risk [Axis]",
        "terseLabel": "Derivative Instrument"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r477"
     ],
     "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 And Hedging Activities"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivities"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r451",
      "r453",
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Derivative Instruments Gain Loss By Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments Not Designated As Hedging Instruments [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet": {
     "auth_ref": [
      "r462",
      "r464"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized and unrealized gain (loss) of derivative instruments not designated or qualifying as hedging instruments.",
        "label": "Derivative Instruments Not Designated As Hedging Instruments Gain Loss Net",
        "terseLabel": "Amount of Gain or (Loss) Recognized in Income on Derivative"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r21",
      "r24",
      "r491"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "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 Liabilities",
        "totalLabel": "Net Amounts Recognized, Derivative Liabilities",
        "verboseLabel": "Fair value of derivative liability"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "auth_ref": [
      "r20",
      "r27",
      "r456"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of asset associated with 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.",
        "label": "Derivative Liability Fair Value Gross Asset",
        "terseLabel": "Gross Amounts Offset, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilityFairValueGrossAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "auth_ref": [
      "r447",
      "r448",
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability.",
        "label": "Derivative Liability Notional Amount",
        "terseLabel": "Derivative Liabilities, Notional Amount"
       }
      }
     },
     "localname": "DerivativeLiabilityNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNotionalAmount": {
     "auth_ref": [
      "r448",
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payment on derivative.",
        "label": "Derivative Notional Amount",
        "positiveVerboseLabel": "Termination amount"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Designated As Hedging Instrument [Member]",
        "terseLabel": "Derivatives Designated as Hedging Instruments"
       }
      }
     },
     "localname": "DesignatedAsHedgingInstrumentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r395"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Disclosure Of Compensation Related Costs Share Based Payments [Text Block]",
        "terseLabel": "Stock Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "auth_ref": [
      "r376",
      "r382"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of share-based payment arrangement.",
        "label": "Disclosure Of Share Based Compensation Arrangements By Share Based Payment Award [Text Block]",
        "terseLabel": "Schedule of Shares Issued and Fair Value of RSAs, RSUs and PRSUs"
       }
      }
     },
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsCommonStock": {
     "auth_ref": [
      "r263",
      "r612"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash, stock and payment-in-kind (PIK).",
        "label": "Dividends Common Stock",
        "negatedLabel": "Dividends declared"
       }
      }
     },
     "localname": "DividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DoubtfulMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables that have all the weaknesses inherent in those classified as substandard, with the added characteristic that the weaknesses make collection or liquidation in full, on the basis of currently existing facts, conditions, and values, highly questionable and improbable.",
        "label": "Doubtful [Member]",
        "terseLabel": "9 (Doubtful)"
       }
      }
     },
     "localname": "DoubtfulMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Share data:"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r53",
      "r99",
      "r100",
      "r101",
      "r102",
      "r103",
      "r110",
      "r113",
      "r118",
      "r121",
      "r122",
      "r126",
      "r127",
      "r591",
      "r626"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share Basic",
        "terseLabel": "Basic earnings (loss) per share",
        "verboseLabel": "Earnings (loss) per common share - basic"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share Basic [Abstract]",
        "terseLabel": "Earnings per common share - basic:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r53",
      "r99",
      "r100",
      "r101",
      "r102",
      "r103",
      "r113",
      "r118",
      "r121",
      "r122",
      "r126",
      "r127",
      "r591",
      "r626"
     ],
     "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 earnings (loss) per share",
        "verboseLabel": "Earnings (loss) per common share - diluted"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share Diluted [Abstract]",
        "terseLabel": "Earnings per common share - diluted:"
       }
      }
     },
     "localname": "EarningsPerShareDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r128"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r399"
     ],
     "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 Continuing Operations",
        "verboseLabel": "Effective tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r399",
      "r418"
     ],
     "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",
        "terseLabel": "Current federal tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense": {
     "auth_ref": [
      "r381"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax benefit for recognition of expense of award under share-based payment arrangement.",
        "label": "Employee Service Share Based Compensation Tax Benefit From Compensation Expense",
        "verboseLabel": "Related tax benefits"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfPreTaxExpenseAssociatedWithAllOutstandingNonVestedRsasRsusPerformanceBasedRestrictedStockUnitsAndRelatedTaxBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r88",
      "r89",
      "r90",
      "r95",
      "r104",
      "r106",
      "r129",
      "r215",
      "r262",
      "r263",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r503",
      "r637",
      "r638",
      "r639"
     ],
     "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"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r491"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate Of Fair Value Fair Value Disclosure [Member]",
        "terseLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r478",
      "r479",
      "r480",
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r478",
      "r479",
      "r481"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3).",
        "label": "Fair Value Assets Measured On Nonrecurring Basis [Text Block]",
        "terseLabel": "Schedule of Carrying Value of Assets Measured at Fair Value on a Non-Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r484"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation By Asset Class [Domain]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "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 Balance Sheet Grouping Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value Balance Sheet Grouping Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r478",
      "r487"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Fair Value By Asset Class [Axis]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r478",
      "r492",
      "r493"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value By Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value By Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r478",
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value By Balance Sheet Grouping [Text Block]",
        "terseLabel": "Summary of Carrying Values and Estimated Fair Values of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r348",
      "r479",
      "r534",
      "r535",
      "r536"
     ],
     "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 By Fair Value Hierarchy Level [Axis]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r478",
      "r488"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Fair Value By Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r478",
      "r479",
      "r482",
      "r483",
      "r489"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Fair Value By Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value.",
        "label": "Fair Value Disclosure Item Amounts [Domain]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The face amount of financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Fair Value Disclosure Offbalance Sheet Risks Face Amount Liability",
        "terseLabel": "Financial instruments with off-balance-sheet risk"
       }
      }
     },
     "localname": "FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r486"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r300",
      "r302",
      "r307",
      "r348",
      "r479",
      "r534"
     ],
     "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 Level1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r300",
      "r302",
      "r307",
      "r348",
      "r479",
      "r535"
     ],
     "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 Level2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r348",
      "r479",
      "r536"
     ],
     "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 Level3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Fair Value Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r348",
      "r534",
      "r535",
      "r536"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Measurements Fair Value Hierarchy [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r478",
      "r479",
      "r482",
      "r483",
      "r485",
      "r489"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Infrequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, not frequently measured at fair value.",
        "label": "Fair Value Measurements Nonrecurring [Member]",
        "terseLabel": "Non-recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r486",
      "r489"
     ],
     "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 Measurements Recurring [Member]",
        "terseLabel": "Recurring Basis"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOfAssetsAcquired": {
     "auth_ref": [
      "r79",
      "r80",
      "r81"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of assets acquired in noncash investing or financing activities.",
        "label": "Fair Value Of Assets Acquired",
        "terseLabel": "Fair value of assets acquired, net of cash acquired"
       }
      }
     },
     "localname": "FairValueOfAssetsAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOffBalanceSheetRisksDisclosureInformationLineItems": {
     "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 Off Balance Sheet Risks Disclosure Information [Line Items]",
        "terseLabel": "Fair Value Off Balance Sheet Risks Disclosure Information [Line Items]"
       }
      }
     },
     "localname": "FairValueOffBalanceSheetRisksDisclosureInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "auth_ref": [
      "r599"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10110.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance.",
        "label": "Federal Deposit Insurance Corporation Premium Expense",
        "terseLabel": "FDIC insurance"
       }
      }
     },
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure": {
     "auth_ref": [
      "r582"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of borrowing from Federal Home Loan Bank (FHLBank).",
        "label": "Federal Home Loan Bank Borrowings Fair Value Disclosure",
        "terseLabel": "Borrowings"
       }
      }
     },
     "localname": "FederalHomeLoanBankBorrowingsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankStock": {
     "auth_ref": [
      "r611"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10200.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Federal Home Loan Bank (FHLB) stock represents an equity interest in a FHLB. It does not have a readily determinable fair value because its ownership is restricted and it lacks a market (liquidity).",
        "label": "Federal Home Loan Bank Stock",
        "terseLabel": "Federal Home Loan Bank of Boston Stock, at cost",
        "verboseLabel": "FHLB Boston stock"
       }
      }
     },
     "localname": "FederalHomeLoanBankStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r195",
      "r199",
      "r223",
      "r229",
      "r230",
      "r233",
      "r234",
      "r247",
      "r249",
      "r250",
      "r251",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r545",
      "r546",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "auth_ref": [
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of performance or non-performance status of financial instruments.",
        "label": "Financial Instrument Performance Status [Axis]",
        "terseLabel": "Financial Instrument Performance Status"
       }
      }
     },
     "localname": "FinancialInstrumentPerformanceStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentPerformanceStatusDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category of performance or non-performance status of financial instruments, including but not limited to, financing receivables, loans, debt, and investments.",
        "label": "Financial Instrument Performance Status [Domain]",
        "terseLabel": "Financial Instrument Performance Status"
       }
      }
     },
     "localname": "FinancialInstrumentPerformanceStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis": {
     "auth_ref": [
      "r434",
      "r648"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by financial support arrangement provided to a nonconsolidated legal entity that is required to comply with or operate in accordance with requirements that are similar to those included in Rule 2a-7 of the Investment Company Act of 1940 for registered money market funds.",
        "label": "Financial Support To Nonconsolidated Legal Entity [Axis]",
        "terseLabel": "Financial Support to Nonconsolidated Legal Entity"
       }
      }
     },
     "localname": "FinancialSupportToNonconsolidatedLegalEntityAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain": {
     "auth_ref": [
      "r434",
      "r648"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial support arrangement provided to a nonconsolidated legal entity that is required to comply with or operate in accordance with requirements that are similar to those included in Rule 2a-7 of the Investment Company Act of 1940 for registered money market funds.",
        "label": "Financial Support To Nonconsolidated Legal Entity [Domain]",
        "terseLabel": "Financial Support to Nonconsolidated Legal Entity"
       }
      }
     },
     "localname": "FinancialSupportToNonconsolidatedLegalEntityDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "auth_ref": [
      "r158",
      "r220",
      "r224",
      "r228",
      "r580"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable Allowance For Credit Losses",
        "periodEndLabel": "Allowance for credit losses-loan portfolio, Ending Balance",
        "periodStartLabel": "Allowance for credit losses-loan portfolio, Beginning Balance",
        "terseLabel": "Allowance for credit losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems": {
     "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": "Financing Receivable Allowance For Credit Losses [Line Items]",
        "terseLabel": "Financing Receivable Allowance For Credit Losses [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "auth_ref": [
      "r161",
      "r227",
      "r242"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in allowance for credit loss on financing receivable from recovery.",
        "label": "Financing Receivable Allowance For Credit Losses Recovery",
        "terseLabel": "Recoveries"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "auth_ref": [
      "r160",
      "r226",
      "r242"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of writeoff of financing receivable, charged against allowance for credit loss.",
        "label": "Financing Receivable Allowance For Credit Losses Write Offs",
        "negatedLabel": "Charge-offs"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableChangeInMethodCreditLossExpenseReversal": {
     "auth_ref": [
      "r221"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of credit loss expense (reversal of expense) for financing receivable from change in methodology.",
        "label": "Financing Receivable Change In Method Credit Loss Expense Reversal",
        "terseLabel": "Adoption of ASC 326"
       }
      }
     },
     "localname": "FinancingReceivableChangeInMethodCreditLossExpenseReversal",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics.",
        "label": "Financing Receivable Credit Quality Indicators Table [Text Block]",
        "terseLabel": "Loans Receivable Disaggregated by Credit Quality Indicator"
       }
      }
     },
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableModificationsLineItems": {
     "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": "Financing Receivable Modifications [Line Items]",
        "terseLabel": "Financing Receivable Modifications [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableModificationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableModificationsNumberOfContracts2": {
     "auth_ref": [
      "r167"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings.",
        "label": "Financing Receivable Modifications Number Of Contracts2",
        "terseLabel": "Number of loans modified during the period"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContracts2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "auth_ref": [
      "r167",
      "r181"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": 10030.0,
       "parentTag": "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable modified as troubled debt restructuring.",
        "label": "Financing Receivable Modifications Recorded Investment",
        "terseLabel": "Troubled debt restructurings",
        "verboseLabel": "Troubled debt restructuring carrying value"
       }
      }
     },
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of financing receivable contracts modified as troubled debt restructuring within previous 12 months, with subsequent payment default.",
        "label": "Financing Receivable Modifications Subsequent Default Number Of Contracts1",
        "terseLabel": "Number of TDRs defaulted during the period"
       }
      }
     },
     "localname": "FinancingReceivableModificationsSubsequentDefaultNumberOfContracts1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10060.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated more than five years prior to current fiscal year.",
        "label": "Financing Receivable Originated Five Or More Years Before Latest Fiscal Year",
        "terseLabel": "Prior"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10050.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated four years prior to current fiscal year.",
        "label": "Financing Receivable Originated Four Years Before Latest Fiscal Year",
        "terseLabel": "2017"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10010.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated in current fiscal year.",
        "label": "Financing Receivable Originated In Current Fiscal Year",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10020.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated in fiscal year prior to current fiscal year.",
        "label": "Financing Receivable Originated In Fiscal Year Before Latest Fiscal Year",
        "terseLabel": "2020"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10040.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated three years prior to current fiscal year.",
        "label": "Financing Receivable Originated Three Years Before Latest Fiscal Year",
        "terseLabel": "2018"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10030.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable originated two years prior to current fiscal year.",
        "label": "Financing Receivable Originated Two Years Before Latest Fiscal Year",
        "terseLabel": "2019"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "auth_ref": [
      "r223",
      "r229",
      "r236"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "terseLabel": "Financing Receivable Portfolio Segment"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "terseLabel": "Financing Receivable Portfolio Segment"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "auth_ref": [
      "r171",
      "r232",
      "r243"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": 10020.0,
       "parentTag": "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable 90 days or more past due and still accruing.",
        "label": "Financing Receivable Recorded Investment90 Days Past Due And Still Accruing",
        "terseLabel": "Loans past due >90 days, but still accruing",
        "verboseLabel": "Amortized Cost 90+ Days Past Due and Accruing"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "auth_ref": [
      "r166",
      "r172",
      "r173",
      "r230",
      "r233",
      "r234",
      "r237",
      "r238",
      "r242",
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of financing receivable determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Financing Receivable Recorded Investment By Class Of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Financing Receivable Recorded Investment Class Of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentCurrent": {
     "auth_ref": [
      "r173",
      "r230",
      "r243"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable not past due.",
        "label": "Financing Receivable Recorded Investment Current",
        "terseLabel": "Current Loans"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentLineItems": {
     "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": "Financing Receivable Recorded Investment [Line Items]",
        "terseLabel": "Financing Receivable Recorded Investment [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "auth_ref": [
      "r170",
      "r231"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": 10010.0,
       "parentTag": "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable on nonaccrual status.",
        "label": "Financing Receivable Recorded Investment Nonaccrual Status",
        "terseLabel": "Nonaccrual loans"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentPastDue": {
     "auth_ref": [
      "r173",
      "r230",
      "r243"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable past due.",
        "label": "Financing Receivable Recorded Investment Past Due",
        "terseLabel": "Total Principal Balance/Past Due"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems": {
     "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": "Financing Receivable Recorded Investment Past Due [Line Items]",
        "terseLabel": "Financing Receivable Recorded Investment Past Due [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRevolving": {
     "auth_ref": [
      "r235",
      "r242"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 10070.0,
       "parentTag": "catc_LoansAndLeasesReceivableAtAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable that can be withdrawn, repaid and redrawn.",
        "label": "Financing Receivable Revolving",
        "terseLabel": "Revolving loans amortized cost basis"
       }
      }
     },
     "localname": "FinancingReceivableRevolving",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableSignificantPurchases": {
     "auth_ref": [
      "r162",
      "r222"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase from purchase of financing receivable.",
        "label": "Financing Receivable Significant Purchases",
        "terseLabel": "Provision of acquired loans"
       }
      }
     },
     "localname": "FinancingReceivableSignificantPurchases",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due.",
        "label": "Financing Receivables30 To59 Days Past Due [Member]",
        "terseLabel": "30-59 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due.",
        "label": "Financing Receivables60 To89 Days Past Due [Member]",
        "terseLabel": "60-89 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financing Receivables Equal To Greater Than90 Days Past Due [Member]",
        "terseLabel": "90 Days or Greater"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r230",
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by time period financial asset is past due.",
        "label": "Financing Receivables Period Past Due [Axis]",
        "terseLabel": "Financial Asset, Period Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due. Element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater Than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less Than [high end numeric value] [date measure] Past Due [Member] formats.",
        "label": "Financing Receivables Period Past Due [Domain]",
        "terseLabel": "Financial Asset, Period Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesTextBlock": {
     "auth_ref": [
      "r176",
      "r179"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for financing receivable.",
        "label": "Financing Receivables [Text Block]",
        "terseLabel": "Loans and the Allowance for Credit Losses"
       }
      }
     },
     "localname": "FinancingReceivablesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLosses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FixedRateResidentialMortgageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan to purchase or refinance residential real estate such as a home, in which the real estate itself serves as collateral for the loan and in which the interest rate and the amount of each payment remain constant throughout the life of the loan.",
        "label": "Fixed Rate Residential Mortgage [Member]",
        "terseLabel": "Mortgages - Fixed Rate"
       }
      }
     },
     "localname": "FixedRateResidentialMortgageMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnInvestmentsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of realized and unrealized gain (loss) on investment in security.",
        "label": "Gain Loss On Investments [Text Block]",
        "terseLabel": "Summary of Gains from Sale of Investment Securities"
       }
      }
     },
     "localname": "GainLossOnInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r75",
      "r596",
      "r629"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10190.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes.",
        "label": "Gain Loss On Sales Of Loans Net",
        "terseLabel": "Gain on loans sold"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r252",
      "r253",
      "r575"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10260.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",
        "terseLabel": "Goodwill"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r451",
      "r468"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r182",
      "r191",
      "r579"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10320.0,
       "parentTag": "us-gaap_MarketableSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held To Maturity Securities",
        "terseLabel": "Held to maturity, at amortized cost (fair value $499,885 and $260,139, respectively)",
        "totalLabel": "Held to maturity securities, Amortized Cost",
        "verboseLabel": "Total held to maturity securities"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "auth_ref": [
      "r193",
      "r197"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10070.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held To Maturity Securities Accumulated Unrecognized Holding Gain",
        "terseLabel": "Held to maturity securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "auth_ref": [
      "r194",
      "r198"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10080.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held To Maturity Securities Accumulated Unrecognized Holding Loss",
        "negatedLabel": "Held to maturity securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r202",
      "r203"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10060.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity), in continuous loss position for 12 months or longer.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position12 Months Or Longer Accumulated Loss",
        "negatedLabel": "Held to maturity securities, Unrealized Losses, 12 months or longer"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r202"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "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 amortized cost (held-to-maturity), in unrealized loss position.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position Accumulated Loss",
        "negatedTotalLabel": "Held to maturity securities, Unrealized Losses"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [
      "r201"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), in unrealized loss position.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position Fair Value",
        "totalLabel": "Held to maturity securities, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r202",
      "r203"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity), in continuous loss position for less than 12 months.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position Less Than12 Months Accumulated Loss",
        "negatedLabel": "Held to maturity securities, Unrealized Losses, Less than 12 months"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10070.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), in continuous unrealized loss position for less than 12 months.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position Less Than Twelve Months Fair Value",
        "terseLabel": "Held to maturity securities, Fair Value, Less than 12 months"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 10080.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), in continuous unrealized loss position for 12 months or longer.",
        "label": "Held To Maturity Securities Continuous Unrealized Loss Position Twelve Months Or Longer Fair Value",
        "terseLabel": "Held to maturity securities, Fair Value, 12 months or longer"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10090.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Held To Maturity Securities Debt Maturities Next Rolling Twelve Months Fair Value",
        "terseLabel": "Held to maturity securities, Within One Year, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingAfterTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10120.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after tenth rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Held To Maturity Securities Debt Maturities Rolling After Ten Years Fair Value",
        "terseLabel": "Held to maturity securities, After Ten Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10110.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in sixth through tenth rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Held To Maturity Securities Debt Maturities Rolling Year Six Through Ten Fair Value",
        "terseLabel": "Held to maturity securities, After Five, But Within Ten Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10100.0,
       "parentTag": "us-gaap_HeldToMaturitySecuritiesFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in second through fifth rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Held To Maturity Securities Debt Maturities Rolling Year Two Through Five Fair Value",
        "terseLabel": "Held to maturity securities, After One, But Within Five Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r192",
      "r196",
      "r579"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10090.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Held To Maturity Securities Fair Value",
        "positiveTerseLabel": "Held to maturity securities, Fair Value",
        "terseLabel": "Held-to-maturity securities, fair value",
        "totalLabel": "Held to maturity securities, Fair Value",
        "verboseLabel": "Securities held to maturity"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITEDParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10130.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in next rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Heldtomaturity Securities Debt Maturities Next Rolling Twelve Months Amortized Cost",
        "terseLabel": "Held to maturity securities, Within One Year, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingAfterTenYearsAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10160.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing after rolling tenth fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Heldtomaturity Securities Debt Maturities Rolling After Ten Years Amortized Cost",
        "terseLabel": "Held to maturity securities, After Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10150.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in sixth through tenth rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Heldtomaturity Securities Debt Maturities Rolling Year Six Through Ten Amortized Cost",
        "terseLabel": "Held to maturity securities, After Five, But Within Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 10140.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity), with single maturity date and allocated without single maturity date, maturing in second through fifth rolling fiscal year following latest fiscal year. For interim and annual periods when interim period is reported on rolling approach, from latest statement of financial position date.",
        "label": "Heldtomaturity Securities Debt Maturities Rolling Year Two Through Five Amortized Cost",
        "terseLabel": "Held to maturity securities, After One, But Within Five Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HomeEquityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revolving, open-end loan extended under a line of credit and secured by the borrower's residential property.",
        "label": "Home Equity [Member]",
        "terseLabel": "Home Equity - Lines of Credit"
       }
      }
     },
     "localname": "HomeEquityMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r49",
      "r142",
      "r144",
      "r147",
      "r150",
      "r152",
      "r573",
      "r587",
      "r606",
      "r627"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10010.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income Loss From Continuing Operations Before Income Taxes Extraordinary Items Noncontrolling Interest",
        "totalLabel": "Income (loss) before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Interest Income"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "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"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r400",
      "r401",
      "r403",
      "r415",
      "r419",
      "r423",
      "r424",
      "r425"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r85",
      "r105",
      "r106",
      "r141",
      "r398",
      "r416",
      "r421",
      "r628"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10020.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",
        "negatedLabel": "Tax expense",
        "terseLabel": "Income tax expense (benefit)",
        "totalLabel": "Total income tax expense (benefit)",
        "verboseLabel": "Income tax benefit"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r72",
      "r78"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income Taxes Paid",
        "terseLabel": "Income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10250.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments.",
        "label": "Increase Decrease In Accrued Interest Receivable Net",
        "negatedLabel": "Change in accrued interest receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeferredIncomeTaxes": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10260.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": "Deferred income tax (benefit)/expense"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeferredIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInLoansHeldForSale": {
     "auth_ref": [
      "r69",
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10290.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the value of loans or securitized loans that are held with the intention to sell in the near future.",
        "label": "Increase Decrease In Loans Held For Sale",
        "negatedLabel": "Change in loans held for sale"
       }
      }
     },
     "localname": "IncreaseDecreaseInLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10270.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase Decrease In Other Operating Assets",
        "negatedLabel": "Change in other assets, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10280.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other.",
        "label": "Increase Decrease In Other Operating Liabilities",
        "terseLabel": "Change in other liabilities, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInTimeDeposits": {
     "auth_ref": [
      "r605"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10050.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net cash inflow (outflow) of time deposits.",
        "label": "Increase Decrease In Time Deposits",
        "terseLabel": "Change in certificates of deposit"
       }
      }
     },
     "localname": "IncreaseDecreaseInTimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r254",
      "r255"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10270.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges.",
        "label": "Intangible Assets Net Excluding Goodwill",
        "terseLabel": "Merger-related intangibles, net"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r592"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10240.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein.",
        "label": "Interest And Dividend Income Operating",
        "totalLabel": "Total interest and dividend income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest And Dividend Income Operating [Abstract]",
        "terseLabel": "Interest and dividend income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "auth_ref": [
      "r581"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10120.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities.",
        "label": "Interest Bearing Deposit Liabilities",
        "terseLabel": "Interest-bearing checking"
       }
      }
     },
     "localname": "InterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r48",
      "r140",
      "r504",
      "r505",
      "r604"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10250.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "totalLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense [Abstract]",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r603"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10270.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all borrowings.",
        "label": "Interest Expense Borrowings",
        "terseLabel": "Interest on borrowed funds"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseDeposits": {
     "auth_ref": [
      "r602"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10260.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all deposits.",
        "label": "Interest Expense Deposits",
        "terseLabel": "Interest on deposits"
       }
      }
     },
     "localname": "InterestExpenseDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "auth_ref": [
      "r601"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10340.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income derived from funds deposited with both domestic and foreign financial institutions including funds in money market and other accounts.",
        "label": "Interest Income Deposits With Financial Institutions",
        "terseLabel": "Interest on overnight investments"
       }
      }
     },
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "auth_ref": [
      "r595"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10030.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income or expense, including any amortization and accretion (as applicable) of discounts and premiums, including consideration of the provisions for loan, lease, credit, and other related losses.",
        "label": "Interest Income Expense After Provision For Loan Loss",
        "totalLabel": "Net interest and dividend income after provision for (release of) credit losses"
       }
      }
     },
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r593"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10220.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income Expense Net",
        "totalLabel": "Net interest and dividend income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption in which reported facts about interest income have been included.",
        "label": "Interest Income [Member]",
        "terseLabel": "Interest Income"
       }
      }
     },
     "localname": "InterestIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "auth_ref": [
      "r600"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10320.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities exempt from state, federal and other income tax.",
        "label": "Interest Income Securities Tax Exempt",
        "terseLabel": "Interest on tax-exempt investment securities"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxable": {
     "auth_ref": [
      "r600"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10310.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities subject to state, federal and other income tax.",
        "label": "Interest Income Securities Taxable",
        "terseLabel": "Interest on taxable investment securities"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r67",
      "r71",
      "r78"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid Net",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet": {
     "auth_ref": [
      "r476"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The estimated net amount of unrealized gains or losses on interest rate cash flow hedges as of the balance sheet date expected to be reclassified to earnings within the next twelve months.",
        "label": "Interest Rate Cash Flow Hedge Gain Loss To Be Reclassified During Next12 Months Net",
        "terseLabel": "Estimated amount will be reclassified out of AOCI in to earnings"
       }
      }
     },
     "localname": "InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateContractMember": {
     "auth_ref": [
      "r300",
      "r465"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument whose primary underlying risk is tied to the right to receive or pay a sum of money at a given interest rate.",
        "label": "Interest Rate Contract [Member]",
        "terseLabel": "Interest Rate Contracts"
       }
      }
     },
     "localname": "InterestRateContractMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAOCIAsResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestRateDerivativeAssetsAtFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of interest rate derivative assets, which includes all such derivative instruments in hedging and nonhedging relationships that are recognized as assets.",
        "label": "Interest Rate Derivative Assets At Fair Value",
        "terseLabel": "Interest rate contracts"
       }
      }
     },
     "localname": "InterestRateDerivativeAssetsAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r465"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest Rate Swaps with Customers"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r18"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10250.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "auth_ref": [
      "r165",
      "r234",
      "r241",
      "r242",
      "r260",
      "r470"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by entity-defined rating.",
        "label": "Internal Credit Assessment [Axis]",
        "terseLabel": "Internal Credit Assessment"
       }
      }
     },
     "localname": "InternalCreditAssessmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity defined credit risk rating.",
        "label": "Internal Credit Assessment [Domain]",
        "terseLabel": "Internal Credit Assessment"
       }
      }
     },
     "localname": "InternalCreditAssessmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r651",
      "r652",
      "r653",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investment Type Categorization [Member]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "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": "Schedule of Amortized Cost and Fair Value of Debt Securities, Aggregated By Earlier of Guaranteed Call Date or Contractual Maturity"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Debt And Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r478"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 10030.0,
       "parentTag": "catc_InvestmentsSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method.",
        "label": "Investments Fair Value Disclosure",
        "terseLabel": "Total, Fair Value"
       }
      }
     },
     "localname": "InvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r205",
      "r574",
      "r610",
      "r666"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for  investments in certain debt and equity securities.",
        "label": "Investments In Debt And Marketable Equity Securities And Certain Trading Assets Disclosure [Text Block]",
        "terseLabel": "Investment Securities"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LaborAndRelatedExpense": {
     "auth_ref": [
      "r56"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10060.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit.",
        "label": "Labor And Related Expense",
        "terseLabel": "Salaries and employee benefits"
       }
      }
     },
     "localname": "LaborAndRelatedExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r521",
      "r523"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease Cost",
        "totalLabel": "Total Operating Lease Cost"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseExistenceOfOptionToExtend": {
     "auth_ref": [
      "r514"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether lessee has option to extend operating lease.",
        "label": "Lessee Operating Lease Existence Of Option To Extend",
        "terseLabel": "Existence of option to expire"
       }
      }
     },
     "localname": "LesseeOperatingLeaseExistenceOfOptionToExtend",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "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 Payments Due",
        "totalLabel": "Total minimum lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10020.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 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": "Lessee Operating Lease Liability Payments Due Next Twelve Months",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10050.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 Payments Due Year Four",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10040.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 Payments Due Year Three",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10030.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 Payments Due Year Two",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 10010.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 Payments Remainder Of Fiscal Year",
        "terseLabel": "Remainder of 2021"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r522"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "order": 10010.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee Operating Lease Liability Undiscounted Excess Amount",
        "negatedLabel": "Less: interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r514"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of lessee's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee Operating Lease Renewal Term",
        "terseLabel": "Renewal option period for operating leases"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r524"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r15",
      "r84",
      "r146",
      "r207",
      "r438",
      "r442",
      "r443",
      "r494"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10010.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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r13",
      "r84",
      "r207",
      "r494",
      "r578",
      "r621"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "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 Stockholders Equity",
        "totalLabel": "Total liabilities and shareholders\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAssumed1": {
     "auth_ref": [
      "r79",
      "r80",
      "r81"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of liabilities assumed in noncash investing or financing activities.",
        "label": "Liabilities Assumed1",
        "terseLabel": "Fair value of liabilities assumed"
       }
      }
     },
     "localname": "LiabilitiesAssumed1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities Fair Value Disclosure [Abstract]",
        "terseLabel": "Financial liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanOriginationCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments to borrowers or third party investors for the origination of a loan.",
        "label": "Loan Origination Commitments [Member]",
        "terseLabel": "Origination of New Loans"
       }
      }
     },
     "localname": "LoanOriginationCommitmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by concessions made to the terms of loan contracts.",
        "label": "Loan Restructuring Modification [Axis]",
        "terseLabel": "Loan Restructuring Modification"
       }
      }
     },
     "localname": "LoanRestructuringModificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Concessions made to the terms of loan contracts, including but not limited to, interest rate reductions, maturity extensions, principal forgiveness, and payment deferral.",
        "label": "Loan Restructuring Modification [Domain]",
        "terseLabel": "Loan Restructuring Modification"
       }
      }
     },
     "localname": "LoanRestructuringModificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansAndLeasesReceivableAllowance": {
     "auth_ref": [
      "r158",
      "r163",
      "r175",
      "r180"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10300.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance to cover probable credit losses on loans and leases. Includes carryover of or adjustments to the allowance for loan losses in connection with business combinations. Excludes allowance for loans and leases covered under loss sharing agreements.",
        "label": "Loans And Leases Receivable Allowance",
        "negatedLabel": "Less: allowance for credit losses on loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableBeforeFeesGross": {
     "auth_ref": [
      "r157"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance and fees, of loans and leases receivable. Excludes loans and leases covered under loss sharing agreements.",
        "label": "Loans And Leases Receivable Before Fees Gross",
        "terseLabel": "Loans outstanding by category gross"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableBeforeFeesGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDeferredIncome": {
     "auth_ref": [
      "r169",
      "r178",
      "r508",
      "r585"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred interest and fee income, unamortized costs incurred to originate loans and leases, unamortized loan commitments and loan syndication fees, and premiums over or discounts from face amounts of acquired loans. Excludes amounts for loans and leases covered under loss sharing agreements.",
        "label": "Loans And Leases Receivable Deferred Income",
        "terseLabel": "Loans in deferral"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDisclosureLineItems": {
     "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": "Loans And Leases Receivable Disclosure [Line Items]",
        "terseLabel": "Loans And Leases Receivable Disclosure [Line Items]"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDisclosureLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDisclosureTable": {
     "auth_ref": [
      "r157"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about loans and leases receivable.",
        "label": "Loans And Leases Receivable Disclosure [Table]",
        "terseLabel": "Loans And Leases Receivable Disclosure [Table]"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDisclosureTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount": {
     "auth_ref": [
      "r157"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10290.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allowance of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Includes deferred interest and fees, undisbursed portion of loan balance, unamortized costs and premiums and discounts from face amounts. Excludes loans and leases covered under loss sharing agreements.",
        "label": "Loans And Leases Receivable Gross Carrying Amount",
        "totalLabel": "Total loans",
        "verboseLabel": "Total loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableGrossCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmount": {
     "auth_ref": [
      "r157",
      "r585"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10190.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allowance and deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements and loans held for sale.",
        "label": "Loans And Leases Receivable Net Reported Amount",
        "totalLabel": "Net loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmountAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans And Leases Receivable Net Reported Amount [Abstract]",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmountAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables.",
        "label": "Loans Held For Sale Fair Value Disclosure",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "auth_ref": [
      "r176"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of loan receivable, including, but not limited to, mortgage loans held for investment, finance receivables held for investment, policy loans on insurance contracts.",
        "label": "Loans Receivable Fair Value Disclosure",
        "terseLabel": "Loans, net"
       }
      }
     },
     "localname": "LoansReceivableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup": {
     "auth_ref": [
      "r157",
      "r669"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10180.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after valuation allowance, of financing receivable held for sale and not part of disposal group. Excludes loan covered under loss sharing agreement and loan classified as investment in debt security.",
        "label": "Loans Receivable Held For Sale Net Not Part Of Disposal Group",
        "terseLabel": "Loans held for sale, at lower of cost or fair value"
       }
      }
     },
     "localname": "LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecurities": {
     "auth_ref": [
      "r584"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10170.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in marketable security.",
        "label": "Marketable Securities",
        "totalLabel": "Total investment securities"
       }
      }
     },
     "localname": "MarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable Securities [Abstract]",
        "terseLabel": "Investment securities"
       }
      }
     },
     "localname": "MarketableSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketingExpense": {
     "auth_ref": [
      "r57"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10100.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenditures for planning and executing the conception, pricing, promotion, and distribution of ideas, goods, and services. Costs of public relations and corporate promotions are typically considered to be marketing costs.",
        "label": "Marketing Expense",
        "terseLabel": "Marketing"
       }
      }
     },
     "localname": "MarketingExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r184",
      "r300",
      "r302",
      "r348",
      "r647"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by mortgage loans.",
        "label": "Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage Backed Securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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 Securities"
       }
      }
     },
     "localname": "MunicipalBondsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10030.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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 financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10020.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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 used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r70",
      "r73",
      "r76"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10010.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r0",
      "r41",
      "r44",
      "r50",
      "r76",
      "r84",
      "r94",
      "r99",
      "r100",
      "r101",
      "r102",
      "r105",
      "r106",
      "r115",
      "r142",
      "r144",
      "r147",
      "r150",
      "r152",
      "r207",
      "r494",
      "r588",
      "r623"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10010.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "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",
        "terseLabel": "Net income (loss)",
        "totalLabel": "Net income (loss)"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r99",
      "r100",
      "r101",
      "r102",
      "r110",
      "r111",
      "r117",
      "r122",
      "r142",
      "r144",
      "r147",
      "r150",
      "r152"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income Loss Available To Common Stockholders Basic",
        "totalLabel": "Net income (loss) applicable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income Loss Available To Common Stockholders Basic [Abstract]",
        "terseLabel": "Numerator:"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r112",
      "r117",
      "r122"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders.",
        "label": "Net Income Loss Available To Common Stockholders Diluted",
        "totalLabel": "Net income (loss) applicable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income Loss Available To Common Stockholders Diluted [Abstract]",
        "terseLabel": "Numerator:"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements And Changes In Accounting Principles [Abstract]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r92",
      "r93",
      "r96",
      "r97",
      "r107",
      "r108",
      "r109",
      "r216",
      "r217",
      "r270",
      "r271",
      "r272",
      "r273",
      "r390",
      "r412",
      "r413",
      "r414",
      "r570",
      "r571",
      "r572",
      "r641",
      "r642",
      "r643",
      "r644",
      "r646"
     ],
     "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": "New Accounting Pronouncements And Changes In Accounting Principles [Text Block]",
        "terseLabel": "Recently Issued Accounting Guidance"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureRecentlyIssuedAccountingGuidance"
     ],
     "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": "Recently Issued Accounting Guidance"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing And Financing Items [Abstract]",
        "terseLabel": "Significant non-cash transactions"
       }
      }
     },
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Nondesignated [Member]",
        "terseLabel": "Derivatives Not Designated as Hedging Instruments"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestExpense": {
     "auth_ref": [
      "r599"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10050.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total aggregate amount of all noninterest expense.",
        "label": "Noninterest Expense",
        "totalLabel": "Total noninterest expense"
       }
      }
     },
     "localname": "NoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Expense [Abstract]",
        "terseLabel": "Noninterest expense"
       }
      }
     },
     "localname": "NoninterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncome": {
     "auth_ref": [
      "r597"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10040.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified.",
        "label": "Noninterest Income",
        "totalLabel": "Total noninterest income"
       }
      }
     },
     "localname": "NoninterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noninterest Income [Abstract]",
        "terseLabel": "Noninterest income"
       }
      }
     },
     "localname": "NoninterestIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncomeOther": {
     "auth_ref": [
      "r597"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10210.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of noninterest income derived from certain activities and assets including (for example): (1) venture capital investments; (2) bank owned life insurance; (3) foreign currency transactions; and (4) mortgage servicing rights.",
        "label": "Noninterest Income Other",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "NoninterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonoperatingIncomeExpense": {
     "auth_ref": [
      "r59"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10120.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business).",
        "label": "Nonoperating Income Expense",
        "negatedLabel": "Nonoperating expenses"
       }
      }
     },
     "localname": "NonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category status of financial instruments in which payments are past due in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt, and investments.",
        "label": "Nonperforming Financing Receivable [Member]",
        "terseLabel": "Non-Performing Loans"
       }
      }
     },
     "localname": "NonperformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OccupancyNet": {
     "auth_ref": [
      "r58",
      "r507",
      "r598"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10070.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net occupancy expense that may include items, such as depreciation of facilities and equipment, lease expenses, property taxes and property and casualty insurance expense.",
        "label": "Occupancy Net",
        "terseLabel": "Occupancy and equipment"
       }
      }
     },
     "localname": "OccupancyNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OffsettingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "localname": "OffsettingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r515",
      "r523"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r512"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating lease expense. Excludes sublease income.",
        "label": "Operating Lease Expense",
        "terseLabel": "Total rental expense"
       }
      }
     },
     "localname": "OperatingLeaseExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r511"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "order": 10020.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10090.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.",
        "label": "Operating Lease Liability",
        "terseLabel": "Operating lease liabilities",
        "verboseLabel": "Total lease liability"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r513",
      "r518"
     ],
     "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": "Cash paid for amounts included in the measurement of lease liabilities - operating cash flows for operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r510"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10230.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": "Right-of-use asset operating leases"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r520",
      "r523"
     ],
     "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 - operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r519",
      "r523"
     ],
     "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 Term1",
        "terseLabel": "Weighted average lease term - operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Leases Future Minimum Payments Due [Abstract]"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization Consolidation And Presentation Of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r6",
      "r576",
      "r617"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10280.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of other assets.",
        "label": "Other Assets Fair Value Disclosure",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r452",
      "r473"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Available For Sale Securities Adjustment Before Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Available for sale securities, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Available For Sale Securities Adjustment Net Of Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Available for sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Available For Sale Securities Tax [Abstract]",
        "terseLabel": "Available for sale securities, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Defined Benefit Plans Adjustment Before Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Defined benefit retirement plans, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Defined Benefit Plans Adjustment Net Of Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Defined benefit retirement plans"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Defined Benefit Plans Tax [Abstract]",
        "terseLabel": "Defined benefit retirement plans, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Derivatives Qualifying As Hedges Before Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Derivatives Qualifying As Hedges Net Of Tax Period Increase Decrease [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxEffectPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Derivatives Qualifying As Hedges Tax Effect Period Increase Decrease [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxEffectPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax": {
     "auth_ref": [
      "r30",
      "r31"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10010.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10080.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income Loss Available For Sale Securities Adjustment Before Reclassification Adjustments Net Of Tax",
        "terseLabel": "Unrealized holding gains (losses)",
        "verboseLabel": "Unrealized holding gains/(losses), net-of-tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax": {
     "auth_ref": [
      "r30",
      "r31",
      "r34"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10030.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income Loss Available For Sale Securities Adjustment Net Of Tax",
        "totalLabel": "Total unrealized gains (losses) on available for sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeTax": {
     "auth_ref": [
      "r51",
      "r206",
      "r497",
      "r502",
      "r503",
      "r589",
      "r624"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax, after reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income Loss Before Tax",
        "totalLabel": "Total other comprehensive income/(loss), before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax": {
     "auth_ref": [
      "r29",
      "r34"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10040.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss After Reclassification And Tax",
        "totalLabel": "Total unrealized gains (losses) on interest rate swaps"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax": {
     "auth_ref": [
      "r29",
      "r34"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10060.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification After Tax",
        "terseLabel": "Unrealized holding gains (losses)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax": {
     "auth_ref": [
      "r29",
      "r34",
      "r455",
      "r460",
      "r474"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10130.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax and reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification And Tax",
        "terseLabel": "Unrealized holding gains/(losses), before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10080.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossTax",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification Tax",
        "terseLabel": "Unrealized holding gains/(losses), tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax": {
     "auth_ref": [
      "r34",
      "r38"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10040.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10070.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Reclassification After Tax",
        "negatedLabel": "Less: reclassification adjustment for gains realized in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax": {
     "auth_ref": [
      "r34",
      "r38",
      "r461"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10140.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Reclassification Before Tax",
        "negatedLabel": "Reclassification adjustment for gains recognized in net income (loss), before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax": {
     "auth_ref": [
      "r35"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10090.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossTax",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) for reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Reclassification Tax",
        "negatedLabel": "Reclassification adjustment for gains recognized in net income (loss), tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r42",
      "r45",
      "r47",
      "r51",
      "r262",
      "r497",
      "r502",
      "r503",
      "r589",
      "r624"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10020.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income Loss Net Of Tax",
        "terseLabel": "Other comprehensive income (loss)",
        "totalLabel": "Other comprehensive income (loss)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Loss Net Of Tax Portion Attributable To Parent [Abstract]",
        "terseLabel": "Other comprehensive income (loss), net of tax:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax": {
     "auth_ref": [
      "r32",
      "r34",
      "r319",
      "r348"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10150.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, after reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan.",
        "label": "Other Comprehensive Income Loss Pension And Other Postretirement Benefit Plans Adjustment Before Tax",
        "negatedLabel": "Net change in retirement liability, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax": {
     "auth_ref": [
      "r32",
      "r34"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10050.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10050.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan.",
        "label": "Other Comprehensive Income Loss Pension And Other Postretirement Benefit Plans Adjustment Net Of Tax",
        "negatedLabel": "Change in retirement liabilities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax": {
     "auth_ref": [
      "r32",
      "r35",
      "r436"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10100.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossTax",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after reclassification adjustment, of tax (expense) benefit for (increase) decrease in accumulated other comprehensive income of defined benefit plan.",
        "label": "Other Comprehensive Income Loss Pension And Other Postretirement Benefit Plans Tax",
        "negatedLabel": "Net change in retirement liability, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax": {
     "auth_ref": [
      "r34",
      "r38",
      "r39",
      "r204"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10120.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before 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 A O C I For Sale Of Securities Before Tax",
        "negatedLabel": "Reclassification adjustment for gains realized in net income (loss), before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "auth_ref": [
      "r34",
      "r38",
      "r39",
      "r204"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS": {
       "order": 10090.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "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 A O C I For Sale Of Securities Net Of Tax",
        "negatedLabel": "Less: reclassification adjustment for gains realized in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementUNAUDITEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r35",
      "r204"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10070.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossTax",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) 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 A O C I For Sale Of Securities Tax",
        "negatedLabel": "Reclassification adjustment for gains realized in net income (loss), tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossTax": {
     "auth_ref": [
      "r35",
      "r51",
      "r398",
      "r420",
      "r422",
      "r497",
      "r500",
      "r503",
      "r589",
      "r624"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) allocated to other comprehensive income (loss).",
        "label": "Other Comprehensive Income Loss Tax",
        "totalLabel": "Total other comprehensive income/(loss), tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r30",
      "r34",
      "r204"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10110.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax and 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": "Other Comprehensive Income Unrealized Holding Gain Loss On Securities Arising During Period Before Tax",
        "terseLabel": "Unrealized holding gains/(losses), before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r31",
      "r35"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails": {
       "order": 10060.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossTax",
       "weight": 1.0
      }
     },
     "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": "Other Comprehensive Income Unrealized Holding Gain Loss On Securities Arising During Period Tax",
        "terseLabel": "Unrealized holding gains/(losses),tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfOtherComprehensiveIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherContractMember": {
     "auth_ref": [
      "r300",
      "r466"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument whose primary underlying risk is classified as other.",
        "label": "Other Contract [Member]",
        "terseLabel": "Other contracts"
       }
      }
     },
     "localname": "OtherContractMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnConsolidatedIncomeLossStatementDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r583"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10100.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of other liabilities.",
        "label": "Other Liabilities Fair Value Disclosure",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r452",
      "r473"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other liabilities.",
        "label": "Other Liabilities [Member]",
        "terseLabel": "Other Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoninterestExpense": {
     "auth_ref": [
      "r599"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10130.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noninterest expense classified as other.",
        "label": "Other Noninterest Expense",
        "terseLabel": "Other expenses"
       }
      }
     },
     "localname": "OtherNoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PassMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables.",
        "label": "Pass [Member]",
        "terseLabel": "1-6 (Pass)"
       }
      }
     },
     "localname": "PassMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r172",
      "r173",
      "r230",
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of aging analysis for financing receivable.",
        "label": "Past Due Financing Receivables Table [Text Block]",
        "terseLabel": "Schedule of Loans Receivable Disaggregated by Past Due Status"
       }
      }
     },
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PaymentsForProceedsFromFederalHomeLoanBankStock": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10150.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow (inflow) from acquisition (sale) of Federal Home Loan Bank (FHLBank) stock.",
        "label": "Payments For Proceeds From Federal Home Loan Bank Stock",
        "negatedLabel": "Redemption of FHLB of Boston stock"
       }
      }
     },
     "localname": "PaymentsForProceedsFromFederalHomeLoanBankStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10070.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 Dividends Common Stock",
        "negatedLabel": "Cash dividends paid on common stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r61",
      "r64",
      "r183"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10110.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments To Acquire Available For Sale Securities Debt",
        "negatedLabel": "Purchase of securities available for sale"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "auth_ref": [
      "r64",
      "r183"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10140.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow through purchase of long-term held-to-maturity securities.",
        "label": "Payments To Acquire Held To Maturity Securities",
        "negatedLabel": "Purchase of securities held to maturity"
       }
      }
     },
     "localname": "PaymentsToAcquireHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireLoansHeldForInvestment": {
     "auth_ref": [
      "r64"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10080.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with purchasing loans held for investment purposes during the period.",
        "label": "Payments To Acquire Loans Held For Investment",
        "negatedLabel": "Origination of loans"
       }
      }
     },
     "localname": "PaymentsToAcquireLoansHeldForInvestment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r65"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10160.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": "Purchase of banking premises and equipment"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r299",
      "r301",
      "r307",
      "r325",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r348",
      "r350",
      "r351",
      "r352",
      "r372"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for retirement benefits.",
        "label": "Pension And Other Postretirement Benefits Disclosure [Text Block]",
        "terseLabel": "Pension and Retirement Plans"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "auth_ref": [
      "r274",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r352",
      "r353",
      "r367",
      "r368",
      "r369",
      "r370"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits.",
        "label": "Pension Plans Defined Benefit [Member]",
        "terseLabel": "Pension Plan"
       }
      }
     },
     "localname": "PensionPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PerformingFinancingReceivableMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category status of financial instruments in which payments are received or paid on a timely basis in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt instruments, and investments.",
        "label": "Performing Financing Receivable [Member]",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "PerformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r376",
      "r382"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "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"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r490"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion At Fair Value Fair Value Disclosure [Member]",
        "terseLabel": "Fair Value Disclosure Item Amounts [Default]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromCollectionOfLoansReceivable": {
     "auth_ref": [
      "r62"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10090.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the collection, including prepayments, of loans receivable issued for financing of goods and services.",
        "label": "Proceeds From Collection Of Loans Receivable",
        "terseLabel": "Proceeds from principal payments of loans"
       }
      }
     },
     "localname": "ProceedsFromCollectionOfLoansReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r61",
      "r62",
      "r183"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10100.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds From Maturities Prepayments And Calls Of Available For Sale Securities",
        "terseLabel": "Proceeds from calls/maturities of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r62",
      "r183"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10130.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the maturity, prepayments and calls (requests for early payments) of debt securities designated as held-to-maturity.",
        "label": "Proceeds From Maturities Prepayments And Calls Of Held To Maturity Securities",
        "terseLabel": "Proceeds from calls/maturities of securities held to maturity"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfDebt": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10060.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash inflow or outflow in aggregate debt due to repayments and proceeds from additional borrowings.",
        "label": "Proceeds From Repayments Of Debt",
        "terseLabel": "Change in borrowings"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails": {
       "order": 10030.0,
       "parentTag": "catc_AvailableForSaleSecuritiesAmortizedCostOfSecuritiesSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities  (held-to-maturity or available-for-sale) during the period.",
        "label": "Proceeds From Sale And Maturity Of Marketable Securities",
        "verboseLabel": "Net proceeds from securities sold"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfGainsFromSaleOfInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r61",
      "r62",
      "r183"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10120.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds From Sale Of Available For Sale Securities Debt",
        "terseLabel": "Proceeds from sales of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfessionalFees": {
     "auth_ref": [
      "r649",
      "r650"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10090.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer.",
        "label": "Professional Fees",
        "terseLabel": "Professional services"
       }
      }
     },
     "localname": "ProfessionalFees",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r0",
      "r41",
      "r44",
      "r68",
      "r84",
      "r94",
      "r105",
      "r106",
      "r142",
      "r144",
      "r147",
      "r150",
      "r152",
      "r207",
      "r436",
      "r439",
      "r440",
      "r444",
      "r445",
      "r494",
      "r606"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10180.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Profit Loss",
        "terseLabel": "Net income"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r4",
      "r5",
      "r256",
      "r622"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10220.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": "Banking premises and equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "auth_ref": [
      "r74",
      "r159",
      "r594"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10190.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to estimated loss from loan and lease transactions.",
        "label": "Provision For Loan And Lease Losses",
        "terseLabel": "Provision for (release of) credit losses"
       }
      }
     },
     "localname": "ProvisionForLoanAndLeaseLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanLossesExpensed": {
     "auth_ref": [
      "r225",
      "r586"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of credit loss expense (reversal of expense) for financing receivable.",
        "label": "Provision For Loan Losses Expensed",
        "terseLabel": "Provision for (Release of ) credit losses"
       }
      }
     },
     "localname": "ProvisionForLoanLossesExpensed",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForOtherCreditLosses": {
     "auth_ref": [
      "r74",
      "r586"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10230.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to credit loss from transactions other than loan and lease transactions.",
        "label": "Provision For Other Credit Losses",
        "terseLabel": "Provision for (release of) credit losses"
       }
      }
     },
     "localname": "ProvisionForOtherCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_QualifiedPlanMember": {
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r334",
      "r335",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan with tax-exempt status designed and operated in accordance with applicable tax provision of designated taxing authority. Taxing authority includes, but is not limited to, U.S. Internal Revenue Service (IRS). Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Qualified Plan [Member]",
        "terseLabel": "Qualified Defined Benefit Pension Plan"
       }
      }
     },
     "localname": "QualifiedPlanMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems": {
     "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": "Reclassification Adjustment Out Of Accumulated Other Comprehensive Income [Line Items]",
        "terseLabel": "Reclassification Adjustment Out Of Accumulated Other Comprehensive Income [Line Items]"
       }
      }
     },
     "localname": "ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification Out Of Accumulated Other Comprehensive Income [Axis]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification Out Of Accumulated Other Comprehensive Income [Domain]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification Out Of Accumulated Other Comprehensive Income [Member]",
        "terseLabel": "Reclassifications out of Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about items reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification Out Of Accumulated Other Comprehensive Income [Table]",
        "terseLabel": "Reclassification Out Of Accumulated Other Comprehensive Income [Table]"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeAOCIDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information about items reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification Out Of Accumulated Other Comprehensive Income Table [Text Block]",
        "terseLabel": "Summary of Reclassifications out of Accumulated Other Comprehensive Income (\"AOCI\")"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables.",
        "label": "Residential Portfolio Segment [Member]",
        "terseLabel": "Residential Mortgage"
       }
      }
     },
     "localname": "ResidentialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of cash and cash equivalent. Cash is 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.",
        "label": "Restricted Cash And Cash Equivalents Cash And Cash Equivalents [Member]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r123"
     ],
     "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": "RSAs"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "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 R S U [Member]",
        "terseLabel": "RSUs"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r9",
      "r263",
      "r391",
      "r620",
      "r641",
      "r646"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10050.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.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r88",
      "r89",
      "r90",
      "r95",
      "r104",
      "r106",
      "r215",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411",
      "r637",
      "r639"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanNameAxis": {
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r334",
      "r335",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r371"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of plan designed to provide retirement benefits. Includes, but is not limited to, legal name of defined benefit and defined contribution plans.",
        "label": "Retirement Plan Name [Axis]",
        "terseLabel": "Retirement Plan Name"
       }
      }
     },
     "localname": "RetirementPlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanNameDomain": {
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r334",
      "r335",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r371"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of plan designed to provide retirement benefits. Includes, but is not limited to, legal name of defined benefit and defined contribution plans.",
        "label": "Retirement Plan Name [Domain]",
        "terseLabel": "Retirement Plan Name"
       }
      }
     },
     "localname": "RetirementPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTaxStatusAxis": {
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r334",
      "r335",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by tax status of plan designed to provide retirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Retirement Plan Tax Status [Axis]",
        "terseLabel": "Retirement Plan Tax Status"
       }
      }
     },
     "localname": "RetirementPlanTaxStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTaxStatusDomain": {
     "auth_ref": [
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r322",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r334",
      "r335",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax status of plan designed to provide retirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Retirement Plan Tax Status [Domain]",
        "terseLabel": "Retirement Plan Tax Status"
       }
      }
     },
     "localname": "RetirementPlanTaxStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "auth_ref": [
      "r274",
      "r275",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r367",
      "r368",
      "r369",
      "r370"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Axis]",
        "terseLabel": "Retirement Plan Type"
       }
      }
     },
     "localname": "RetirementPlanTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "auth_ref": [
      "r274",
      "r275",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r297",
      "r298",
      "r299",
      "r300",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r321",
      "r323",
      "r324",
      "r326",
      "r329",
      "r333",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r367",
      "r368",
      "r369",
      "r370"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Domain]",
        "terseLabel": "Retirement Plan Type"
       }
      }
     },
     "localname": "RetirementPlanTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r138",
      "r139",
      "r143",
      "r148",
      "r149",
      "r153",
      "r154",
      "r156",
      "r266",
      "r267",
      "r566"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED": {
       "order": 10140.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "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": "Noninterest income"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the various types of trade accounts and notes receivable and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables.",
        "label": "Schedule Of Accounts Notes Loans And Financing Receivable [Text Block]",
        "terseLabel": "Loans Outstanding by Category"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r426",
      "r427"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities.",
        "label": "Schedule Of Business Acquisitions By Acquisition [Table]",
        "terseLabel": "Schedule Of Business Acquisitions By Acquisition [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r461"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of gain (loss) on derivative and nonderivative instruments designated and qualifying as cash flow hedge recorded in accumulated other comprehensive income (AOCI) and reclassified into earnings.",
        "label": "Schedule Of Cash Flow Hedges Included In Accumulated Other Comprehensive Income Loss Table [Text Block]",
        "terseLabel": "Summary of Changes to AOCI as a Result of Cash Flow Hedge Accounting"
       }
      }
     },
     "localname": "ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock": {
     "auth_ref": [
      "r380"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of cost recognized for award under share-based payment arrangement by plan. Includes, but is not limited to, related tax benefit.",
        "label": "Schedule Of Compensation Cost For Share Based Payment Arrangements Allocation Of Share Based Compensation Costs By Plan Table [Text Block]",
        "terseLabel": "Schedule of Pre-tax Expense Associated with All Outstanding Non-vested RSAs, RSUs, Performance Based Restricted Stock Units and Related Tax Benefits"
       }
      }
     },
     "localname": "ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table disclosing the capital amounts and ratios as of the balance sheet date indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity.",
        "label": "Schedule Of Compliance With Regulatory Capital Requirements Under Banking Regulations [Table]",
        "terseLabel": "Schedule Of Compliance With Regulatory Capital Requirements Under Banking Regulations [Table]"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the capital amounts and ratios as of the balance sheet date, indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity.",
        "label": "Schedule Of Compliance With Regulatory Capital Requirements Under Banking Regulations [Text Block]",
        "terseLabel": "Schedule of Minimum Capital Requirements Considered Well Capitalized by FRB and FDIC"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r407"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Schedule Of Components Of Income Tax Expense Benefit Table [Text Block]",
        "terseLabel": "Components of Income Tax Expense"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r28"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of components of comprehensive income (loss). Includes, but is not limited to, foreign currency translation adjustments, foreign currency transactions  designated as economic hedges of a net investment in foreign entity, gain (loss) and prior service cost (credit) for pension plans and other postretirement benefit plans.",
        "label": "Schedule Of Comprehensive Income Loss Table [Text Block]",
        "terseLabel": "Summary of Other Comprehensive Income"
       }
      }
     },
     "localname": "ScheduleOfComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "auth_ref": [
      "r332",
      "r333",
      "r336",
      "r337",
      "r348"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans.  Also includes schedule for fair value of plan assets by major categories of plan assets 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 or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule Of Defined Benefit Plans Disclosures [Table]",
        "terseLabel": "Schedule Of Defined Benefit Plans Disclosures [Table]"
       }
      }
     },
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r453",
      "r463",
      "r468"
     ],
     "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": "Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block]",
        "terseLabel": "Summary of Derivative Financial Instruments on the Consolidated Income (Loss) Statement"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r459"
     ],
     "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 [Text Block]",
        "terseLabel": "Summary of Fair Values of Derivative Instruments in the Company's Consolidated Balance Sheets"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r122"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule Of Earnings Per Share Basic And Diluted Table [Text Block]",
        "terseLabel": "Summary of Reconciliation Between Basic and Diluted Earnings Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r478",
      "r479"
     ],
     "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": "Summary of Certain Assets and Liabilities Reported at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable": {
     "auth_ref": [
      "r491",
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing the information required and determined to be disclosed regarding the fair value of financial assets and financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Schedule Of Fair Value Off Balance Sheet Risks [Table]",
        "terseLabel": "Schedule Of Fair Value Off Balance Sheet Risks [Table]"
       }
      }
     },
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTextBlock": {
     "auth_ref": [
      "r491",
      "r492"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined) which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Schedule Of Fair Value Off Balance Sheet Risks [Text Block]",
        "terseLabel": "Summary of Off-Balance-Sheet Financial Instruments with Contractual Amounts Include Present Credit Risk"
       }
      }
     },
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable": {
     "auth_ref": [
      "r229"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about allowance for credit loss on financing receivable.",
        "label": "Schedule Of Financing Receivable Allowance For Credit Losses [Table]",
        "terseLabel": "Schedule Of Financing Receivable Allowance For Credit Losses [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableAllowanceForCreditLossesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable": {
     "auth_ref": [
      "r234",
      "r242"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about credit quality indicator for financing receivable.",
        "label": "Schedule Of Financing Receivable Recorded Investment Credit Quality Indicator [Table]",
        "terseLabel": "Schedule Of Financing Receivable Recorded Investment Credit Quality Indicator [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable": {
     "auth_ref": [
      "r167",
      "r168"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about financing receivable modified as troubled debt restructuring.",
        "label": "Schedule Of Financing Receivable Troubled Debt Restructurings [Table]",
        "terseLabel": "Schedule Of Financing Receivable Troubled Debt Restructurings [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesPastDueTable": {
     "auth_ref": [
      "r230",
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about aging analysis for financing receivable.",
        "label": "Schedule Of Financing Receivables Past Due [Table]",
        "terseLabel": "Schedule Of Financing Receivables Past Due [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesPastDueTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock": {
     "auth_ref": [
      "r506"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years for operating leases having initial or remaining noncancelable lease terms in excess of one year and the total minimum rentals to be received in the future under noncancelable subleases as of the balance sheet date.",
        "label": "Schedule Of Future Minimum Rental Payments For Operating Leases Table [Text Block]",
        "terseLabel": "Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements"
       }
      }
     },
     "localname": "ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r311"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments.",
        "label": "Schedule Of Net Benefit Costs Table [Text Block]",
        "terseLabel": "Components of Net Periodic Benefit Cost (Credit)"
       }
      }
     },
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "auth_ref": [
      "r462",
      "r464"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative instrument not designated or qualifying as hedging instrument.",
        "label": "Schedule Of Other Derivatives Not Designated As Hedging Instruments Statements Of Financial Performance And Financial Position Location Table [Text Block]",
        "terseLabel": "Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Income (Loss) Statement"
       }
      }
     },
     "localname": "ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r376",
      "r382"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "auth_ref": [
      "r547",
      "r548",
      "r549",
      "r550"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of an asset representing net future revenue from contractually specified servicing fees, late charges, and other ancillary revenues, in excess of future costs related to servicing arrangements.",
        "label": "Servicing Asset At Fair Value Amount",
        "verboseLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED": {
       "order": 10240.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share Based Compensation",
        "terseLabel": "Share-based compensation and other share-based activity"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Compensation [Abstract]"
       }
      }
     },
     "localname": "ShareBasedCompensationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1": {
     "auth_ref": [
      "r377"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, 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 Award Requisite Service Period1",
        "terseLabel": "Performance-based restricted stock units performance period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r379"
     ],
     "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": "Shares Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r379"
     ],
     "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": "Weighted Average Fair Value at Grant Date"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r374",
      "r378"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Share Based Compensation Arrangements By Share Based Payment Award Award Type And Plan Name [Domain]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesGrantedAndFairValueOfPrsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SpecialMentionMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables considered to have potential weaknesses that deserve management's close attention. If left uncorrected, those potential weaknesses may result in a deterioration of the repayment prospects for the asset or of the creditor's position at some future date.",
        "label": "Special Mention [Member]",
        "terseLabel": "7 (Special Mention)"
       }
      }
     },
     "localname": "SpecialMentionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "auth_ref": [
      "r259",
      "r261",
      "r435",
      "r648"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation.",
        "label": "Standby Letters Of Credit [Member]",
        "terseLabel": "Standby Letters of Credit"
       }
      }
     },
     "localname": "StandbyLettersOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r16",
      "r88",
      "r89",
      "r90",
      "r95",
      "r104",
      "r106",
      "r129",
      "r215",
      "r262",
      "r263",
      "r387",
      "r388",
      "r389",
      "r410",
      "r411",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r503",
      "r637",
      "r638",
      "r639"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Statement Equity Components [Axis]",
        "terseLabel": "Equity Components"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "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]"
       }
      }
     },
     "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 Income And 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]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r88",
      "r89",
      "r90",
      "r129",
      "r566"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureStockBasedCompensationTables",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssued1": {
     "auth_ref": [
      "r79",
      "r80",
      "r81"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of stock issued in noncash financing activities.",
        "label": "Stock Issued1",
        "terseLabel": "Common Stock issued to shareholders due to merger"
       }
      }
     },
     "localname": "StockIssued1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "auth_ref": [
      "r16",
      "r262",
      "r263"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued pursuant to acquisitions during the period.",
        "label": "Stock Issued During Period Value Acquisitions",
        "terseLabel": "Common stock issued for merger"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r7",
      "r11",
      "r12",
      "r84",
      "r174",
      "r207",
      "r494"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10020.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",
        "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.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders Equity [Abstract]",
        "terseLabel": "Shareholders\u2019 Equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r83",
      "r263",
      "r265"
     ],
     "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": "Shareholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "auth_ref": [
      "r264"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one.",
        "label": "Stockholders Equity Note Stock Split Conversion Ratio1",
        "terseLabel": "Business combination, share conversion ratio"
       }
      }
     },
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_SubleaseIncome": {
     "auth_ref": [
      "r517",
      "r523"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 10030.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sublease income excluding finance and operating lease expense.",
        "label": "Sublease Income",
        "negatedLabel": "Sublease income"
       }
      }
     },
     "localname": "SubleaseIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r528",
      "r530"
     ],
     "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.cambridgetrust.com/20210630/taxonomy/role/DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubstandardMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A category of financing receivables that are inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the creditor will sustain some loss if the deficiencies are not corrected.",
        "label": "Substandard [Member]",
        "terseLabel": "8 (Substandard)"
       }
      }
     },
     "localname": "SubstandardMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "SUPPLEMENTAL DISCLOSURES OF CASH FLOW INFORMATION:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide limited group of employees with supplemental retirement benefits, in addition to other pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Supplemental Employee Retirement Plan Defined Benefit [Member]",
        "terseLabel": "Supplemental Retirement Plan"
       }
      }
     },
     "localname": "SupplementalEmployeeRetirementPlanDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TaxCreditCarryforwardAxis": {
     "auth_ref": [
      "r404"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by specific tax credit related to an unused tax credit.",
        "label": "Tax Credit Carryforward [Axis]",
        "terseLabel": "Tax Credit Carryforward"
       }
      }
     },
     "localname": "TaxCreditCarryforwardAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TaxCreditCarryforwardNameDomain": {
     "auth_ref": [
      "r404"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name of the tax credit carryforward.",
        "label": "Tax Credit Carryforward Name [Domain]",
        "terseLabel": "Tax Credit Carryforward, Name"
       }
      }
     },
     "localname": "TaxCreditCarryforwardNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TierOneLeverageCapital": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 leverage capital as defined by regulatory framework.",
        "label": "Tier One Leverage Capital",
        "terseLabel": "Tier I capital (to average assets), Actual, Amount"
       }
      }
     },
     "localname": "TierOneLeverageCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 leverage capital required for capital adequacy as defined by regulatory framework.",
        "label": "Tier One Leverage Capital Required For Capital Adequacy",
        "terseLabel": "Tier I capital (to average assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Amount"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets required for capital adequacy as defined by regulatory framework.",
        "label": "Tier One Leverage Capital Required For Capital Adequacy To Average Assets",
        "terseLabel": "Tier I capital (to average assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Ratio"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 leverage capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Tier One Leverage Capital Required To Be Well Capitalized",
        "terseLabel": "Tier I capital (to average assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Amount"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 leverage capital to average assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Tier One Leverage Capital Required To Be Well Capitalized To Average Assets",
        "terseLabel": "Tier I capital (to average assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Ratio"
       }
      }
     },
     "localname": "TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalToAverageAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 capital to average assets as defined by regulatory framework.",
        "label": "Tier One Leverage Capital To Average Assets",
        "verboseLabel": "Tier I capital (to average assets), Actual, Ratio"
       }
      }
     },
     "localname": "TierOneLeverageCapitalToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapital": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 risk-based capital as defined by regulatory framework.",
        "label": "Tier One Risk Based Capital",
        "terseLabel": "Tier I capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "TierOneRiskBasedCapital",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Tier One Risk Based Capital Required For Capital Adequacy",
        "terseLabel": "Tier I capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Amount"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r615",
      "r616"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets required for capital adequacy as defined by regulatory framework.",
        "label": "Tier One Risk Based Capital Required For Capital Adequacy To Risk Weighted Assets",
        "terseLabel": "Tier I capital (to risk-weighted assets), Minimum Capital Required For Capital Adequacy Plus Capital Conservation Buffer, Ratio"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 risk-based capital categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Tier One Risk Based Capital Required To Be Well Capitalized",
        "terseLabel": "Tier I capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Amount"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of minimum Tier 1 risk-based capital to risk-weighted assets categorized as well capitalized as defined by regulatory framework for prompt corrective action.",
        "label": "Tier One Risk Based Capital Required To Be Well Capitalized To Risk Weighted Assets",
        "terseLabel": "Tier I capital (to risk-weighted assets), Minimum To Be Well-Capitalized Under Prompt Corrective Action Provisions, Ratio"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Tier One Risk Based Capital To Risk Weighted Assets",
        "verboseLabel": "Tier I capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TimeDeposits": {
     "auth_ref": [
      "r581",
      "r613"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED": {
       "order": 10150.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of time deposit liabilities, including certificates of deposit.",
        "label": "Time Deposits",
        "terseLabel": "Certificates of deposit"
       }
      }
     },
     "localname": "TimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r79",
      "r80",
      "r81"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Transfer To Other Real Estate",
        "terseLabel": "Transfer of other real estate owned"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r195",
      "r199",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r545",
      "r546",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r563",
      "r564"
     ],
     "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": "Transfers And Servicing Of Financial Instruments Types Of Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r94",
      "r95",
      "r96",
      "r98",
      "r212",
      "r213",
      "r214",
      "r215",
      "r218",
      "r219",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r391",
      "r408",
      "r409",
      "r410",
      "r411",
      "r567",
      "r568",
      "r569",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Type Of Adoption [Member]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember": {
     "auth_ref": [
      "r300",
      "r607"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debentures, bonds and other debt securities issued by US government sponsored entities (GSEs), for example, but not limited to, Federal Home Loan Mortgage Corporation (FHLMC or Freddie Mac), Federal National Mortgage Association (FNMA or Fannie Mae), and the Federal Home Loan Bank (FHLB). Excludes debt issued by the Government National Mortgage Association (GNMA or Ginnie Mae).",
        "label": "U S Government Sponsored Enterprises Debt Securities [Member]",
        "terseLabel": "U.S. Government Sponsored Enterprise Obligations",
        "verboseLabel": "U.S. GSE Obligations"
       }
      }
     },
     "localname": "USGovernmentSponsoredEnterprisesDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums": {
     "auth_ref": [
      "r177"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": 10040.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred fees paid by borrowers and unamortized costs incurred to originate loans and leases, unamortized loan commitments and loan syndication fees, and premiums over or discounts from face amounts of loans that are being amortized into income as an adjustment to yield. Excludes amounts for loans and leases covered under loss sharing agreements.",
        "label": "Unamortized Loan Commitment And Origination Fees And Unamortized Discounts Or Premiums",
        "terseLabel": "Deferred costs (fees) net of unearned fees"
       }
      }
     },
     "localname": "UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UncollateralizedMember": {
     "auth_ref": [
      "r240"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No pledge of specific property to serve as protection or security against default.",
        "label": "Uncollateralized [Member]",
        "terseLabel": "Unfunded Commitments"
       }
      }
     },
     "localname": "UncollateralizedMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic": {
     "auth_ref": [
      "r116",
      "r119",
      "r120"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of undistributed earnings (loss) allocated to participating securities for the basic earnings (loss) per share or per unit calculation under the two-class method.",
        "label": "Undistributed Earnings Loss Allocated To Participating Securities Basic",
        "negatedLabel": "Less dividends and undistributed earnings allocated to participating securities"
       }
      }
     },
     "localname": "UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted": {
     "auth_ref": [
      "r114",
      "r116",
      "r119",
      "r120"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of undistributed earnings (loss) allocated to participating securities for the diluted earnings (loss) per share or per unit calculation under the two-class method.",
        "label": "Undistributed Earnings Loss Allocated To Participating Securities Diluted",
        "negatedLabel": "Less dividends and undistributed earnings allocated to participating securities"
       }
      }
     },
     "localname": "UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnlikelyToBeCollectedFinancingReceivableMember": {
     "auth_ref": [
      "r165",
      "r234"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing arrangement that represents a contractual right to receive money either on demand or on fixed or determinable dates that are considered uncollectible or of little value. Excludes no recovery or salvage value.",
        "label": "Unlikely To Be Collected Financing Receivable [Member]",
        "terseLabel": "10 (Loss)"
       }
      }
     },
     "localname": "UnlikelyToBeCollectedFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnusedLinesOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The unused portion of a line of credit that is available to the borrower to withdrawn upon.",
        "label": "Unused Lines Of Credit [Member]",
        "terseLabel": "Unused Portion of Existing Lines of Credit"
       }
      }
     },
     "localname": "UnusedLinesOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r130",
      "r131",
      "r132",
      "r133",
      "r134",
      "r135",
      "r136"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles.",
        "label": "Use Of Estimates",
        "terseLabel": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VariableLeaseCost": {
     "auth_ref": [
      "r516",
      "r523"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 10020.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of variable lease cost, excluded from lease liability, recognized when obligation for payment is incurred for finance and operating leases.",
        "label": "Variable Lease Cost",
        "terseLabel": "Variable lease cost (Cost excluded from lease payments)"
       }
      }
     },
     "localname": "VariableLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "auth_ref": [
      "r122"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 10020.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": "Dilutive effect of common stock equivalents"
       }
      }
     },
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r112",
      "r122"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "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 Diluted Shares Outstanding",
        "terseLabel": "Weighted average number of shares outstanding, diluted",
        "totalLabel": "Weighted average diluted common shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number Of Shares Outstanding [Abstract]",
        "terseLabel": "Denominator:"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r110",
      "r122"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 10010.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": "Weighted average number of shares outstanding, basic"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20210630/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFINCOMELOSSUNAUDITED"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number Of Shares Outstanding Basic [Abstract]",
        "terseLabel": "Denominator:"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20210630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    }
   },
   "unitCount": 6
  }
 },
 "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",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r10": {
   "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"
  },
  "r100": {
   "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"
  },
  "r101": {
   "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"
  },
  "r102": {
   "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"
  },
  "r103": {
   "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"
  },
  "r104": {
   "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"
  },
  "r105": {
   "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"
  },
  "r106": {
   "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"
  },
  "r107": {
   "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"
  },
  "r108": {
   "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"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r11": {
   "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"
  },
  "r110": {
   "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"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1377-109256"
  },
  "r112": {
   "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"
  },
  "r113": {
   "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"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e2740-109256"
  },
  "r115": {
   "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"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r118": {
   "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"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "65",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e2793-109256"
  },
  "r12": {
   "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"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "66",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e2814-109256"
  },
  "r121": {
   "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"
  },
  "r122": {
   "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"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r129": {
   "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"
  },
  "r13": {
   "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"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6161-108592"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6191-108592"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6061-108592"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6132-108592"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6143-108592"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "http://asc.fasb.org/topic&trid=2134479"
  },
  "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.1)",
   "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": "(d)",
   "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",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r142": {
   "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"
  },
  "r143": {
   "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"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r15": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "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"
  },
  "r155": {
   "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"
  },
  "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": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r16": {
   "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"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(4)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953659-111524"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5066-111524"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953676-111524"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953682-111524"
  },
  "r169": {
   "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"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953401-111524"
  },
  "r174": {
   "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"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.L.1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74567-122707"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196772"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=6378536&loc=d3e10092-111533"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10152-111534"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196816"
  },
  "r18": {
   "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"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(ii)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121614798&loc=d3e15032-111544"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121585226&loc=d3e18845-111554"
  },
  "r182": {
   "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"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26853-111562"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL6283291-111563"
  },
  "r185": {
   "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"
  },
  "r186": {
   "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"
  },
  "r187": {
   "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"
  },
  "r188": {
   "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"
  },
  "r189": {
   "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"
  },
  "r19": {
   "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"
  },
  "r190": {
   "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"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r195": {
   "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"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r199": {
   "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"
  },
  "r2": {
   "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"
  },
  "r20": {
   "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"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r201": {
   "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"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "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"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33775-111570"
  },
  "r207": {
   "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"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL82887624-210437"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL120254519-210437"
  },
  "r21": {
   "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"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437"
  },
  "r212": {
   "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"
  },
  "r213": {
   "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"
  },
  "r214": {
   "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"
  },
  "r215": {
   "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"
  },
  "r216": {
   "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"
  },
  "r217": {
   "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"
  },
  "r218": {
   "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"
  },
  "r219": {
   "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"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r220": {
   "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"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919244-210447"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919244-210447"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r228": {
   "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"
  },
  "r229": {
   "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"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r230": {
   "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"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919232-210447"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921830-210448"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921833-210448"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r24": {
   "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"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)(4)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921842-210448"
  },
  "r242": {
   "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"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922355-210448"
  },
  "r244": {
   "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"
  },
  "r245": {
   "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"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226016-175313"
  },
  "r250": {
   "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"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "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"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=6388964&loc=d3e16212-109274"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "((a)(1),(b))",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r256": {
   "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"
  },
  "r257": {
   "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"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12021-110248"
  },
  "r26": {
   "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"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12069-110248"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121596127&loc=d3e12803-110250"
  },
  "r262": {
   "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"
  },
  "r263": {
   "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"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 4.C)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226003-175313"
  },
  "r270": {
   "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"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "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"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=d3e1703-114919"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=SL108413299-114919"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e526-108580"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(10)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(9)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r29": {
   "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"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r299": {
   "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"
  },
  "r3": {
   "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"
  },
  "r30": {
   "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"
  },
  "r300": {
   "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"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iii)",
   "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)(iv)(01)",
   "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)(02)",
   "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)(A)",
   "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)(B)",
   "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)(C)",
   "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)(03)",
   "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": "(e)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r31": {
   "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"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i-k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(l)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(o)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(p)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(q)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r33": {
   "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"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2410-114920"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2439-114920"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r34": {
   "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"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2919-114920"
  },
  "r348": {
   "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"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4587-114921"
  },
  "r35": {
   "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"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=21916913&loc=d3e273930-122802"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39689-114964"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "70",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=29639808&loc=d3e29008-114946"
  },
  "r354": {
   "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"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r36": {
   "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"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r361": {
   "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"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r367": {
   "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"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r37": {
   "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"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450691-114947"
  },
  "r371": {
   "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"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r373": {
   "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"
  },
  "r374": {
   "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"
  },
  "r375": {
   "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"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "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"
  },
  "r38": {
   "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"
  },
  "r380": {
   "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"
  },
  "r381": {
   "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"
  },
  "r382": {
   "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"
  },
  "r383": {
   "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"
  },
  "r384": {
   "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"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r39": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "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"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r396": {
   "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"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "r4": {
   "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"
  },
  "r40": {
   "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"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32537-109319"
  },
  "r403": {
   "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"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32559-109319"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740"
  },
  "r41": {
   "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"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "740"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "740"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "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"
  },
  "r42": {
   "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"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e39076-109324"
  },
  "r421": {
   "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"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477"
  },
  "r43": {
   "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"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(4)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "http://asc.fasb.org/topic&trid=2303972"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116873149&loc=d3e923-111674"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116873149&loc=d3e923-111674"
  },
  "r436": {
   "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"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r44": {
   "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"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r45": {
   "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"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(ii)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r451": {
   "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"
  },
  "r452": {
   "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"
  },
  "r453": {
   "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"
  },
  "r454": {
   "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"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r456": {
   "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"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r458": {
   "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"
  },
  "r459": {
   "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"
  },
  "r46": {
   "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"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r463": {
   "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"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109998890-113959"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(6)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r467": {
   "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"
  },
  "r468": {
   "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"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624258-113959"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5708775-113959"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
  },
  "r473": {
   "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"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121577181&loc=SL110061190-113977"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121549185&loc=d3e80748-113994"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r480": {
   "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"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
  },
  "r489": {
   "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"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=116690757&loc=d3e13220-108610"
  },
  "r491": {
   "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"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13467-108611"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13476-108611"
  },
  "r494": {
   "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"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=120240428&loc=SL120254526-165497"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r5": {
   "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"
  },
  "r50": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r503": {
   "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"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121573735&loc=d3e41502-112717"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121616839&loc=d3e45280-112737"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(4)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121568338&loc=d3e45377-112738"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121329987&loc=SL120154346-209984"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r510": {
   "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"
  },
  "r511": {
   "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"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918638-209977"
  },
  "r513": {
   "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"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918673-209980"
  },
  "r515": {
   "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"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r518": {
   "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"
  },
  "r519": {
   "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"
  },
  "r52": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/subtopic&trid=77888251"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864"
  },
  "r528": {
   "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"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314020-165662"
  },
  "r53": {
   "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"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "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"
  },
  "r536": {
   "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"
  },
  "r537": {
   "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"
  },
  "r538": {
   "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"
  },
  "r539": {
   "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"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r540": {
   "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"
  },
  "r541": {
   "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"
  },
  "r542": {
   "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"
  },
  "r543": {
   "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"
  },
  "r544": {
   "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"
  },
  "r545": {
   "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"
  },
  "r546": {
   "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"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122492-111745"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r550": {
   "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"
  },
  "r551": {
   "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"
  },
  "r552": {
   "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"
  },
  "r553": {
   "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"
  },
  "r554": {
   "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"
  },
  "r555": {
   "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"
  },
  "r556": {
   "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"
  },
  "r557": {
   "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"
  },
  "r558": {
   "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"
  },
  "r559": {
   "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"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(4))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r560": {
   "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"
  },
  "r561": {
   "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"
  },
  "r562": {
   "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"
  },
  "r563": {
   "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"
  },
  "r564": {
   "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"
  },
  "r565": {
   "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"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r57": {
   "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"
  },
  "r570": {
   "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"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r575": {
   "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"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r577": {
   "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"
  },
  "r578": {
   "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"
  },
  "r579": {
   "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"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.6)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(7)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(3)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.4)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r588": {
   "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"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r59": {
   "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"
  },
  "r590": {
   "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"
  },
  "r591": {
   "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"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.11)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(h))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(b))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r6": {
   "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"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "http://asc.fasb.org/topic&trid=2134417"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.4)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.6)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7,8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=121551529&loc=d3e60009-112784"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r607": {
   "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"
  },
  "r608": {
   "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"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3151-108585"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "325",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75031641&loc=d3e63345-112809"
  },
  "r612": {
   "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"
  },
  "r613": {
   "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"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)(1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958568-112826"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117337116&loc=SL5958570-112826"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r618": {
   "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"
  },
  "r619": {
   "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"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r620": {
   "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"
  },
  "r621": {
   "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"
  },
  "r622": {
   "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"
  },
  "r623": {
   "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"
  },
  "r624": {
   "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"
  },
  "r625": {
   "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"
  },
  "r626": {
   "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"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r628": {
   "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"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.3(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r630": {
   "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"
  },
  "r631": {
   "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"
  },
  "r632": {
   "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"
  },
  "r633": {
   "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"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "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"
  },
  "r637": {
   "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"
  },
  "r638": {
   "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"
  },
  "r639": {
   "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"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121641442&loc=d3e19393-158473"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=66023616&loc=SL35737432-115832"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(k)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262090&loc=SL114874205-224268"
  },
  "r65": {
   "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"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07.2(a),(b),(c),(d))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "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"
  },
  "r655": {
   "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"
  },
  "r656": {
   "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"
  },
  "r657": {
   "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"
  },
  "r658": {
   "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"
  },
  "r659": {
   "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"
  },
  "r66": {
   "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"
  },
  "r660": {
   "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"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "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"
  },
  "r664": {
   "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"
  },
  "r665": {
   "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"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47304-110998"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120238483&loc=d3e48678-111004"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3367-108585"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 3))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r671": {
   "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"
  },
  "r672": {
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3000-108585"
  },
  "r680": {
   "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"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r682": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r683": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r684": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a"
  },
  "r685": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r686": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r687": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3461-108585"
  },
  "r7": {
   "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"
  },
  "r70": {
   "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"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r73": {
   "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"
  },
  "r74": {
   "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"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4297-108586"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4304-108586"
  },
  "r8": {
   "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"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4313-108586"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4332-108586"
  },
  "r82": {
   "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"
  },
  "r83": {
   "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"
  },
  "r84": {
   "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"
  },
  "r85": {
   "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"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r88": {
   "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"
  },
  "r89": {
   "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"
  },
  "r9": {
   "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"
  },
  "r90": {
   "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"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21728-107793"
  },
  "r92": {
   "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"
  },
  "r93": {
   "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"
  },
  "r94": {
   "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"
  },
  "r95": {
   "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"
  },
  "r96": {
   "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"
  },
  "r97": {
   "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"
  },
  "r98": {
   "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"
  },
  "r99": {
   "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"
  }
 },
 "version": "2.1"
}
