{
 "instance": {
  "catc-20220630.htm": {
   "axisCustom": 0,
   "axisStandard": 31,
   "contextCount": 423,
   "dts": {
    "calculationLink": {
     "local": [
      "catc-20220630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "catc-20220630_def.xml"
     ]
    },
    "inline": {
     "local": [
      "catc-20220630.htm"
     ]
    },
    "labelLink": {
     "local": [
      "catc-20220630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "catc-20220630_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "catc-20220630.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",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-types-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-types-2021-01-31.xsd",
      "https://xbrl.sec.gov/country/2021/country-2021.xsd",
      "https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd",
      "https://xbrl.sec.gov/stpr/2021/stpr-2021.xsd"
     ]
    }
   },
   "elementCount": 691,
   "entityCount": 1,
   "hidden": {
    "http://www.cambridgetrust.com/20220630": 1,
    "http://xbrl.sec.gov/dei/2021q4": 4,
    "total": 5
   },
   "keyCustom": 65,
   "keyStandard": 341,
   "memberCustom": 33,
   "memberStandard": 61,
   "nsprefix": "catc",
   "nsuri": "http://www.cambridgetrust.com/20220630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "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/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_f109375f-3b9a-4b77-828e-c07e96414ee6",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:UseOfEstimatesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Use of Estimates",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureUseOfEstimates",
     "shortName": "Use of Estimates",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_f109375f-3b9a-4b77-828e-c07e96414ee6",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:UseOfEstimatesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Subsequent Events",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureSubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Recently Issued Accounting Guidance",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureRecentlyIssuedAccountingGuidance",
     "shortName": "Recently Issued Accounting Guidance",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Cash and Cash Equivalents",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalents",
     "shortName": "Cash and Cash Equivalents",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Investment Securities",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecurities",
     "shortName": "Investment Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivablesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Loans and the Allowance for Credit Losses",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLosses",
     "shortName": "Loans and the Allowance for Credit Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinancingReceivablesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Income Taxes",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Pension and Retirement Plans",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlans",
     "shortName": "Pension and Retirement Plans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Stock Based Compensation",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensation",
     "shortName": "Stock Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Financial Instruments with Off-Balance-Sheet Risk",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRisk",
     "shortName": "Financial Instruments with Off-Balance-Sheet Risk",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - UNAUDITED CONSOLIDATED BALANCE SHEETS",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets",
     "shortName": "UNAUDITED CONSOLIDATED BALANCE SHEETS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:MarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Leases",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Shareholders' Equity",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquity",
     "shortName": "Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Other Comprehensive Income (Loss)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss",
     "shortName": "Other Comprehensive Income (Loss)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Earnings Per Share",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Derivative And Hedging Activities",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivities",
     "shortName": "Derivative And Hedging Activities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Fair Value Measurements",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "catc:UseOfEstimatesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UseOfEstimates",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Basis of Presentation (Policies)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureBasisOfPresentationPolicies",
     "shortName": "Basis of Presentation (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "catc:UseOfEstimatesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UseOfEstimates",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Investment Securities (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables",
     "shortName": "Investment Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Loans and the Allowance for Credit Losses (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables",
     "shortName": "Loans and the Allowance for Credit Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Income Taxes (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - UNAUDITED CONSOLIDATED BALANCE SHEETS (Parenthetical)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical",
     "shortName": "UNAUDITED CONSOLIDATED BALANCE SHEETS (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Pension and Retirement Plans (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansTables",
     "shortName": "Pension and Retirement Plans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Stock Based Compensation (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
     "shortName": "Stock Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Financial Instruments with Off-Balance-Sheet Risk (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskTables",
     "shortName": "Financial Instruments with Off-Balance-Sheet Risk (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Leases (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Shareholders' Equity (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityTables",
     "shortName": "Shareholders' Equity (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Other Comprehensive Income (Loss) (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables",
     "shortName": "Other Comprehensive Income (Loss) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Earnings Per Share (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Derivative And Hedging Activities (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesTables",
     "shortName": "Derivative And Hedging Activities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Fair Value Measurements (Tables)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Cash and Cash Equivalents - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
     "shortName": "Cash and Cash Equivalents - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CashAndCashEquivalentsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_1eaad934-84c1-47c9-9943-3e30fa8e1aa1",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CashAndSecuritiesSegregatedUnderFederalAndOtherRegulations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:InterestIncomeLoansTaxable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF INCOME",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF INCOME",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:InterestIncomeLoansTaxable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Investment Securities - Summary of Carrying Amounts of Securities and Their Approximate Fair Values (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
     "shortName": "Investment Securities - Summary of Carrying Amounts of Securities and Their Approximate Fair Values (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "catc:NumberOfDebtSecuritiesWithUnrealizedLosses",
      "reportCount": 1,
      "unitRef": "U_Security",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Investment Securities - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
     "shortName": "Investment Securities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:ProceedsFromSaleAndMaturityOfMarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Investment Securities - Summary of Credit Rating of Debt Securities Portfolio (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
     "shortName": "Investment Securities - Summary of Credit Rating of Debt Securities Portfolio (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:AvailableForSaleSecuritiesAndHeldToMaturityCreditQualityIndicatorTableTextBlock",
       "div",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_3489886b-dd5c-4cd3-9c3d-d38d8c238f72",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableGrossCarryingAmount",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Loans and the Allowance for Credit Losses - Loans Outstanding by Category (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Loans Outstanding by Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_b1df4508-5fed-4b4f-a537-6523b9ca9cae",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableDeferredIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Loans and the Allowance for Credit Losses - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableDeferredIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:ScheduleOfNonPerformingLoansIncludingTroubledDebtRestructuringsTableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_aa63f686-a2e9-49c9-9e7c-f45e1ccefe5f",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Loans and the Allowance for Credit Losses - Non-performing Loans Disaggregated by Loan Category (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Non-performing Loans Disaggregated by Loan Category (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:ScheduleOfNonPerformingLoansIncludingTroubledDebtRestructuringsTableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_aa63f686-a2e9-49c9-9e7c-f45e1ccefe5f",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_b1df4508-5fed-4b4f-a537-6523b9ca9cae",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Loans and the Allowance for Credit Losses - Loans Receivable Disaggregated by Credit Quality Indicator (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Loans Receivable Disaggregated by Credit Quality Indicator (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_b1df4508-5fed-4b4f-a537-6523b9ca9cae",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableOriginatedInCurrentFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesReceivableGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Loans and the Allowance for Credit Losses - Schedule of Loans Receivable Disaggregated by Past Due Status (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
     "shortName": "Loans and the Allowance for Credit Losses - Schedule of Loans Receivable Disaggregated by Past Due Status (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesReceivableGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProvisionForLoanAndLeaseLosses",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "div",
       "us-gaap:FinancingReceivablesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_dc5dab13-7986-4005-a3eb-0eeceacfddd1",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableAllowanceForCreditLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Income Taxes - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
     "shortName": "Income Taxes - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Income Taxes - Components of Income Tax Expense (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails",
     "shortName": "Income Taxes - Components of Income Tax Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_9879b25a-3121-412c-8b29-1c34d174e122",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanInterestCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Pension and Retirement Plans - Components of Net Periodic Benefit Cost (Credit) (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails",
     "shortName": "Pension and Retirement Plans - Components of Net Periodic Benefit Cost (Credit) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_9879b25a-3121-412c-8b29-1c34d174e122",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanInterestCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_12cf5e19-1c50-4250-85f4-57693e7eb198",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Pension and Retirement Plans - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
     "shortName": "Pension and Retirement Plans - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_12cf5e19-1c50-4250-85f4-57693e7eb198",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_bcfea74a-1cc0-491a-878b-0ad7d52d0b92",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Stock Based Compensation - Schedule of Shares Issued and Fair Value of RSAs and RSUs (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
     "shortName": "Stock Based Compensation - Schedule of Shares Issued and Fair Value of RSAs and RSUs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_bcfea74a-1cc0-491a-878b-0ad7d52d0b92",
      "decimals": "2",
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_769f98d0-ef34-4c29-93dc-8ba5873da5c0",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Stock Based Compensation - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
     "shortName": "Stock Based Compensation - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_769f98d0-ef34-4c29-93dc-8ba5873da5c0",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "div",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_6d273dfa-fd69-4b30-b2c8-46a47e92d321",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueOffBalanceSheetRisksTextBlock",
       "div",
       "catc:FinancialInstrumentsWithOffBalanceSheetRiskTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_6d273dfa-fd69-4b30-b2c8-46a47e92d321",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:LesseeOperatingLeaseExpirationDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Leases - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails",
     "shortName": "Leases - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "catc:LesseeOperatingLeaseExpirationDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_575a30d2-e602-45e5-862b-1b2acb32bced",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100080 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_575a30d2-e602-45e5-862b-1b2acb32bced",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Leases - Summary of Components of Operating Lease Cost and Other Related Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails",
     "shortName": "Leases - Summary of Components of Operating Lease Cost and Other Related Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:ScheduleOfOperatingLeaseCostAndOtherRelatedInformationTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Leases - Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails",
     "shortName": "Leases - Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Capital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "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/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
     "shortName": "Shareholders' Equity - Minimum Capital Requirements were Considered Well Capitalized by FRB and FDIC (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "div",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Capital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Other Comprehensive Income (Loss) - Summary of Accumulated Other Comprehensive Income (Loss) (\"AOCI\") (\"AOCL\") (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Accumulated Other Comprehensive Income (Loss) (\"AOCI\") (\"AOCL\") (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Other Comprehensive Income (Loss) - Summary of Reclassifications out of Accumulated Other Comprehensive Income (Loss) (\"AOCI\") (\"AOCL\") (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
     "shortName": "Other Comprehensive Income (Loss) - Summary of Reclassifications out of Accumulated Other Comprehensive Income (Loss) (\"AOCI\") (\"AOCL\") (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_1a8b5970-b93c-4dee-aac8-00f84f0f5263",
      "decimals": "-3",
      "lang": null,
      "name": "catc:DerivativeInstrumentsAmountOfUnrealizedGainsLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "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/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
     "shortName": "Earnings Per Share - Summary of Reconciliation Between Basic and Diluted Earnings Per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:OffsettingAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_USD",
      "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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4a059b73-3177-4c16-aa25-d7876a6b13d6",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_04531ec7-c278-4355-b49f-0d4c2df07d8e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Derivative And Hedging Activities - Summary of Changes to AOCI and AOCL as a Result of Cash Flow Hedge Accounting (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
     "shortName": "Derivative And Hedging Activities - Summary of Changes to AOCI and AOCL as a Result of Cash Flow Hedge Accounting (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_04531ec7-c278-4355-b49f-0d4c2df07d8e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "catc:OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Derivative And Hedging Activities - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
     "shortName": "Derivative And Hedging Activities - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_7a8f5cb3-f699-4a9b-a106-a0e0df8fb126",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Derivative And Hedging Activities - Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Statements of Income (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
     "shortName": "Derivative And Hedging Activities - Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Statements of Income (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_7a8f5cb3-f699-4a9b-a106-a0e0df8fb126",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_0490d2c3-9910-4c90-b00d-3832427e0a95",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100090 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_0490d2c3-9910-4c90-b00d-3832427e0a95",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:OffsettingAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Derivative And Hedging Activities - Schedule of Financial Instruments Eligible for Offset in Consolidated Balance Sheet (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
     "shortName": "Derivative And Hedging Activities - Schedule of Financial Instruments Eligible for Offset in Consolidated Balance Sheet (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "catc:OffsettingAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Fair Value Measurements - Summary of Carrying Values and Estimated Fair Values of Financial Instruments (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
     "shortName": "Fair Value Measurements - Summary of Carrying Values and Estimated Fair Values of Financial Instruments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_66fc120a-8f57-4341-8046-1c0c331277e5",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Fair Value Measurements - Summary of Certain Assets and Liabilities Reported at Fair Value on a Recurring Basis (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_fd8904bb-e2fc-4b3e-b6f2-3824d6af1022",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_92a697a0-5a6f-4148-9e68-bd5470bbb884",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - 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/20220630/taxonomy/role/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": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_92a697a0-5a6f-4148-9e68-bd5470bbb884",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:FairValueTransfersBetweenLevelsAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Fair Value Measurements - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails",
     "shortName": "Fair Value Measurements - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_372f918e-3e1e-4144-91b3-794fdc319e6d",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "catc:FairValueTransfersBetweenLevelsAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_4eea9b46-c7aa-4c11-99dc-888ac78b4a35",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Mergers - Additional Information (Details)",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails",
     "shortName": "Mergers - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100100 - Statement - UNAUDITED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows",
     "shortName": "UNAUDITED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Basis of Presentation",
     "role": "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureBasisOfPresentation",
     "shortName": "Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "catc-20220630.htm",
      "contextRef": "C_513a8afd-e412-4faf-b60a-e36ef4188e66",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 99,
   "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "catc_AmortizationAccretionOfDeferredChargesAndFeesNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 2.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterFiveYearButWithinTenYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterOneYearButWithinFiveYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAfterTenYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_AvailableForSaleSecuritiesAndHeldToMaturitySecuritiesWithinOneYearFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_ChangeInDemandInterestBearingMoneyMarketAndSavingsAccounts": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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 &amp; Industrial",
        "verboseLabel": "Commercial and Industrial"
       }
      }
     },
     "localname": "CommercialAndIndustrialPortfolioSegmentMember",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DeathBenefitOnBankOwnedLifeInsurance": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Death benefit on bank-owned life insurance",
        "label": "Death Benefit On Bank-Owned Life Insurance",
        "terseLabel": "Death benefit on bank-owned life insurance"
       }
      }
     },
     "localname": "DeathBenefitOnBankOwnedLifeInsurance",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossReclassifiedFromAccumulatedOCIIntoIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails2": {
       "order": 0.0,
       "parentTag": "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
       "weight": 1.0
      }
     },
     "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 AOCL into Income"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossReclassifiedFromAccumulatedOCIIntoIncome",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Amount of Gain or (Loss) Recognized in OCI - Excluded Component"
       }
      }
     },
     "localname": "DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIIncludedComponent": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails": {
       "order": 1.0,
       "parentTag": "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails2": {
       "order": 1.0,
       "parentTag": "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
       "weight": 1.0
      }
     },
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIOnDerivative": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails": {
       "order": 0.0,
       "parentTag": "catc_DerivativeInstrumentsAmountOfGainOrLossRecognizedInOCIExcludedComponent",
       "weight": 1.0
      }
     },
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DerivativeInstrumentsAmountOfUnrealizedGainsLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_DirectorStockPlanAndTwoThousandSeventeenEquityAndCashIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Director stock plan and two thousand seventeen equity and cash incentive plan.",
        "label": "Director Stock Plan And Two Thousand Seventeen Equity And Cash Incentive Plan [Member]",
        "terseLabel": "DSP Plan and 2017 Plan"
       }
      }
     },
     "localname": "DirectorStockPlanAndTwoThousandSeventeenEquityAndCashIncentivePlanMember",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_DividendsOnFederalHomeLoanBank": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 4.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRisk"
     ],
     "xbrltype": "textBlockItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_InterestIncomeLoansTaxExempt": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InterestIncomeLoansTaxable": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InterestRateContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate contracts",
        "label": "Interest Rate Contracts [Member]",
        "terseLabel": "Interest Rate Contracts"
       }
      }
     },
     "localname": "InterestRateContractsMember",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAccumulatedUnrealizedGains": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 0.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAccumulatedUnrealizedLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 1.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_InvestmentsSecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "catc_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 5.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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_LoansAndLeasesReceivableAtAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncome": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCL on derivatives into income.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C L On Derivatives Into Income",
        "terseLabel": "Amount of gain reclassed from AOCL into income",
        "verboseLabel": "Amount of Gain or (Loss) Reclassified from AOCI and AOCL into Income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncome",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncomeExcludedComponent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCL on derivatives into income excluded component.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C L On Derivatives Into Income Excluded Component",
        "terseLabel": "Amount of loss reclassed from AOCL into income - Excluded Component",
        "verboseLabel": "Amount of Gain or (Loss) Reclassified from AOCI and AOCL into Income Excluded Component"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncomeExcludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncomeIncludedComponent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss reclassification adjustment from AOCL on derivatives into income included component.",
        "label": "Other Comprehensive Income Loss Reclassification Adjustment From A O C L On Derivatives Into Income Included Component",
        "terseLabel": "Amount of gain reclassed from AOCL into income - Included Component",
        "verboseLabel": "Amount of Gain or (Loss) Reclassified from AOCI and AOCL into Income Included Component"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCLOnDerivativesIntoIncomeIncludedComponent",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "catc_PercentageOfUnrealizedLossOnAmortizedCost": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of unrealized loss on amortized cost.",
        "label": "Percentage Of Unrealized Loss On Amortized Cost",
        "terseLabel": "Percentage of unrealized loss on amortized cost"
       }
      }
     },
     "localname": "PercentageOfUnrealizedLossOnAmortizedCost",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_PurchaseOfLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchase of loans.",
        "label": "Purchase Of Loans",
        "negatedLabel": "Purchase of loans"
       }
      }
     },
     "localname": "PurchaseOfLoans",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_RedemptionOnBankOwnedLifeInsurance": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redemption On Bank-Owned Life Insurance",
        "label": "Redemption On Bank-Owned Life Insurance",
        "terseLabel": "Redemption on bank-owned life insurance"
       }
      }
     },
     "localname": "RedemptionOnBankOwnedLifeInsurance",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "catc_TwoThousandSeventeenCashPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand seventeen cash plan.",
        "label": "2017 Cash Plan"
       }
      }
     },
     "localname": "TwoThousandSeventeenCashPlanMember",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "catc_UnearnedFeesNetOfDeferredCosts": {
     "auth_ref": [],
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "catc_UnrealizedLossOfAmortizedCostBasis": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized loss of amortized cost basis.",
        "label": "Unrealized Loss Of Amortized Cost Basis",
        "terseLabel": "Unrealized loss of amortized cost basis"
       }
      }
     },
     "localname": "UnrealizedLossOfAmortizedCostBasis",
     "nsuri": "http://www.cambridgetrust.com/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/20220630",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r760"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r761"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r777"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r758"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r759"
     ],
     "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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021q4",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r93",
      "r279",
      "r283",
      "r288",
      "r482",
      "r483",
      "r487",
      "r488",
      "r598",
      "r754"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r93",
      "r279",
      "r283",
      "r288",
      "r482",
      "r483",
      "r487",
      "r488",
      "r598",
      "r754"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r290",
      "r296",
      "r408",
      "r418",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r639",
      "r706",
      "r709",
      "r755",
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r290",
      "r296",
      "r408",
      "r418",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r639",
      "r706",
      "r709",
      "r755",
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]",
        "verboseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r163",
      "r314",
      "r315",
      "r640",
      "r705",
      "r707"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r163",
      "r314",
      "r315",
      "r640",
      "r705",
      "r707"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r290",
      "r296",
      "r346",
      "r408",
      "r418",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r639",
      "r706",
      "r709",
      "r755",
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r290",
      "r296",
      "r346",
      "r408",
      "r418",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r639",
      "r706",
      "r709",
      "r755",
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioForecastMember": {
     "auth_ref": [
      "r108",
      "r413"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forecast [Member]",
        "terseLabel": "Scenario Forecast"
       }
      }
     },
     "localname": "ScenarioForecastMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r108",
      "r113",
      "r413"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r164",
      "r165",
      "r314",
      "r316",
      "r708",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r753"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r164",
      "r165",
      "r314",
      "r316",
      "r708",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r749",
      "r750",
      "r751",
      "r752",
      "r753"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r108",
      "r113",
      "r274",
      "r413",
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SubsidiariesMember": {
     "auth_ref": [
      "r373",
      "r595",
      "r596",
      "r597"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [Member]",
        "terseLabel": "Cambridge Trust Company"
       }
      }
     },
     "localname": "SubsidiariesMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "auth_ref": [
      "r224"
     ],
     "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 Update 2016-13 [Member]",
        "terseLabel": "ASU-2016-13",
        "verboseLabel": "ASC 326"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201613Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r16",
      "r41",
      "r43",
      "r44",
      "r694",
      "r717",
      "r721"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 3.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)",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r40",
      "r44",
      "r53",
      "r54",
      "r55",
      "r95",
      "r96",
      "r97",
      "r486",
      "r712",
      "r713",
      "r782"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r14"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.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",
        "periodEndLabel": "Additional Paid in Capital, Common Stock, Ending Balance",
        "periodStartLabel": "Additional Paid in Capital, Common Stock, Beginning Balance",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r95",
      "r96",
      "r97",
      "r434",
      "r435",
      "r436",
      "r532"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustableRateResidentialMortgageMember": {
     "auth_ref": [
      "r743"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r100",
      "r101",
      "r102",
      "r104",
      "r113",
      "r188",
      "r189",
      "r228",
      "r229",
      "r230",
      "r231",
      "r234",
      "r235",
      "r278",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r435",
      "r436",
      "r438",
      "r454",
      "r455",
      "r456",
      "r457",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r531",
      "r532",
      "r533",
      "r534",
      "r553",
      "r554",
      "r556",
      "r557",
      "r558",
      "r559",
      "r563",
      "r564",
      "r593",
      "r641",
      "r642",
      "r643",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Accounting Standards Update [Axis]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r420",
      "r422",
      "r440",
      "r441"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition",
        "terseLabel": "Share based compensation and other share-based activity",
        "totalLabel": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition, Total"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "auth_ref": [
      "r689"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.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",
        "totalLabel": "Advances from Federal Home Loan Banks, Total"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r422",
      "r428",
      "r439"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-based Payment Arrangement, Expense",
        "terseLabel": "Share based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfPreTaxExpenseAssociatedWithAllOutstandingNonVestedRsasRsusPerformanceBasedRestrictedStockUnitsAndRelatedTaxBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r173",
      "r243"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable.",
        "label": "Financing Receivable, Allowance for Credit Loss [Table Text Block]",
        "terseLabel": "Summary of Changes in Allowance for Credit Losses Disaggregated by Loan Category"
       }
      }
     },
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AssetManagement1Member": {
     "auth_ref": [
      "r315"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management of investment fund portfolio. Excludes investment advisory, distribution and servicing, and performance fee.",
        "label": "Asset Management [Member]",
        "terseLabel": "Wealth Management Revenue"
       }
      }
     },
     "localname": "AssetManagement1Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r89",
      "r152",
      "r155",
      "r161",
      "r223",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r482",
      "r487",
      "r552",
      "r599",
      "r601",
      "r651",
      "r693"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r536"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r200"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Available for sale securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r201"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Available for sale securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis": {
     "auth_ref": [
      "r198",
      "r259"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Debt Securities, Available-for-sale, Amortized Cost",
        "terseLabel": "Available for sale securities, amortized cost",
        "totalLabel": "Available for sale securities, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling within One Year, Amortized Cost",
        "terseLabel": "Available for sale securities, Within One Year, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling within One Year, Fair Value",
        "terseLabel": "Available for sale securities, Within One Year, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years, Amortized Cost",
        "terseLabel": "Available for sale securities, After Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years, Fair Value",
        "terseLabel": "Available for sale securities, After Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after Five Through Ten Years, Amortized Cost",
        "terseLabel": "Available for sale securities, After Five, But Within Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after Five Through Ten Years, Fair Value",
        "terseLabel": "Available for sale securities, After Five, But Within Ten Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after One Through Five Years, Amortized Cost",
        "terseLabel": "Available for sale securities, After One, But Within Five Years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Rolling after One Through Five Years, Fair Value",
        "terseLabel": "Available for sale securities, After One, But Within Five Years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate": {
     "auth_ref": [
      "r202",
      "r203",
      "r683"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Fair Value",
        "totalLabel": "Available for sale securities, Total, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis": {
     "auth_ref": [
      "r202",
      "r203",
      "r682"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, Amortized Cost",
        "totalLabel": "Available for sale securities, Total, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateAmortizedCostBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r195",
      "r199",
      "r259",
      "r653"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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": "Securities available for sale",
        "terseLabel": "Available for sale, at fair value (amortized cost $194,014 and $201,270, respectively)",
        "totalLabel": "Debt Securities, Available-for-sale, Total",
        "verboseLabel": "Total available for sale securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r423",
      "r429"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r497",
      "r503"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankOwnedLifeInsurance": {
     "auth_ref": [
      "r650"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 5.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "auth_ref": [
      "r671"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioCapitalAdequacyMinimum": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_BankingRegulationCommonEquityTierOneRiskBasedCapitalRatioWellCapitalizedMinimum": {
     "auth_ref": [
      "r690"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r401",
      "r414"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r401",
      "r414",
      "r471",
      "r472"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "auth_ref": [
      "r477"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity.",
        "label": "Business Acquisition, Equity Interest Issued or Issuable, Number of Shares",
        "terseLabel": "Common stock issued related to merger"
       }
      }
     },
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "auth_ref": [
      "r474",
      "r475",
      "r476"
     ],
     "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 Transferred",
        "terseLabel": "Total consideration paid",
        "totalLabel": "Business Combination, Consideration Transferred, Total"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferred1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r478"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "auth_ref": [
      "r473"
     ],
     "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",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets, Total"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "auth_ref": [
      "r473"
     ],
     "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",
        "totalLabel": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities, Total"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessDescriptionAndBasisOfPresentationTextBlock": {
     "auth_ref": [
      "r7",
      "r94",
      "r147"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Capital": {
     "auth_ref": [
      "r690"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of total capital as defined by regulatory framework.",
        "label": "Banking Regulation, Total Capital, Actual",
        "terseLabel": "Total capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "Capital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum total risk-based capital required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Total Risk-Based Capital, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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": "Banking Regulation, Total Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Total Risk-Based Capital, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Total Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of total risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Banking Regulation, Total Risk-Based Capital Ratio, Actual",
        "verboseLabel": "Total capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "CapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r550",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Value"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents [Abstract]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r8",
      "r20",
      "r85"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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",
        "periodEndLabel": "Cash and Cash Equivalents, at Carrying Value, Ending Balance",
        "periodStartLabel": "Cash and Cash Equivalents, at Carrying Value, Beginning Balance",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsDisclosureTextBlock": {
     "auth_ref": [
      "r9"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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",
        "totalLabel": "Cash and Securities Segregated under Federal and Other Regulations, Total"
       }
      }
     },
     "localname": "CashAndSecuritiesSegregatedUnderFederalAndOtherRegulations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r78",
      "r85",
      "r87"
     ],
     "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",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "auth_ref": [
      "r78",
      "r565"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r495"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "auth_ref": [
      "r0",
      "r1",
      "r95",
      "r96",
      "r98",
      "r188",
      "r189",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r278",
      "r430",
      "r431",
      "r432",
      "r454",
      "r520",
      "r523",
      "r524",
      "r553",
      "r555",
      "r556",
      "r557",
      "r563",
      "r564",
      "r577",
      "r593",
      "r641",
      "r642",
      "r710",
      "r711",
      "r778"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether accounting standards update was adopted.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]",
        "terseLabel": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "auth_ref": [
      "r0",
      "r1",
      "r95",
      "r96",
      "r107",
      "r188",
      "r189",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r278",
      "r430",
      "r431",
      "r432",
      "r454",
      "r520",
      "r523",
      "r524",
      "r525",
      "r528",
      "r553",
      "r555",
      "r556",
      "r557",
      "r563",
      "r564",
      "r577",
      "r593",
      "r641",
      "r642",
      "r710",
      "r711",
      "r778"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date accounting standards update was adopted, in YYYY-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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_CollateralAlreadyPostedAggregateFairValue": {
     "auth_ref": [
      "r514"
     ],
     "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": "Cash pledged as collateral to derivative counterparties"
       }
      }
     },
     "localname": "CollateralAlreadyPostedAggregateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CollateralAxis": {
     "auth_ref": [
      "r254"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral Held [Axis]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Held [Domain]",
        "terseLabel": "Collateral Held"
       }
      }
     },
     "localname": "CollateralDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonEquityTierOneCapital": {
     "auth_ref": [
      "r690"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Common Equity Tier 1 risk-based capital as defined by regulatory framework.",
        "label": "Banking Regulation, Common Equity Tier One Risk-Based Capital, Actual",
        "terseLabel": "Common equity tier I capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "CommonEquityTierOneCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRatio": {
     "auth_ref": [
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Common Equity Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Banking Regulation, Common Equity Tier One Risk-Based Capital Ratio, Actual",
        "verboseLabel": "Common equity tier I capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "CommonEquityTierOneCapitalRatio",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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": "Banking Regulation, Common Equity Tier One Risk-Based Capital, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonEquityTierOneCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Common Equity Tier One Risk-Based Capital, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r310"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r95",
      "r96",
      "r532"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r13"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r13"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r13",
      "r309"
     ],
     "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",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common stock, shares, outstanding"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r13",
      "r601"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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, Issued",
        "periodEndLabel": "Common Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Common Stock, Value, Issued, Beginning Balance",
        "terseLabel": "Common stock, par value $1.00; Authorized: 10,000,000 shares; Outstanding: 7,007,063 shares and 6,968,192 shares, respectively",
        "totalLabel": "Common Stock, Value, Issued, Total"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommunicationsAndInformationTechnology": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 2.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",
        "totalLabel": "Communications and Information Technology, Total"
       }
      }
     },
     "localname": "CommunicationsAndInformationTechnology",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r49",
      "r51",
      "r52",
      "r61",
      "r664",
      "r700"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive income"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r60",
      "r69",
      "r663",
      "r699"
     ],
     "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 (Loss) Note [Text Block]",
        "terseLabel": "Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLoss"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionLoansMember": {
     "auth_ref": [
      "r744"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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"
       }
      }
     },
     "localname": "ConsumerPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r347",
      "r395",
      "r722"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentFederalStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r90",
      "r451",
      "r463"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [
      "r90",
      "r451",
      "r463"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebitCardMember": {
     "auth_ref": [
      "r315"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "auth_ref": [
      "r63",
      "r64"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "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",
        "totalLabel": "Debt and Equity Securities, Gain (Loss), Total",
        "verboseLabel": "Unrealized gains on available for sale securities"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAndHeldToMaturity": {
     "auth_ref": [
      "r653"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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, after Allowance for Credit Loss",
        "totalLabel": "Available for sale securities and Held to maturity securities, Total, Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAndHeldToMaturity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r216",
      "r263",
      "r266"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Available for sale securities, Fair Value, 12 months or longer",
        "totalLabel": "Debt Securities Available For Sale Continuous Unrealized Loss Position12 Months Or Longer, Total",
        "verboseLabel": "Debt Securities Available For Sale Continuous Unrealized Loss Position12 Months Or Longer, Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r216",
      "r263"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Available for sale securities, Unrealized Losses, 12 months or longer"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r216",
      "r263",
      "r266"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Available for sale securities, Fair Value, Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r216",
      "r263"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Available for sale securities, Unrealized Losses, Less than 12 months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTableTextBlock": {
     "auth_ref": [
      "r218"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r214",
      "r260",
      "r266"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r215",
      "r261"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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",
        "totalLabel": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss, Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionFairValueTableTextBlock": {
     "auth_ref": [
      "r213",
      "r262",
      "r266"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r90",
      "r452",
      "r463"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFederalStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredIncomeTaxAssetsNet": {
     "auth_ref": [
      "r443",
      "r444"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 8.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",
        "totalLabel": "Deferred Income Tax Assets, Net, Total",
        "verboseLabel": "Net deferred tax assets"
       }
      }
     },
     "localname": "DeferredIncomeTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r90",
      "r452",
      "r463"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r449"
     ],
     "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",
        "totalLabel": "Deferred Tax Assets, Valuation Allowance, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "auth_ref": [
      "r324",
      "r362",
      "r389",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 4.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 Gain (Loss)",
        "negatedLabel": "Amortization of net actuarial loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "auth_ref": [
      "r324",
      "r363",
      "r390",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 3.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "auth_ref": [
      "r324",
      "r361",
      "r388",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 2.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 (Loss) on Plan Assets",
        "negatedLabel": "Expected return on assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r324",
      "r328",
      "r360",
      "r387",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r358",
      "r385",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 (Credit)",
        "totalLabel": "Net periodic benefit cost (credit)"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit) [Abstract]",
        "terseLabel": "Net periodic benefit cost (credit)"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "auth_ref": [
      "r326",
      "r359",
      "r386",
      "r395",
      "r396"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Postretirement Health Coverage [Member]",
        "terseLabel": "Postretirement Healthcare Plan"
       }
      }
     },
     "localname": "DefinedBenefitPostretirementHealthCoverageMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "auth_ref": [
      "r399"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for defined contribution plan.",
        "label": "Defined Contribution Plan, Cost",
        "terseLabel": "Contribution expense related to plans"
       }
      }
     },
     "localname": "DefinedContributionPlanCostRecognized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 of Employees' Gross Pay",
        "terseLabel": "Defined contribution plan, employer matching contribution, percent"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMatchingContributionPercent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DemandDepositAccounts": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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",
        "totalLabel": "Demand Deposit Accounts, Total"
       }
      }
     },
     "localname": "DemandDepositAccounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositAccountMember": {
     "auth_ref": [
      "r315"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Deposits": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits [Abstract]",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "DepositsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsMoneyMarketDeposits": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsSavingsDeposits": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 3.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 3.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",
        "totalLabel": "Depreciation, Amortization and Accretion, Net, Total"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset": {
     "auth_ref": [
      "r26",
      "r491"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "auth_ref": [
      "r26",
      "r34",
      "r501"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "auth_ref": [
      "r492",
      "r493",
      "r494"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r27",
      "r29",
      "r32",
      "r549"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 0.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 Asset",
        "totalLabel": "Net Amounts Recognized, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralObligationToReturnSecurities": {
     "auth_ref": [
      "r28",
      "r30",
      "r31"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimCash": {
     "auth_ref": [
      "r28",
      "r30",
      "r31",
      "r517"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimSecurities": {
     "auth_ref": [
      "r28",
      "r30",
      "r31"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 [Domain]",
        "terseLabel": "Derivative Contract"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r25",
      "r32",
      "r33",
      "r501",
      "r618"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Asset, Fair Value, Gross Asset",
        "terseLabel": "Derivative Assets, Fair value",
        "totalLabel": "Derivative Asset, Fair Value, Gross Asset, Total",
        "verboseLabel": "Gross Amounts Recognized, Derivative assets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral": {
     "auth_ref": [
      "r30",
      "r516"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Asset, Fair Value, Amount Offset Against Collateral",
        "totalLabel": "Gross Amounts Not Offset, Net amount, Derivative Assets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r25",
      "r32",
      "r33",
      "r501",
      "r618"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Liability, Fair Value, Gross Liability",
        "terseLabel": "Derivative Liabilities, Fair value",
        "totalLabel": "Derivative Liability, Fair Value, Gross Liability, Total",
        "verboseLabel": "Gross Amounts Recognized, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral": {
     "auth_ref": [
      "r30",
      "r516"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Liability, Fair Value, Amount Offset Against Collateral",
        "totalLabel": "Gross Amounts Not Offset, Net amount, Derivative Liabilities"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r499"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 4.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",
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r32",
      "r498",
      "r502",
      "r508",
      "r512"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r522",
      "r535"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r496",
      "r498",
      "r508"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet": {
     "auth_ref": [
      "r507",
      "r509"
     ],
     "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",
        "totalLabel": "Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net, Total"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r27",
      "r29",
      "r32",
      "r549"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 0.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 Liability",
        "totalLabel": "Net Amounts Recognized, Derivative Liabilities",
        "verboseLabel": "Fair value of derivative liability"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "auth_ref": [
      "r26",
      "r31",
      "r34",
      "r501"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesScheduleOfFinancialInstrumentsEligibleForOffsetInConsolidatedBalanceSheetDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "auth_ref": [
      "r492",
      "r493",
      "r494"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNotionalAmount": {
     "auth_ref": [
      "r493",
      "r494"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payment on derivative.",
        "label": "Derivative, Notional Amount",
        "terseLabel": "Termination amount"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r496"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r442"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement [Text Block]",
        "terseLabel": "Stock Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "auth_ref": [
      "r423",
      "r429"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of share-based payment arrangement.",
        "label": "Disclosure of Share-based Compensation Arrangements by Share-based Payment Award [Table Text Block]",
        "terseLabel": "Schedule of Shares Issued and Fair Value of RSAs, RSUs"
       }
      }
     },
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsCommonStock": {
     "auth_ref": [
      "r310",
      "r687"
     ],
     "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",
        "totalLabel": "Dividends, Common Stock, Total"
       }
      }
     },
     "localname": "DividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DoubtfulMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r62",
      "r105",
      "r106",
      "r107",
      "r108",
      "r109",
      "r116",
      "r119",
      "r128",
      "r131",
      "r132",
      "r136",
      "r137",
      "r533",
      "r534",
      "r665",
      "r701"
     ],
     "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 per share",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "verboseLabel": "Earnings per common share - basic"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r62",
      "r105",
      "r106",
      "r107",
      "r108",
      "r109",
      "r119",
      "r128",
      "r131",
      "r132",
      "r136",
      "r137",
      "r533",
      "r534",
      "r665",
      "r701"
     ],
     "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 per share",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "verboseLabel": "Earnings per common share - diluted"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r133",
      "r134",
      "r135",
      "r138"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r446"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation, Percent",
        "totalLabel": "Effective Income Tax Rate Reconciliation, Percent, Total",
        "verboseLabel": "Effective tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense": {
     "auth_ref": [
      "r428"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax benefit for recognition of expense of award under share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Expense, Tax Benefit",
        "verboseLabel": "Related tax benefits"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfPreTaxExpenseAssociatedWithAllOutstandingNonVestedRsasRsusPerformanceBasedRestrictedStockUnitsAndRelatedTaxBenefitsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r2",
      "r53",
      "r54",
      "r55",
      "r95",
      "r96",
      "r97",
      "r101",
      "r110",
      "r112",
      "r139",
      "r231",
      "r309",
      "r310",
      "r434",
      "r435",
      "r436",
      "r456",
      "r457",
      "r532",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r572",
      "r712",
      "r713",
      "r714",
      "r782"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r549"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r536",
      "r537",
      "r538",
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r536",
      "r537",
      "r539"
     ],
     "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 Measurements, Nonrecurring [Table 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r542"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r536",
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r536",
      "r550",
      "r551"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r536",
      "r550"
     ],
     "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 [Table Text Block]",
        "terseLabel": "Summary of Carrying Values and Estimated Fair Values of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r395",
      "r537",
      "r608",
      "r609",
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r536",
      "r546"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]",
        "terseLabel": "Measurement Basis"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r536",
      "r537",
      "r540",
      "r541",
      "r547"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [
      "r291",
      "r293",
      "r294"
     ],
     "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 Measurement [Domain]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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, Off-balance Sheet Risks, Face Amount, Liability",
        "terseLabel": "Financial instruments with off-balance-sheet risk"
       }
      }
     },
     "localname": "FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r544"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r291",
      "r347",
      "r349",
      "r354",
      "r395",
      "r537",
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r347",
      "r349",
      "r354",
      "r395",
      "r537",
      "r609"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r395",
      "r537",
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r291",
      "r293",
      "r294",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r395",
      "r608",
      "r609",
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r536",
      "r537",
      "r540",
      "r541",
      "r543",
      "r547"
     ],
     "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, Nonrecurring [Member]",
        "terseLabel": "Non-recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfCarryingValueOfAssetsMeasuredAtFairValueOnNonRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r544",
      "r547"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Recurring Basis"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "auth_ref": [
      "r673"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 5.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure": {
     "auth_ref": [
      "r656"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankStock": {
     "auth_ref": [
      "r685"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 4.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 of Boston stock"
       }
      }
     },
     "localname": "FederalHomeLoanBankStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialAssetPastDueMember": {
     "auth_ref": [
      "r182",
      "r244",
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset past due.",
        "label": "Financial Asset, Past Due [Member]",
        "terseLabel": "Total Past Due"
       }
      }
     },
     "localname": "FinancialAssetPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r208",
      "r212",
      "r219",
      "r220",
      "r221",
      "r237",
      "r243",
      "r244",
      "r247",
      "r249",
      "r262",
      "r264",
      "r265",
      "r266",
      "r292",
      "r307",
      "r522",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r619",
      "r620",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "auth_ref": [
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis": {
     "auth_ref": [
      "r479",
      "r723"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain": {
     "auth_ref": [
      "r479",
      "r723"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "auth_ref": [
      "r168",
      "r236",
      "r238",
      "r242",
      "r654",
      "r772",
      "r774",
      "r776"
     ],
     "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 Loss",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Loss [Line Items]",
        "terseLabel": "Financing Receivable Allowance For Credit Losses [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesRecovery": {
     "auth_ref": [
      "r171",
      "r241",
      "r257"
     ],
     "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 Loss, Recovery",
        "terseLabel": "Recoveries"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesRecovery",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesWriteOffs": {
     "auth_ref": [
      "r170",
      "r240",
      "r257"
     ],
     "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 Loss, Writeoff",
        "negatedLabel": "Charge-offs"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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, Troubled Debt Restructuring [Line Items]",
        "terseLabel": "Financing Receivable Modifications [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableModificationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableModificationsRecordedInvestment": {
     "auth_ref": [
      "r176",
      "r194"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": 2.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, Troubled Debt Restructuring",
        "terseLabel": "Troubled debt restructurings",
        "verboseLabel": "Troubled debt restructuring carrying value"
       }
      }
     },
     "localname": "FinancingReceivableModificationsRecordedInvestment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 5.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, More than Five Years before Current Fiscal Year",
        "terseLabel": "Prior"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 4.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, Year Five, Originated, Four Years before Current Fiscal Year",
        "terseLabel": "2018"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 0.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, Year One, Originated, Current Fiscal Year",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInCurrentFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 1.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, Year Two, Originated, Fiscal Year before Current Fiscal Year",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 3.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, Year Four, Originated, Three Years before Current Fiscal Year",
        "terseLabel": "2019"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 2.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, Year Three, Originated, Two Years before Current Fiscal Year",
        "terseLabel": "2020"
       }
      }
     },
     "localname": "FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "auth_ref": [
      "r237",
      "r243",
      "r251",
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "auth_ref": [
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "auth_ref": [
      "r180",
      "r246",
      "r258"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable 90 days or more past due and still accruing.",
        "label": "Financing Receivable, 90 Days or More Past Due, 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "auth_ref": [
      "r175",
      "r181",
      "r182",
      "r244",
      "r247",
      "r249",
      "r252",
      "r253",
      "r257",
      "r258",
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776"
     ],
     "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": "Class of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "auth_ref": [
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776"
     ],
     "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": "Class of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "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, Credit Quality Indicator [Line Items]",
        "terseLabel": "Financing Receivable Recorded Investment [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "auth_ref": [
      "r179",
      "r245",
      "r773",
      "r774"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails": {
       "order": 0.0,
       "parentTag": "catc_FinancingReceivableRecordedInvestmentAggregateNonperformingLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of financing receivable on nonaccrual status.",
        "label": "Financing Receivable, Nonaccrual",
        "terseLabel": "Non-accrual loans"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "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, Past Due [Line Items]",
        "terseLabel": "Financing Receivable Recorded Investment Past Due [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRevolving": {
     "auth_ref": [
      "r250",
      "r257"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails": {
       "order": 6.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivables30To59DaysPastDueMember": {
     "auth_ref": [
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 29 days past due but fewer than 60 days past due.",
        "label": "Financial Asset, 30 to 59 Days Past Due [Member]",
        "terseLabel": "30-59 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables30To59DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivables60To89DaysPastDueMember": {
     "auth_ref": [
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset more than 59 days past due but fewer than 90 days past due.",
        "label": "Financial Asset, 60 to 89 Days Past Due [Member]",
        "terseLabel": "60-89 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivables60To89DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "terseLabel": "90 Days or Greater"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r182",
      "r244",
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by period in which financial asset is past due or not past due.",
        "label": "Financial Asset, Aging [Axis]",
        "terseLabel": "Financial Asset, Period Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [
      "r182",
      "r244",
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due or not past due. For 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": "Financial Asset, Aging [Domain]",
        "terseLabel": "Financial Asset, Period Past Due"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesTextBlock": {
     "auth_ref": [
      "r185",
      "r192"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Securities [Table Text Block]",
        "terseLabel": "Summary of Gains from Sale of Investment Securities"
       }
      }
     },
     "localname": "GainLossOnInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r83",
      "r670",
      "r704"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 3.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, net",
        "totalLabel": "Gain (Loss) on Sales of Loans, Net, Total"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r267",
      "r268",
      "r601",
      "r649"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill",
        "periodEndLabel": "Goodwill, Ending Balance",
        "periodStartLabel": "Goodwill, Beginning Balance",
        "terseLabel": "Goodwill",
        "totalLabel": "Goodwill, Total"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r496",
      "r513"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r496"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r496"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r182",
      "r204",
      "r236",
      "r244"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_MarketableSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance for credit loss, of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss",
        "terseLabel": "Held to maturity, at amortized cost (fair value $990,221 and $971,092, respectively)",
        "totalLabel": "Held to maturity securities, Amortized Cost",
        "verboseLabel": "Total held to maturity securities"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain": {
     "auth_ref": [
      "r206",
      "r210"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 0.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": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Gain",
        "terseLabel": "Held to maturity securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss": {
     "auth_ref": [
      "r207",
      "r211"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 1.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": "Debt Securities, Held-to-maturity, Accumulated Unrecognized Loss",
        "negatedLabel": "Held to maturity securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r215",
      "r216"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.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": "Debt Securities, Held-to-maturity, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Held to maturity securities, Unrealized Losses, 12 months or longer"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r215"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Debt Securities, Held-to-maturity, Unrealized Loss Position, Accumulated Loss",
        "negatedTotalLabel": "Held to maturity securities, Unrealized Losses",
        "totalLabel": "Debt Securities, Held-to-maturity, Unrealized Loss Position, Accumulated Loss, Total"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [
      "r214"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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": "Debt Securities, Held-to-maturity, Unrealized Loss Position, Fair Value",
        "totalLabel": "Held to maturity securities, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r215",
      "r216"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.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": "Debt Securities, Held-to-maturity, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Held to maturity securities, Unrealized Losses, Less than 12 months"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [
      "r216"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 0.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": "Debt Securities, Held-to-maturity, Continuous Unrealized Loss Position, Less than 12 Months, Fair Value",
        "terseLabel": "Held to maturity securities, Fair Value, Less than 12 months"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [
      "r216"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails": {
       "order": 1.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": "Debt Securities, Held-to-maturity, Continuous Unrealized Loss Position, 12 Months or Longer, Fair Value",
        "terseLabel": "Held to maturity securities, Fair Value, 12 months or longer"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.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": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Rolling within One Year, Fair Value",
        "terseLabel": "Held to maturity securities, Within One Year, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingAfterTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.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": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years, Fair Value",
        "terseLabel": "Held to maturity securities, After Ten Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.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": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Rolling after Five Through Ten Years, Fair Value",
        "terseLabel": "Held to maturity securities, After Five, But Within Ten Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.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": "Debt Securities, Held-to-maturity, Maturity, Allocated and Single Maturity Date, Rolling after One Through Five Years, Fair Value",
        "terseLabel": "Held to maturity securities, After One, But Within Five Years, Fair Value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r205",
      "r209",
      "r653"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 2.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": "Securities held to maturity",
        "terseLabel": "Held-to-maturity securities, fair value",
        "totalLabel": "Held to maturity securities, Fair Value",
        "verboseLabel": "Held-to-maturity securities, fair value"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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 current statement of financial position date. For interim and annual periods when interim period is reported on rolling approach.",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Rolling within One Year",
        "terseLabel": "Held to maturity securities, Within One Year, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingAfterTenYearsAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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 current statement of financial position date. For interim and annual periods when interim period is reported on rolling approach.",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years",
        "terseLabel": "Held to maturity securities, After Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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 current statement of financial position date. For interim and annual periods when interim period is reported on rolling approach.",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Rolling after Five through Ten Years",
        "terseLabel": "Held to maturity securities, After Five, But Within Ten Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldtomaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_HeldToMaturitySecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, 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 current statement of financial position date. For interim and annual periods when interim period is reported on rolling approach.",
        "label": "Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Rolling after One through Five Years",
        "terseLabel": "Held to maturity securities, After One, But Within Five Years, Amortized Cost"
       }
      }
     },
     "localname": "HeldtomaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Line of Credit [Member]",
        "terseLabel": "Home Equity - Lines of Credit"
       }
      }
     },
     "localname": "HomeEquityMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r58",
      "r152",
      "r154",
      "r157",
      "r160",
      "r162",
      "r647",
      "r661",
      "r680",
      "r702"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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, Noncontrolling Interest",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r272",
      "r273"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [
      "r273"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r91",
      "r447",
      "r448",
      "r450",
      "r461",
      "r464",
      "r468",
      "r469",
      "r470"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r92",
      "r111",
      "r112",
      "r151",
      "r445",
      "r462",
      "r466",
      "r703"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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",
        "totalLabel": "Total income tax expense",
        "verboseLabel": "Income tax benefit"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfIncomeTaxExpenseDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r80",
      "r86"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 7.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeferredIncomeTaxes": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in 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 expense"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeferredIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInLoansHeldForSale": {
     "auth_ref": [
      "r77",
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 9.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",
        "totalLabel": "Increase (Decrease) in Loans Held-for-sale, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 10.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",
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 11.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",
        "totalLabel": "Increase (Decrease) in Other Operating Liabilities, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInTimeDeposits": {
     "auth_ref": [
      "r679"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 1.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",
        "totalLabel": "Increase (Decrease) in Time Deposits, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInTimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r269",
      "r270"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 11.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",
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r666"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "auth_ref": [
      "r655"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.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",
        "totalLabel": "Interest-bearing Deposit Liabilities, Total"
       }
      }
     },
     "localname": "InterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r57",
      "r150",
      "r573",
      "r574",
      "r678"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r677"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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",
        "totalLabel": "Interest Expense, Borrowings, Total"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseDeposits": {
     "auth_ref": [
      "r676"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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",
        "totalLabel": "Interest Expense, Deposits, Total"
       }
      }
     },
     "localname": "InterestExpenseDeposits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeDepositsWithFinancialInstitutions": {
     "auth_ref": [
      "r675",
      "r762",
      "r763"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 5.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",
        "totalLabel": "Interest Income, Deposits with Financial Institutions, Total"
       }
      }
     },
     "localname": "InterestIncomeDepositsWithFinancialInstitutions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "auth_ref": [
      "r669"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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 release of credit losses"
       }
      }
     },
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r667"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "auth_ref": [
      "r674",
      "r762",
      "r763"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 3.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, Operating, Tax Exempt",
        "terseLabel": "Interest on tax-exempt investment securities"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxable": {
     "auth_ref": [
      "r674",
      "r762",
      "r763"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 2.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, Operating, Taxable",
        "terseLabel": "Interest on taxable investment securities"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r75",
      "r79",
      "r86"
     ],
     "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, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet": {
     "auth_ref": [
      "r521"
     ],
     "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 Next 12 Months, Net",
        "terseLabel": "Estimated amount will be reclassified out of AOCL into earnings"
       }
      }
     },
     "localname": "InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateContractMember": {
     "auth_ref": [
      "r32",
      "r347",
      "r510"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfChangesToAociAndAoclAsAResultOfCashFlowHedgeAccountingDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r510"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 9.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "auth_ref": [
      "r174",
      "r249",
      "r256",
      "r257",
      "r276",
      "r515"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r726",
      "r727",
      "r728",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738",
      "r739",
      "r740"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r726",
      "r727",
      "r728",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738",
      "r739",
      "r740"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r536"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails": {
       "order": 2.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",
        "totalLabel": "Investments, Fair Value Disclosure, Total"
       }
      }
     },
     "localname": "InvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r218",
      "r648",
      "r684",
      "r741",
      "r769"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LaborAndRelatedExpense": {
     "auth_ref": [
      "r65"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r589",
      "r591"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseExistenceOfOptionToExtend": {
     "auth_ref": [
      "r582"
     ],
     "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 [true false]",
        "terseLabel": "Existence of option to expire"
       }
      }
     },
     "localname": "LesseeOperatingLeaseExistenceOfOptionToExtend",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r590"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Schedule of Total Minimum Lease Payments Due in Future Periods for Lease Agreements"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total minimum lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease 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, to be Paid, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease having initial or remaining lease term in excess of one year to be paid in remainder of current fiscal year.",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year",
        "terseLabel": "Remainder of 2022"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r590"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r582"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r592"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r21",
      "r89",
      "r156",
      "r223",
      "r279",
      "r280",
      "r281",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r483",
      "r487",
      "r488",
      "r552",
      "r599",
      "r600"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r19",
      "r89",
      "r223",
      "r552",
      "r601",
      "r652",
      "r696"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and shareholders\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansAndLeasesReceivableAllowance": {
     "auth_ref": [
      "r168",
      "r172",
      "r184",
      "r193"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.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",
        "periodEndLabel": "Loans and Leases Receivable, Allowance, Ending Balance",
        "periodStartLabel": "Loans and Leases Receivable, Allowance, Beginning Balance",
        "totalLabel": "Loans and Leases Receivable, Allowance, Total"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableBeforeFeesGross": {
     "auth_ref": [
      "r167"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDeferredIncome": {
     "auth_ref": [
      "r178",
      "r187",
      "r576",
      "r659"
     ],
     "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 remaining in deferral",
        "totalLabel": "Loans and Leases Receivable, Deferred Income, Total",
        "verboseLabel": "Loans in deferral"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDisclosureTable": {
     "auth_ref": [
      "r167"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount": {
     "auth_ref": [
      "r167"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 0.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",
        "totalLabel": "Total loans",
        "verboseLabel": "Total loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableGrossCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmount": {
     "auth_ref": [
      "r167",
      "r659"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 3.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 Amount",
        "totalLabel": "Net loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmountAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and Leases Receivable, Net Amount [Abstract]",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmountAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "auth_ref": [
      "r185"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup": {
     "auth_ref": [
      "r167",
      "r742"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 2.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": "Financing Receivable, Held-for-Sale, Not Part of Disposal Group, after Valuation Allowance",
        "periodEndLabel": "Financing Receivable, Held-for-Sale, Not Part of Disposal Group, after Valuation Allowance, Ending Balance",
        "periodStartLabel": "Financing Receivable, Held-for-Sale, Not Part of Disposal Group, after Valuation Allowance, Beginning Balance",
        "terseLabel": "Loans held for sale, at lower of cost or fair value"
       }
      }
     },
     "localname": "LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecurities": {
     "auth_ref": [
      "r658"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketingExpense": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 4.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r197",
      "r347",
      "r349",
      "r395",
      "r722"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by mortgage loans.",
        "label": "Collateralized Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage Backed Securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r78",
      "r81",
      "r84"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r6",
      "r47",
      "r50",
      "r55",
      "r59",
      "r84",
      "r89",
      "r100",
      "r105",
      "r106",
      "r107",
      "r108",
      "r111",
      "r112",
      "r125",
      "r152",
      "r154",
      "r157",
      "r160",
      "r162",
      "r223",
      "r279",
      "r280",
      "r281",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r534",
      "r552",
      "r662",
      "r698"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail2": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net income",
        "totalLabel": "Net income",
        "verboseLabel": "Net income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r105",
      "r106",
      "r107",
      "r108",
      "r116",
      "r117",
      "r127",
      "r132",
      "r152",
      "r154",
      "r157",
      "r160",
      "r162"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 applicable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r118",
      "r120",
      "r121",
      "r122",
      "r123",
      "r127",
      "r132"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail2": {
       "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 applicable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update and Change in Accounting Principle [Abstract]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r5",
      "r98",
      "r99",
      "r102",
      "r103",
      "r113",
      "r114",
      "r115",
      "r190",
      "r191",
      "r232",
      "r233",
      "r317",
      "r318",
      "r319",
      "r320",
      "r437",
      "r458",
      "r459",
      "r460",
      "r530",
      "r560",
      "r561",
      "r562",
      "r594",
      "r644",
      "r645",
      "r646",
      "r716",
      "r717",
      "r718",
      "r719",
      "r721",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for change in accounting principle. Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle.",
        "label": "Accounting Standards Update and Change in Accounting Principle [Text Block]",
        "terseLabel": "Recently Issued Accounting Guidance"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r496"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Not Designated as Hedging Instrument [Member]",
        "terseLabel": "Derivatives Not Designated as Hedging Instruments"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestExpense": {
     "auth_ref": [
      "r673"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncome": {
     "auth_ref": [
      "r671"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncomeOther": {
     "auth_ref": [
      "r671"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 5.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",
        "totalLabel": "Noninterest Income, Other, Total"
       }
      }
     },
     "localname": "NoninterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonoperatingIncomeExpense": {
     "auth_ref": [
      "r68"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 6.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": "Non-operating expenses",
        "terseLabel": "Non-operating expenses",
        "totalLabel": "Nonoperating Income (Expense), Total"
       }
      }
     },
     "localname": "NonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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 Financial Instruments [Member]",
        "terseLabel": "Non-Performing Loans"
       }
      }
     },
     "localname": "NonperformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesReceivableGross": {
     "auth_ref": [
      "r182",
      "r236",
      "r244",
      "r248",
      "r257",
      "r258",
      "r770",
      "r772",
      "r773"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance for credit loss, of financing receivable.",
        "label": "Financing Receivable, before Allowance for Credit Loss",
        "terseLabel": "Total Principal Balance/Past Due",
        "totalLabel": "Financing Receivable, before Allowance for Credit Loss, Total"
       }
      }
     },
     "localname": "NotesReceivableGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OccupancyNet": {
     "auth_ref": [
      "r67",
      "r575",
      "r672"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OffsettingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "localname": "OffsettingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r583",
      "r591"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r580"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r579"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "terseLabel": "Operating lease liabilities",
        "totalLabel": "Operating Lease, Liability, Total",
        "verboseLabel": "Total lease liability"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesScheduleOfTotalMinimumLeasePaymentsDueInFuturePeriodsForLeaseAgreementsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r581",
      "r586"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r578"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 7.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r588",
      "r591"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r587",
      "r591"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average lease term - operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Leases, Future Minimum Payments Due, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r12",
      "r650",
      "r692"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 12.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",
        "totalLabel": "Other Assets, Total"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r497",
      "r518"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, before Tax [Abstract]",
        "terseLabel": "Available for sale securities, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment and Tax [Abstract]",
        "terseLabel": "Available for sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax [Abstract]",
        "terseLabel": "Available for sale securities, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableForSaleSecuritiesTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, before Tax [Abstract]",
        "terseLabel": "Defined benefit retirement plans, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, after Tax [Abstract]",
        "terseLabel": "Defined benefit retirement plans"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, Tax [Abstract]",
        "terseLabel": "Defined benefit retirement plans, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesBeforeTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, before Tax [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesBeforeTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification and Tax [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxEffectPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax [Abstract]",
        "terseLabel": "Interest rate swaps designated as cash flow hedges, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxEffectPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax": {
     "auth_ref": [
      "r37",
      "r38"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "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": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), before Adjustment, after Tax",
        "negatedLabel": "Unrealized holding gains (losses)",
        "terseLabel": "Unrealized holding gains (losses)",
        "totalLabel": "OCI, Debt Securities, Available-for-Sale, Gain (Loss), before Adjustment, after Tax, Total",
        "verboseLabel": "Unrealized holding (losses) gains, net-of-tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossBeforeTax": {
     "auth_ref": [
      "r53",
      "r54",
      "r60",
      "r222",
      "r566",
      "r571",
      "r572",
      "r663",
      "r699"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "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 (loss) income, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax": {
     "auth_ref": [
      "r36",
      "r41"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 2.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 losses on interest rate swaps"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax": {
     "auth_ref": [
      "r36",
      "r41"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 0.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",
        "negatedLabel": "Unrealized holding gains (losses)",
        "terseLabel": "Unrealized holding gains (losses)",
        "verboseLabel": "Unrealized holding (losses) gains, net-of-tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax": {
     "auth_ref": [
      "r36",
      "r41",
      "r500",
      "r505",
      "r519"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 2.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",
        "verboseLabel": "Unrealized holding (losses) gains, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax": {
     "auth_ref": [
      "r42"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 2.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 (losses) gains, tax (expense) or benefit",
        "verboseLabel": "Unrealized holding losses, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax": {
     "auth_ref": [
      "r41",
      "r45"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 1.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 losses realized in net income",
        "negatedTerseLabel": "Reclassification adjustment for (losses) income realized in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax": {
     "auth_ref": [
      "r41",
      "r45",
      "r506"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 3.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 (losses) income recognized in net income, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax": {
     "auth_ref": [
      "r42"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 3.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 (losses) income recognized in net income, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r48",
      "r51",
      "r53",
      "r54",
      "r56",
      "r60",
      "r309",
      "r566",
      "r571",
      "r572",
      "r663",
      "r699"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 1.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",
        "negatedTotalLabel": "Other comprehensive income (loss)",
        "terseLabel": "Other comprehensive income (loss)",
        "totalLabel": "Other comprehensive income (loss) income",
        "verboseLabel": "Other comprehensive loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "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 (loss), net of tax:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax": {
     "auth_ref": [
      "r39",
      "r41",
      "r366",
      "r395"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 4.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, Defined Benefit Plan, after Reclassification Adjustment, before Tax",
        "negatedLabel": "Net change in retirement liability, before tax amount",
        "totalLabel": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, before Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax": {
     "auth_ref": [
      "r39",
      "r41"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      },
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome": {
       "order": 3.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, Defined Benefit Plan, after Reclassification Adjustment, after Tax",
        "negatedLabel": "Change in retirement liabilities",
        "totalLabel": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, after Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax": {
     "auth_ref": [
      "r39",
      "r42",
      "r481"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 4.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, Defined Benefit Plan, after Reclassification Adjustment, Tax",
        "negatedLabel": "Net change in retirement liability, tax (expense) or benefit",
        "totalLabel": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax": {
     "auth_ref": [
      "r41",
      "r45",
      "r46",
      "r217"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 1.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 AOCI for Sale of Securities, before Tax",
        "negatedLabel": "Reclassification adjustment for (losses) gains realized in net income, before tax amount",
        "totalLabel": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, before Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r42",
      "r217"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 1.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 AOCI for Sale of Securities, Tax",
        "negatedLabel": "Reclassification adjustment for (losses) gains realized in net income, tax (expense) or benefit",
        "totalLabel": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossTax": {
     "auth_ref": [
      "r42",
      "r53",
      "r60",
      "r445",
      "r465",
      "r467",
      "r566",
      "r569",
      "r572",
      "r663",
      "r699"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "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 (loss) income, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r37",
      "r41",
      "r217"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 0.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": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment and Tax",
        "terseLabel": "Unrealized holding (losses) gains, before tax amount",
        "verboseLabel": "Unrealized holding losses, before tax amount"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r38",
      "r42"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails": {
       "order": 0.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": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, Tax",
        "terseLabel": "Unrealized holding (losses) gains,tax (expense) or benefit",
        "verboseLabel": "Unrealized holding losses, tax (expense) or benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherContractMember": {
     "auth_ref": [
      "r32",
      "r347",
      "r511"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureDerivativeAndHedgingActivitiesSummaryOfDerivativeFinancialInstrumentsNotDesignatedAsHedgingInstrumentsOnTheConsolidatedStatements"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r657"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 3.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",
        "totalLabel": "Other Liabilities, Total"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r497",
      "r518"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoninterestExpense": {
     "auth_ref": [
      "r673"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 8.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PassMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r181",
      "r182",
      "r244",
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of aging analysis for financing receivable.",
        "label": "Financing Receivable, Past Due [Table Text Block]",
        "terseLabel": "Schedule of Loans Receivable Disaggregated by Past Due Status"
       }
      }
     },
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PaymentsForProceedsFromFederalHomeLoanBankStock": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 11.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": "(Purchase) Redemption of FHLB of Boston stock",
        "totalLabel": "Payments for (Proceeds from) Federal Home Loan Bank Stock, Total"
       }
      }
     },
     "localname": "PaymentsForProceedsFromFederalHomeLoanBankStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedLabel": "Cash dividends paid on common stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r70",
      "r72",
      "r196"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 5.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 Debt Securities, Available-for-sale",
        "negatedLabel": "Purchase of securities available for sale"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireHeldToMaturitySecurities": {
     "auth_ref": [
      "r72",
      "r196"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 10.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireLoansHeldForInvestment": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 0.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r73"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 12.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",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r346",
      "r348",
      "r354",
      "r372",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r395",
      "r397",
      "r398",
      "r399",
      "r419"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for retirement benefits.",
        "label": "Retirement Benefits [Text Block]",
        "terseLabel": "Pension and Retirement Plans"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "auth_ref": [
      "r321",
      "r323",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r399",
      "r400",
      "r414",
      "r415",
      "r416",
      "r417"
     ],
     "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 Plan [Member]",
        "terseLabel": "Pension Plan"
       }
      }
     },
     "localname": "PensionPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PerformingFinancingReceivableMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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 Financial Instruments [Member]",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "PerformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r423",
      "r429"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r548"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]",
        "terseLabel": "Fair Value Disclosure Item Amounts [Default]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromCollectionOfLoansReceivable": {
     "auth_ref": [
      "r71"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r70",
      "r71",
      "r196"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 4.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 Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from calls/maturities of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r71",
      "r196"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 9.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 2.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",
        "totalLabel": "Proceeds from (Repayments of) Debt, Total"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "auth_ref": [],
     "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",
        "totalLabel": "Proceeds from Sale and Maturity of Marketable Securities, Total",
        "verboseLabel": "Net proceeds from securities sold"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfessionalFees": {
     "auth_ref": [
      "r724",
      "r725"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 3.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r6",
      "r47",
      "r50",
      "r55",
      "r76",
      "r89",
      "r100",
      "r111",
      "r112",
      "r152",
      "r154",
      "r157",
      "r160",
      "r162",
      "r223",
      "r279",
      "r280",
      "r281",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r481",
      "r484",
      "r485",
      "r489",
      "r490",
      "r534",
      "r552",
      "r680"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 0.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": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net income",
        "totalLabel": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r10",
      "r11",
      "r271",
      "r601",
      "r686",
      "r697"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 6.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",
        "periodEndLabel": "Property, Plant and Equipment, Net, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Net, Beginning Balance",
        "terseLabel": "Banking premises and equipment, net",
        "totalLabel": "Property, Plant and Equipment, Net, Total"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "auth_ref": [
      "r82",
      "r169",
      "r668"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 1.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": "Release of credit losses - unfunded commitments",
        "totalLabel": "Provision for Loan and Lease Losses, Total",
        "verboseLabel": "Release of credit losses"
       }
      }
     },
     "localname": "ProvisionForLoanAndLeaseLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanLossesExpensed": {
     "auth_ref": [
      "r239",
      "r660"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of credit loss expense (reversal of expense) for financing receivable.",
        "label": "Financing Receivable, Credit Loss, Expense (Reversal)",
        "terseLabel": "Provision for (release of) credit losses - loan portfolio"
       }
      }
     },
     "localname": "ProvisionForLoanLossesExpensed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForOtherCreditLosses": {
     "auth_ref": [
      "r82",
      "r660"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 1.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": "Release of credit losses"
       }
      }
     },
     "localname": "ProvisionForOtherCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_QualifiedPlanMember": {
     "auth_ref": [
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r381",
      "r382",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-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 Loss [Line Items]"
       }
      }
     },
     "localname": "ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis": {
     "auth_ref": [
      "r55"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain": {
     "auth_ref": [
      "r55"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r55"
     ],
     "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 (Loss)"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable": {
     "auth_ref": [
      "r55"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossSummaryOfReclassificationsOutOfAccumulatedOtherComprehensiveIncomeLossAociAoclDetails"
     ],
     "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 (Loss) (\"AOCI\") (\"AOCL\")"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "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": "Cash and Cash Equivalents [Domain]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r133"
     ],
     "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",
        "verboseLabel": "Restricted Stock"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 (RSUs) [Member]",
        "terseLabel": "RSUs",
        "verboseLabel": "Restricted Stock Units"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r15",
      "r310",
      "r438",
      "r601",
      "r695",
      "r716",
      "r721"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 2.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)",
        "periodEndLabel": "Retained Earnings (Accumulated Deficit), Ending Balance",
        "periodStartLabel": "Retained Earnings (Accumulated Deficit), Beginning Balance",
        "terseLabel": "Retained earnings",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r2",
      "r95",
      "r96",
      "r97",
      "r101",
      "r110",
      "r112",
      "r231",
      "r434",
      "r435",
      "r436",
      "r456",
      "r457",
      "r532",
      "r712",
      "r714"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanNameAxis": {
     "auth_ref": [
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r381",
      "r382",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r418"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanNameDomain": {
     "auth_ref": [
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r381",
      "r382",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r418"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTaxStatusAxis": {
     "auth_ref": [
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r381",
      "r382",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTaxStatusDomain": {
     "auth_ref": [
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r381",
      "r382",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "auth_ref": [
      "r321",
      "r322",
      "r323",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r414",
      "r415",
      "r416",
      "r417"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "auth_ref": [
      "r321",
      "r322",
      "r323",
      "r325",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337",
      "r338",
      "r339",
      "r340",
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r371",
      "r373",
      "r376",
      "r380",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r414",
      "r415",
      "r416",
      "r417"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r148",
      "r149",
      "r153",
      "r158",
      "r159",
      "r163",
      "r164",
      "r166",
      "r313",
      "r314",
      "r640"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome": {
       "order": 0.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",
        "totalLabel": "Revenue from Contract with Customer, Excluding Assessed Tax, Total"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "auth_ref": [
      "r23"
     ],
     "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 [Table Text Block]",
        "terseLabel": "Loans Outstanding by Category"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r471",
      "r472"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r506"
     ],
     "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 and AOCL as a Result of Cash Flow Hedge Accounting"
       }
      }
     },
     "localname": "ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCompensationCostForShareBasedPaymentArrangementsAllocationOfShareBasedCompensationCostsByPlanTableTextBlock": {
     "auth_ref": [
      "r427"
     ],
     "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": "Share-based Payment Arrangement, Cost 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTable": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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 [Table Text Block]",
        "terseLabel": "Schedule of Minimum Capital Requirements Considered Well Capitalized by FRB and FDIC"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r453"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r35"
     ],
     "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": "Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Summary of Accumulated Other Comprehensive Income (Loss) (\"AOCI\") (\"AOCL\")"
       }
      }
     },
     "localname": "ScheduleOfComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureOtherComprehensiveIncomeLossTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "auth_ref": [
      "r379",
      "r380",
      "r383",
      "r384",
      "r395"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r504"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Summary of Fair Values of Derivative Instruments in the Company's Consolidated Balance Sheets"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r132"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r536",
      "r537"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable": {
     "auth_ref": [
      "r549",
      "r550"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTextBlock": {
     "auth_ref": [
      "r549",
      "r550"
     ],
     "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 [Table 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable": {
     "auth_ref": [
      "r243",
      "r776"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about allowance for credit loss on financing receivable.",
        "label": "Financing Receivable, Allowance for Credit Loss [Table]",
        "terseLabel": "Schedule Of Financing Receivable Allowance For Credit Losses [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableAllowanceForCreditLossesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesScheduleOfLoansReceivableDisaggregatedByPastDueStatusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable": {
     "auth_ref": [
      "r249",
      "r257"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about credit quality indicator for financing receivable.",
        "label": "Financing Receivable, Credit Quality Indicator [Table]",
        "terseLabel": "Schedule Of Financing Receivable Recorded Investment Credit Quality Indicator [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable": {
     "auth_ref": [
      "r176",
      "r177"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about financing receivable modified as troubled debt restructuring.",
        "label": "Financing Receivable, Troubled Debt Restructuring [Table]",
        "terseLabel": "Schedule Of Financing Receivable Troubled Debt Restructurings [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesPastDueTable": {
     "auth_ref": [
      "r244",
      "r258"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about aging analysis for financing receivable.",
        "label": "Financing Receivable, Past Due [Table]",
        "terseLabel": "Schedule Of Financing Receivables Past Due [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesPastDueTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesNonPerformingLoansDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r358"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "auth_ref": [
      "r507",
      "r509"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative instrument not designated or qualifying as hedging instrument.",
        "label": "Derivatives Not Designated as Hedging Instruments [Table Text Block]",
        "terseLabel": "Summary of Derivative Financial Instruments Not Designated as Hedging Instruments on the Consolidated Statements of Income"
       }
      }
     },
     "localname": "ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r423",
      "r429"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "auth_ref": [
      "r621",
      "r622",
      "r623",
      "r624"
     ],
     "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",
        "periodEndLabel": "Servicing Asset at Fair Value, Amount, Ending Balance",
        "periodStartLabel": "Servicing Asset at Fair Value, Amount, Beginning Balance",
        "verboseLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCarryingValuesAndEstimatedFairValuesOfFinancialInstrumentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows": {
       "order": 6.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 Payment Arrangement, Noncash Expense",
        "terseLabel": "Share-based compensation and other share-based activity",
        "totalLabel": "Share-based Payment Arrangement, Noncash Expense, Total"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement, Noncash Expense [Abstract]"
       }
      }
     },
     "localname": "ShareBasedCompensationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1": {
     "auth_ref": [
      "r424"
     ],
     "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 Period",
        "terseLabel": "Performance-based restricted stock units performance period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r424"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Options time-vest period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r426"
     ],
     "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",
        "verboseLabel": "Restricted stock units granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r426"
     ],
     "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",
        "verboseLabel": "Restricted stock units granted grant date fair value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod": {
     "auth_ref": [
      "r429"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Shares Issued in Period",
        "terseLabel": "Total shares issued under this plan"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r421",
      "r425"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfSharesIssuedAndFairValueOfRsasAndRsusDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SpecialMentionMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansReceivableDisaggregatedByCreditQualityIndicatorDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "auth_ref": [
      "r275",
      "r277",
      "r480",
      "r723"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r2",
      "r22",
      "r53",
      "r54",
      "r55",
      "r95",
      "r96",
      "r97",
      "r101",
      "r110",
      "r112",
      "r139",
      "r231",
      "r309",
      "r310",
      "r434",
      "r435",
      "r436",
      "r456",
      "r457",
      "r532",
      "r566",
      "r567",
      "r568",
      "r569",
      "r570",
      "r572",
      "r712",
      "r713",
      "r714",
      "r782"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Comprehensive Income [Abstract]"
       }
      }
     },
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r95",
      "r96",
      "r97",
      "r139",
      "r640"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r13",
      "r17",
      "r18",
      "r89",
      "r183",
      "r223",
      "r552",
      "r601"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total shareholders\u2019 equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders\u2019 Equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r88",
      "r295",
      "r297",
      "r298",
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r308",
      "r310",
      "r312"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "auth_ref": [
      "r311"
     ],
     "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 Ratio",
        "terseLabel": "Business combination, share conversion ratio"
       }
      }
     },
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureMergersAdditionalInformationDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_SubleaseIncome": {
     "auth_ref": [
      "r585",
      "r591"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 2.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r602",
      "r604"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubstandardMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfCashFlows"
     ],
     "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 [Member]",
        "terseLabel": "Supplemental Retirement Plan"
       }
      }
     },
     "localname": "SupplementalEmployeeRetirementPlanDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosurePensionAndRetirementPlansComponentsOfNetPeriodicBenefitCostCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TierOneLeverageCapital": {
     "auth_ref": [
      "r690"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 leverage capital as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital, Actual",
        "terseLabel": "Tier I capital (to average assets), Actual, Amount"
       }
      }
     },
     "localname": "TierOneLeverageCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of minimum Tier 1 leverage capital required for capital adequacy as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredForCapitalAdequacyToAverageAssets": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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": "Banking Regulation, Tier One Leverage Capital Ratio, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Tier One Leverage Capital, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneLeverageCapitalRequiredToBeWellCapitalizedToAverageAssets": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Tier One Leverage Capital Ratio, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneLeverageCapitalToAverageAssets": {
     "auth_ref": [
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 capital to average assets as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Leverage Capital Ratio, Actual",
        "verboseLabel": "Tier I capital (to average assets), Actual, Ratio"
       }
      }
     },
     "localname": "TierOneLeverageCapitalToAverageAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapital": {
     "auth_ref": [
      "r690"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Tier 1 risk-based capital as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital, Actual",
        "terseLabel": "Tier I capital (to risk-weighted assets), Actual, Amount"
       }
      }
     },
     "localname": "TierOneRiskBasedCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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": "Banking Regulation, Tier One Risk-Based Capital, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredForCapitalAdequacyToRiskWeightedAssets": {
     "auth_ref": [
      "r690",
      "r691"
     ],
     "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": "Banking Regulation, Tier One Risk-Based Capital Ratio, Capital Adequacy, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalized": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Tier One Risk-Based Capital, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalRequiredToBeWellCapitalizedToRiskWeightedAssets": {
     "auth_ref": [
      "r690"
     ],
     "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": "Banking Regulation, Tier One Risk-Based Capital Ratio, Well Capitalized, Minimum",
        "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TierOneRiskBasedCapitalToRiskWeightedAssets": {
     "auth_ref": [
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of Tier 1 risk-based capital to risk-weighted assets as defined by regulatory framework.",
        "label": "Banking Regulation, Tier One Risk-Based Capital Ratio, Actual",
        "verboseLabel": "Tier I capital (to risk-weighted assets), Actual, Ratio"
       }
      }
     },
     "localname": "TierOneRiskBasedCapitalToRiskWeightedAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureShareholdersEquityMinimumCapitalRequirementsWereConsideredWellCapitalizedByFRBAndFDICDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_TimeDeposits": {
     "auth_ref": [
      "r655",
      "r688"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets": {
       "order": 4.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",
        "totalLabel": "Time Deposits, Total"
       }
      }
     },
     "localname": "TimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r208",
      "r212",
      "r219",
      "r220",
      "r221",
      "r292",
      "r307",
      "r522",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r619",
      "r620",
      "r624",
      "r625",
      "r626",
      "r627",
      "r628",
      "r629",
      "r630",
      "r631",
      "r632",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r762",
      "r763",
      "r764",
      "r765",
      "r766",
      "r767",
      "r768"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesAdditionalInformationDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureDerivativeAndHedgingActivitiesSummaryOfFairValuesOfDerivativeInstrumentsInCompanySConsolidatedBalanceSheetsDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r100",
      "r101",
      "r102",
      "r104",
      "r113",
      "r188",
      "r189",
      "r228",
      "r229",
      "r230",
      "r231",
      "r234",
      "r235",
      "r278",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r435",
      "r436",
      "r438",
      "r454",
      "r455",
      "r456",
      "r457",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r531",
      "r532",
      "r533",
      "r534",
      "r553",
      "r554",
      "r556",
      "r557",
      "r558",
      "r559",
      "r563",
      "r564",
      "r593",
      "r641",
      "r642",
      "r643",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716",
      "r717",
      "r718",
      "r719",
      "r720",
      "r721",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Accounting Standards Update [Domain]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember": {
     "auth_ref": [
      "r347",
      "r681"
     ],
     "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": "US 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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFairValueMeasurementsSummaryOfCertainAssetsAndLiabilitiesReportedAtFairValueOnRecurringBasisDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesGrossUnrealizedLossesOfAggregatedByInvestmentCategoryAndLengthOfTimeThatIndividualSecuritiesHaveBeenInContinuousLossPositionDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndFairValueOfDebtSecuritiesAggregatedByEarlierOfGuaranteedCallDateOrContractualMaturityDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCarryingAmountsOfSecuritiesAndTheirApproximateFairValuesDetails",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureInvestmentSecuritiesSummaryOfCreditRatingOfDebtSecuritiesPortfolioDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums": {
     "auth_ref": [
      "r186"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails": {
       "order": 1.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",
        "totalLabel": "Unamortized Loan Commitment and Origination Fees and Unamortized Discounts or Premiums, Total"
       }
      }
     },
     "localname": "UnamortizedLoanCommitmentAndOriginationFeesAndUnamortizedDiscountsOrPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesLoansOutstandingByCategoryDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UncollateralizedMember": {
     "auth_ref": [
      "r255"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLoansAndAllowanceForCreditLossesSummaryOfChangesInAllowanceForCreditLossesDisaggregatedByLoanCategoryDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic": {
     "auth_ref": [
      "r126",
      "r129",
      "r130"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 1.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",
        "totalLabel": "Undistributed Earnings (Loss) Allocated to Participating Securities, Basic, Total"
       }
      }
     },
     "localname": "UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted": {
     "auth_ref": [
      "r124",
      "r126",
      "r129",
      "r130"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail2": {
       "order": 0.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",
        "totalLabel": "Undistributed Earnings (Loss) Allocated to Participating Securities, Diluted, Total"
       }
      }
     },
     "localname": "UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnlikelyToBeCollectedFinancingReceivableMember": {
     "auth_ref": [
      "r174",
      "r249"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureFinancialInstrumentsWithOffBalanceSheetRiskSummaryOfOffBalanceSheetFinancialInstrumentsWithContractualAmountsIncludePresentCreditRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r140",
      "r141",
      "r142",
      "r143",
      "r144",
      "r145",
      "r146"
     ],
     "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, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VariableLeaseCost": {
     "auth_ref": [
      "r584",
      "r591"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails": {
       "order": 1.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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureLeasesSummaryOfComponentsOfOperatingLeaseCostAndOtherRelatedInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "auth_ref": [
      "r132"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 1.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",
        "totalLabel": "Weighted Average Number Diluted Shares Outstanding Adjustment, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r118",
      "r132"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/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 Shares Outstanding, Diluted",
        "terseLabel": "Weighted average number of shares outstanding, diluted",
        "totalLabel": "Weighted average diluted common shares outstanding",
        "verboseLabel": "Weighted average shares outstanding, diluted"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
        "terseLabel": "Denominator:"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r116",
      "r132"
     ],
     "calculation": {
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail": {
       "order": 0.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",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "verboseLabel": "Weighted average shares outstanding, basic"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail",
      "http://www.cambridgetrust.com/20220630/taxonomy/role/StatementUnauditedConsolidatedStatementsOfIncome"
     ],
     "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/2021-01-31",
     "presentation": [
      "http://www.cambridgetrust.com/20220630/taxonomy/role/Role_DisclosureEarningsPerShareSummaryOfReconciliationBetweenBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    }
   },
   "unitCount": 5
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r10": {
   "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"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r11": {
   "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"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794"
  },
  "r113": {
   "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=122038215&loc=d3e31137-122693"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=122038215&loc=SL108384541-122693"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1448-109256"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1377-109256"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1505-109256"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1252-109256"
  },
  "r12": {
   "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"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e2740-109256"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "65",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e2793-109256"
  },
  "r13": {
   "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"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "66",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e2814-109256"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1337-109256"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257"
  },
  "r135": {
   "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"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e3842-109258"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e4984-109258"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054"
  },
  "r14": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "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"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "http://asc.fasb.org/topic&trid=2134479"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r15": {
   "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"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8924-108599"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r16": {
   "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"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9031-108599"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r17": {
   "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"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(4)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953659-111524"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5066-111524"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953676-111524"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953682-111524"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524"
  },
  "r18": {
   "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"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5111-111524"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953401-111524"
  },
  "r183": {
   "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=122038336&loc=d3e74512-122707"
  },
  "r184": {
   "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=122038336&loc=d3e74567-122707"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196772"
  },
  "r186": {
   "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"
  },
  "r187": {
   "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"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r19": {
   "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"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196816"
  },
  "r193": {
   "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"
  },
  "r194": {
   "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"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=124260329&loc=d3e26853-111562"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL6283291-111563"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r20": {
   "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"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-111563"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r21": {
   "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"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27337-111563"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r22": {
   "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"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL82887624-210437"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL120254519-210437"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r23": {
   "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"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r24": {
   "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"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447"
  },
  "r25": {
   "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"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919232-210447"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921830-210448"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921833-210448"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)(4)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921835-210448"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82921842-210448"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "79",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82922352-210448"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82922355-210448"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454"
  },
  "r26": {
   "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"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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"
  },
  "r27": {
   "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"
  },
  "r270": {
   "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"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r274": {
   "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"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=124440162&loc=d3e12021-110248"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=124440162&loc=d3e12069-110248"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=123408193&loc=d3e12803-110250"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S65",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359872&loc=SL124427846-239511"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r28": {
   "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"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r29": {
   "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"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r30": {
   "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"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496180-112644"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226038-175313"
  },
  "r310": {
   "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"
  },
  "r311": {
   "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"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130543-203045"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130545-203045"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r321": {
   "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"
  },
  "r322": {
   "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"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123453770&loc=d3e1703-114919"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123453770&loc=SL108413299-114919"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(10)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r33": {
   "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"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(9)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r34": {
   "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"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r349": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e526-108580"
  },
  "r350": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r351": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r352": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r353": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r354": {
   "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=123447040&loc=d3e1928-114920"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(l)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(o)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(p)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(q)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2410-114920"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2439-114920"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i-k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2919-114920"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123450688&loc=d3e4587-114921"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "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"
  },
  "r406": {
   "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"
  },
  "r407": {
   "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"
  },
  "r408": {
   "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"
  },
  "r409": {
   "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"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e637-108580"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e640-108580"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=123468992&loc=d3e4534-113899"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e681-108580"
  },
  "r430": {
   "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"
  },
  "r431": {
   "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"
  },
  "r432": {
   "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"
  },
  "r433": {
   "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"
  },
  "r434": {
   "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"
  },
  "r435": {
   "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"
  },
  "r436": {
   "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"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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"
  },
  "r439": {
   "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=122041274&loc=d3e301413-122809"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669686-108580"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122142933&loc=d3e11149-113907"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122142933&loc=d3e11178-113907"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e31917-109318"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e689-108580"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL34724391-108580"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r461": {
   "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=122134291&loc=d3e330036-122817"
  },
  "r462": {
   "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=122134291&loc=d3e330036-122817"
  },
  "r463": {
   "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=122134291&loc=d3e330036-122817"
  },
  "r464": {
   "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=122134291&loc=d3e330215-122817"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123586238&loc=d3e39076-109324"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r471": {
   "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"
  },
  "r472": {
   "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"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=123413009&loc=d3e4845-128472"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "http://asc.fasb.org/topic&trid=2303972"
  },
  "r479": {
   "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"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r480": {
   "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"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569616-111683"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r489": {
   "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"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959"
  },
  "r495": {
   "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=125515794&loc=d3e41620-113959"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL109998890-113959"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(6)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624181-113959"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624258-113959"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5708775-113959"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41678-113959"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41678-113959"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123421605&loc=SL5629052-113961"
  },
  "r519": {
   "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"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e557-108580"
  },
  "r520": {
   "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"
  },
  "r521": {
   "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"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123477628&loc=d3e90205-114008"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(3)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL6742756-110258"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL6742756-110258"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594809&loc=d3e13220-108610"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13433-108611"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13467-108611"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13476-108611"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL120254526-165497"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL120254526-165497"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL120254526-165497"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124507222&loc=d3e1436-108581"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL122642865-165497"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL122642865-165497"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906"
  },
  "r566": {
   "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"
  },
  "r567": {
   "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"
  },
  "r568": {
   "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"
  },
  "r569": {
   "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"
  },
  "r57": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r570": {
   "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"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "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"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=123386454&loc=d3e45280-112737"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(4)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=123392090&loc=d3e45377-112738"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL120154346-209984"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r58": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918673-209980"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r59": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918701-209980"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/subtopic&trid=77888251"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "http://asc.fasb.org/extlink&oid=122150657&loc=SL122150809-237846"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "848",
   "URI": "http://asc.fasb.org/extlink&oid=122150657&loc=SL122150809-237846"
  },
  "r595": {
   "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"
  },
  "r596": {
   "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"
  },
  "r597": {
   "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"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124437977&loc=d3e55792-112764"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r6": {
   "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"
  },
  "r60": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766"
  },
  "r602": {
   "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"
  },
  "r603": {
   "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"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r605": {
   "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"
  },
  "r606": {
   "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"
  },
  "r607": {
   "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"
  },
  "r608": {
   "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"
  },
  "r609": {
   "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"
  },
  "r61": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r610": {
   "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"
  },
  "r611": {
   "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"
  },
  "r612": {
   "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"
  },
  "r613": {
   "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"
  },
  "r614": {
   "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"
  },
  "r615": {
   "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"
  },
  "r616": {
   "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"
  },
  "r617": {
   "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"
  },
  "r618": {
   "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"
  },
  "r619": {
   "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"
  },
  "r62": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r620": {
   "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"
  },
  "r621": {
   "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"
  },
  "r622": {
   "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"
  },
  "r623": {
   "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"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r627": {
   "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=125521744&loc=d3e122625-111746"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r63": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=123353855&loc=SL119991595-234733"
  },
  "r64": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=123384075&loc=d3e41242-110953"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r649": {
   "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"
  },
  "r65": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r650": {
   "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"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "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"
  },
  "r655": {
   "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"
  },
  "r656": {
   "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"
  },
  "r657": {
   "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"
  },
  "r658": {
   "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"
  },
  "r659": {
   "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"
  },
  "r66": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r660": {
   "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"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "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"
  },
  "r664": {
   "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"
  },
  "r665": {
   "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"
  },
  "r666": {
   "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"
  },
  "r667": {
   "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"
  },
  "r668": {
   "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"
  },
  "r669": {
   "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"
  },
  "r67": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r670": {
   "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"
  },
  "r671": {
   "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"
  },
  "r672": {
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123398031&loc=d3e60009-112784"
  },
  "r68": {
   "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=123367319&loc=SL114868664-224227"
  },
  "r680": {
   "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"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=d3e62557-112803"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=d3e62586-112803"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=SL120269850-112803"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "325",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599499&loc=d3e63345-112809"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "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"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "http://asc.fasb.org/topic&trid=2134417"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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"
  },
  "r692": {
   "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"
  },
  "r693": {
   "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"
  },
  "r694": {
   "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"
  },
  "r695": {
   "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"
  },
  "r696": {
   "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"
  },
  "r697": {
   "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"
  },
  "r698": {
   "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"
  },
  "r699": {
   "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"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3151-108585"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "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"
  },
  "r704": {
   "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"
  },
  "r705": {
   "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"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117783719-158441"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117783719-158441"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117819544-158441"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r716": {
   "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=124501264&loc=SL117420844-207641"
  },
  "r717": {
   "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=124501264&loc=SL117420844-207641"
  },
  "r718": {
   "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=124501264&loc=SL117420844-207641"
  },
  "r719": {
   "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=124501264&loc=SL117420844-207641"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124508989&loc=d3e19393-158473"
  },
  "r723": {
   "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"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(k)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=124433917&loc=SL114874205-224268"
  },
  "r725": {
   "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"
  },
  "r726": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r727": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r728": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r729": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r730": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r731": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r732": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r733": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r734": {
   "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=122147990&loc=d3e611197-123010"
  },
  "r735": {
   "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=122147990&loc=SL120429264-123010"
  },
  "r736": {
   "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=122147990&loc=SL120429264-123010"
  },
  "r737": {
   "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=122147990&loc=d3e611379-123010"
  },
  "r738": {
   "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=122147990&loc=d3e611379-123010"
  },
  "r739": {
   "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=122147990&loc=d3e611379-123010"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r740": {
   "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=122147990&loc=d3e611379-123010"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=124265262&loc=d3e48678-111004"
  },
  "r743": {
   "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"
  },
  "r744": {
   "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"
  },
  "r745": {
   "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"
  },
  "r746": {
   "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"
  },
  "r747": {
   "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"
  },
  "r748": {
   "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"
  },
  "r749": {
   "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"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3367-108585"
  },
  "r750": {
   "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"
  },
  "r751": {
   "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"
  },
  "r752": {
   "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"
  },
  "r753": {
   "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"
  },
  "r754": {
   "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"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "http://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "http://asc.fasb.org/extlink&oid=123360121&loc=d3e27327-108691"
  },
  "r757": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r758": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r759": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3000-108585"
  },
  "r760": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a"
  },
  "r761": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r762": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402"
  },
  "r763": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)"
  },
  "r764": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)"
  },
  "r765": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)"
  },
  "r766": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)"
  },
  "r767": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)"
  },
  "r768": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)"
  },
  "r769": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1403"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3461-108585"
  },
  "r770": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1404"
  },
  "r771": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1404"
  },
  "r772": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(1)"
  },
  "r773": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(2)"
  },
  "r774": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(3)"
  },
  "r775": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1405",
   "Subparagraph": "(4)"
  },
  "r776": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1405"
  },
  "r777": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3521-108585"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "848"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3044-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4297-108586"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=SL98516268-108586"
  },
  "r88": {
   "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"
  },
  "r89": {
   "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"
  },
  "r9": {
   "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"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r92": {
   "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"
  },
  "r93": {
   "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"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  }
 },
 "version": "2.1"
}
