{
 "instance": {
  "saft-20211231x10k.htm": {
   "axisCustom": 0,
   "axisStandard": 26,
   "contextCount": 533,
   "dts": {
    "calculationLink": {
     "local": [
      "saft-20211231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "saft-20211231_def.xml"
     ]
    },
    "inline": {
     "local": [
      "saft-20211231x10k.htm"
     ]
    },
    "labelLink": {
     "local": [
      "saft-20211231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "saft-20211231_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "saft-20211231.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/arcrole/esma-arcrole-2018-11-21.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"
     ]
    }
   },
   "elementCount": 730,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2021-01-31": 8,
    "http://xbrl.sec.gov/dei/2021q4": 4,
    "total": 12
   },
   "keyCustom": 73,
   "keyStandard": 495,
   "memberCustom": 19,
   "memberStandard": 59,
   "nsprefix": "saft",
   "nsuri": "http://www.safetyinsurance.com/20211231",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "00090 - Document - Document and Entity Information",
     "role": "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10201 - Disclosure - Summary of Significant Accounting Policies",
     "role": "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10301 - Disclosure - Investments",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestments",
     "shortName": "Investments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10401 - Disclosure - Allowance for Expected Credit Losses",
     "role": "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLosses",
     "shortName": "Allowance for Expected Credit Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10501 - Disclosure - Equipment and Leasehold Improvements",
     "role": "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovements",
     "shortName": "Equipment and Leasehold Improvements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10601 - Disclosure - Employee Benefit Plan",
     "role": "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlan",
     "shortName": "Employee Benefit Plan",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10701 - Disclosure - Share-Based Compensation",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensation",
     "shortName": "Share-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10801 - Disclosure - Commitments and Contingencies",
     "role": "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10901 - Disclosure - Leases",
     "role": "http://www.safetyinsurance.com/role/DisclosureLeases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11001 - Disclosure - Debt",
     "role": "http://www.safetyinsurance.com/role/DisclosureDebt",
     "shortName": "Debt",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ReinsuranceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11101 - Disclosure - Reinsurance",
     "role": "http://www.safetyinsurance.com/role/DisclosureReinsurance",
     "shortName": "Reinsurance",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ReinsuranceTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00100 - Statement - Consolidated Balance Sheets",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "lang": null,
      "name": "saft:ShortTermInvestmentsOtherThanEquitySecuritiesFvNi",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11201 - Disclosure - Loss and Loss Adjustment Expense Reserves",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReserves",
     "shortName": "Loss and Loss Adjustment Expense Reserves",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11301 - Disclosure - Income Taxes",
     "role": "http://www.safetyinsurance.com/role/DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TreasuryStockTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11401 - Disclosure - Share Repurchase Program",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgram",
     "shortName": "Share Repurchase Program",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TreasuryStockTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StatutoryAccountingPracticesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11501 - Disclosure - Statutory Net Income and Surplus",
     "role": "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplus",
     "shortName": "Statutory Net Income and Surplus",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StatutoryAccountingPracticesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11601 - Disclosure - Fair Value of Financial Instruments",
     "role": "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstruments",
     "shortName": "Fair Value of Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11701 - Disclosure - Subsequent Events",
     "role": "http://www.safetyinsurance.com/role/DisclosureSubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11801 - Disclosure - Schedule I - Summary of Investments - Other than Investments in Related Parties",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties",
     "shortName": "Schedule I - Summary of Investments - Other than Investments in Related Parties",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "11901 - Disclosure - Schedule II - Condensed Financial Information of the Registrant",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrant",
     "shortName": "Schedule II - Condensed Financial Information of the Registrant",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "12001 - Disclosure - Schedule III - Supplementary Insurance Information",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformation",
     "shortName": "Schedule III - Supplementary Insurance Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "12101 - Disclosure - Schedule IV - Reinsurance",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsurance",
     "shortName": "Schedule IV - Reinsurance",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00105 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Divide_USD_shares_y8EY0axMLEW2gvkf7rl6Jw",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "12201 - Disclosure - Schedule V - Valuation and Qualifying Accounts",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccounts",
     "shortName": "Schedule V - Valuation and Qualifying Accounts",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfSupplementalInformationForPropertyCasualtyInsuranceUnderwritersTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "12301 - Disclosure - Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperations",
     "shortName": "Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfSupplementalInformationForPropertyCasualtyInsuranceUnderwritersTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "20202 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "role": "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30203 - Disclosure - Summary of Significant Accounting Policies (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables",
     "shortName": "Summary of Significant Accounting Policies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketableSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30303 - Disclosure - Investments (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables",
     "shortName": "Investments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MarketableSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountsReceivableAllowanceForCreditLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30403 - Disclosure - Allowance for Expected Credit Losses (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesTables",
     "shortName": "Allowance for Expected Credit Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountsReceivableAllowanceForCreditLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30503 - Disclosure - Equipment and Leasehold Improvements (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsTables",
     "shortName": "Equipment and Leasehold Improvements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30703 - Disclosure - Share-Based Compensation (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationTables",
     "shortName": "Share-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "30903 - Disclosure - Leases (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:ReinsuranceTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "31103 - Disclosure - Reinsurance (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureReinsuranceTables",
     "shortName": "Reinsurance (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:ReinsuranceTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PremiumsEarnedNet",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00200 - Statement - Consolidated Statements of Operations",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations",
     "shortName": "Consolidated Statements of Operations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "lang": null,
      "name": "saft:EarningsFromPartnershipInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "31203 - Disclosure - Loss and Loss Adjustment Expense Reserves (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables",
     "shortName": "Loss and Loss Adjustment Expense Reserves (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "31303 - Disclosure - Income Taxes (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "31603 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "role": "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTables",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "saft:PercentageOfPrivatePassengerAutoInsuranceToTotalDirectWrittenPremiums",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_pure_0mFGCCibdk67-t6WyhYfOQ",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40101 - Disclosure - Basis of Presentation (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureBasisOfPresentationDetails",
     "shortName": "Basis of Presentation (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "saft:PercentageOfPrivatePassengerAutoInsuranceToTotalDirectWrittenPremiums",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_pure_0mFGCCibdk67-t6WyhYfOQ",
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2020_To_12_31_2020_KGT3trWYLka6PUGI40Pp0Q",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:MaximumPeriodConsideredForApplicationOfEquityMethodAccountingBasedOnFinancialInformationProvidedByInvestee",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40201 - Disclosure - Summary of Significant Accounting Policies (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
     "shortName": "Summary of Significant Accounting Policies (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2020_To_12_31_2020_KGT3trWYLka6PUGI40Pp0Q",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:MaximumPeriodConsideredForApplicationOfEquityMethodAccountingBasedOnFinancialInformationProvidedByInvestee",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40301 - Disclosure - Investments (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
     "shortName": "Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:MarketableSecuritiesTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40302 - Disclosure - Investments Amortized Cost and Estimated Fair Value (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails",
     "shortName": "Investments Amortized Cost and Estimated Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleRealizedGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40303 - Disclosure - Investments Gross Realized Gains and Losses (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails",
     "shortName": "Investments Gross Realized Gains and Losses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:RealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleRealizedGain",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "saft:MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40304 - Disclosure - Investments Gross Unrealized Losses and Fair Value (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails",
     "shortName": "Investments Gross Unrealized Losses and Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "saft:MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40305 - Disclosure - Investments Allowance for Expected Credit Losses (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
     "shortName": "Investments Allowance for Expected Credit Losses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleAllowanceForCreditLossNotPreviouslyRecorded",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00300 - Statement - Consolidated Statements of Comprehensive Income",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome",
     "shortName": "Consolidated Statements of Comprehensive Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40306 - Disclosure - Investments Components of Net Investment Income (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails",
     "shortName": "Investments Components of Net Investment Income (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:InvestmentIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsReceivableExcludingAccruedInterestAfterAllowanceForCreditLossNoncurrent",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40401 - Disclosure - Allowance for Expected Credit Losses Balances of Premiums Receivable (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails",
     "shortName": "Allowance for Expected Credit Losses Balances of Premiums Receivable (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:AccountsReceivableAllowanceForCreditLossTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2019_c7dTNcjdEUy0uvp2hwNwuA",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AccountsReceivableExcludingAccruedInterestAfterAllowanceForCreditLossNoncurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:ReinsuranceRecoverablesAllowance",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ReinsuranceRecoverablesAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40402 - Disclosure - Allowance for Expected Credit Losses (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails",
     "shortName": "Allowance for Expected Credit Losses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:ReinsuranceRecoverablesAllowance",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ReinsuranceRecoverablesAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40501 - Disclosure - Equipment and Leasehold Improvements (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails",
     "shortName": "Equipment and Leasehold Improvements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:DefinedBenefitPlanMinimumAgeRequiredToBeEligibleForContribution",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40601 - Disclosure - Employee Benefit Plan (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails",
     "shortName": "Employee Benefit Plan (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:CompensationAndEmployeeBenefitPlansTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "saft:DefinedBenefitPlanMinimumAgeRequiredToBeEligibleForContribution",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_shares_EjHESPYEZUGNAtXfogkrKA",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40701 - Disclosure - Share-Based Compensation (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails",
     "shortName": "Share-Based Compensation (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_shares_EjHESPYEZUGNAtXfogkrKA",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40702 - Disclosure - Share-Based Compensation Restricted Stock Activity (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails",
     "shortName": "Share-Based Compensation Restricted Stock Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40801 - Disclosure - Commitments and Contingencies (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails",
     "shortName": "Commitments and Contingencies (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40901 - Disclosure - Leases (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLeasesDetails",
     "shortName": "Leases (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40902 - Disclosure - Leases - Components of lease (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails",
     "shortName": "Leases - Components of lease (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00305 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical",
     "shortName": "Consolidated Statements of Comprehensive Income (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "40903 - Disclosure - Leases - Maturities (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails",
     "shortName": "Leases - Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCredit",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41001 - Disclosure - Debt (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
     "shortName": "Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:FederalHomeLoanBankAdvancesMaturityPeriodFixedRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrepaidReinsurancePremiums",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41101 - Disclosure - Reinsurance (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails",
     "shortName": "Reinsurance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_us-gaap_CededCreditRiskAxis_saft_CommonwealthAutomobileReinsurersMember_us-gaap_ConcentrationRiskByBenchmarkAxis_us-gaap_ReinsuranceRecoverableMember_us-gaap_ConcentrationRiskByTypeAxis_us-gaap_ReinsurerConcentrationRiskMember_NqA0GDmkdUSElRJBLx4mAw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ReinsuranceRecoverablesOnPaidAndUnpaidLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "saft:ReinsuranceTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DirectPremiumsWritten",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41102 - Disclosure - Reinsurance - Written and Earned Premiums (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
     "shortName": "Reinsurance - Written and Earned Premiums (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "saft:ReinsuranceTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DirectPremiumsWritten",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LiabilityForClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41201 - Disclosure - Loss and Loss Adjustment Expense Reserves (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
     "shortName": "Loss and Loss Adjustment Expense Reserves (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
       "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ReinsuranceRecoverablesOnUnpaidLossesGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41202 - Disclosure - Loss and Loss Adjustment Expense Reserves - Incurred and paid claims development (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
     "shortName": "Loss and Loss Adjustment Expense Reserves - Incurred and paid claims development (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ShortdurationInsuranceContractsScheduleOfHistoricalClaimsDurationTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_srt_ProductOrServiceAxis_saft_PropertyAndCasualtyPrivatePassengerAutomobileInsuranceProductLineMember_DrCH3S0wr0S9RSxLnrTAYw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ShortdurationInsuranceContractsIncurredClaimsAndAllocatedClaimAdjustmentExpenseNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ShortdurationInsuranceContractsClaimsDevelopmentTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_srt_ProductOrServiceAxis_saft_PropertyAndCasualtyPrivatePassengerAutomobileInsuranceProductLineMember_DrCH3S0wr0S9RSxLnrTAYw",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShortdurationInsuranceContractsHistoricalClaimsDurationYearOne",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_pure_0mFGCCibdk67-t6WyhYfOQ",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41203 - Disclosure - Loss and Loss Adjustment Expense Reserves - Supplementary information about average historical claims (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails",
     "shortName": "Loss and Loss Adjustment Expense Reserves - Supplementary information about average historical claims (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ShortdurationInsuranceContractsClaimsDevelopmentTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_srt_ProductOrServiceAxis_saft_PropertyAndCasualtyPrivatePassengerAutomobileInsuranceProductLineMember_DrCH3S0wr0S9RSxLnrTAYw",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShortdurationInsuranceContractsHistoricalClaimsDurationYearOne",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_pure_0mFGCCibdk67-t6WyhYfOQ",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41204 - Disclosure - Loss and Loss Adjustment Expense Reserves - Disclosure of Incurred and Paid Claims Development to the Liability for Unpaid claims and Claim Adjustment Expenses (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
     "shortName": "Loss and Loss Adjustment Expense Reserves - Disclosure of Incurred and Paid Claims Development to the Liability for Unpaid claims and Claim Adjustment Expenses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndClaimAdjustmentExpenseAggregateReconcilingItems",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41301 - Disclosure - Income Taxes (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails",
     "shortName": "Income Taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41302 - Disclosure - Income Taxes - Sources of Difference and Tax Effects (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails",
     "shortName": "Income Taxes - Sources of Difference and Tax Effects (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2018_us-gaap_StatementEquityComponentsAxis_us-gaap_CommonStockMember_1N4-d3SdnE2LJAOx8W5FcA",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00400 - Statement - Consolidated Statements of Changes in Shareholders' Equity",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity",
     "shortName": "Consolidated Statements of Changes in Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2018_us-gaap_StatementEquityComponentsAxis_us-gaap_CommonStockMember_1N4-d3SdnE2LJAOx8W5FcA",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41303 - Disclosure - Income Taxes - Temporary Differences (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails",
     "shortName": "Income Taxes - Temporary Differences (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:TreasuryStockTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockRepurchaseProgramAuthorizedAmount1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41401 - Disclosure - Share Repurchase Program (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails",
     "shortName": "Share Repurchase Program (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:TreasuryStockTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockRepurchaseProgramAuthorizedAmount1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StatutoryAccountingPracticesStatutoryNetIncomeAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41501 - Disclosure - Statutory Net Income and Surplus (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails",
     "shortName": "Statutory Net Income and Surplus (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StatutoryAccountingPracticesStatutoryNetIncomeAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41601 - Disclosure - Fair Value of Financial Instruments Level 1 - 3 Inputs (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
     "shortName": "Fair Value of Financial Instruments Level 1 - 3 Inputs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:MarketableSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:FairValueAssetsLevel1ToLevel2TransfersAmount",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueAssetsLevel1ToLevel2TransfersAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41602 - Disclosure - Fair Value of Financial Instruments Transfers between Levels (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails",
     "shortName": "Fair Value of Financial Instruments Transfers between Levels (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:FairValueAssetsLevel1ToLevel2TransfersAmount",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueAssetsLevel1ToLevel2TransfersAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41801 - Disclosure - Schedule I - Summary of Investments - Other than Investments in Related Parties (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails",
     "shortName": "Schedule I - Summary of Investments - Other than Investments in Related Parties (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EquityMethodInvestments",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41901 - Disclosure - Schedule II - Condensed Financial Information of the Registrant (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
     "shortName": "Schedule II - Condensed Financial Information of the Registrant (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_srt_ConsolidatedEntitiesAxis_srt_ParentCompanyMember_QmTKN38oYkafpwCFp9l7Xw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:EquityMethodInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41902 - Disclosure - Schedule II - Condensed Financial Information of the Registrant Comprehensive Income (Detail)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
     "shortName": "Schedule II - Condensed Financial Information of the Registrant Comprehensive Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_srt_ConsolidatedEntitiesAxis_srt_ParentCompanyMember_rXbvR7-l2kyUe-KHXCsaSw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:BenefitsLossesAndExpenses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "41903 - Disclosure - Schedule II - Condensed Financial Information of the Registrant Cash Flow (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
     "shortName": "Schedule II - Condensed Financial Information of the Registrant Cash Flow (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_srt_ConsolidatedEntitiesAxis_srt_ParentCompanyMember_rXbvR7-l2kyUe-KHXCsaSw",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SupplementaryInsuranceInformationDeferredPolicyAcquisitionCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "42001 - Disclosure - Schedule III - Supplementary Insurance Information (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails",
     "shortName": "Schedule III - Supplementary Insurance Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_27zme7ywU0-Y474p36FVUg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SupplementaryInsuranceInformationDeferredPolicyAcquisitionCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "00500 - Statement - Consolidated Statements of Cash Flows",
     "role": "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows",
     "shortName": "Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "saft:ReinsuranceTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DirectPremiumsEarned",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "42101 - Disclosure - Schedule IV - Reinsurance (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails",
     "shortName": "Schedule IV - Reinsurance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_srt_ProductOrServiceAxis_us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember_9ife0J4pckmc4y_6pk9tVA",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DirectPremiumsEarned",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2020_IHg1mB-yC0W3ag5c9Dx_Wg",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "42201 - Disclosure - Schedule V - Valuation and Qualifying Accounts (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails",
     "shortName": "Schedule V - Valuation and Qualifying Accounts (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2018_BfFcWACTtkaSUMFudI4-og",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SupplementalInformationForPropertyCasualtyInsuranceUnderwritersEarnedPremiums",
      "reportCount": 1,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "42301 - Disclosure - Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations (Details)",
     "role": "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails",
     "shortName": "Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfSupplementalInformationForPropertyCasualtyInsuranceUnderwritersTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "As_Of_12_31_2021_srt_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersByAffiliationWithRegistrantAxis_srt_ConsolidatedPropertyAndCasualtyInsuranceEntityMember_4zkHorq6KEOueGOFzniw4w",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:SupplementalInformationForPropertyCasualtyInsuranceUnderwritersDeferredPolicyAcquisitionCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Standard_USD_NSIYLg5-HEWsuLxZ1fAcyg",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "10101 - Disclosure - Basis of Presentation",
     "role": "http://www.safetyinsurance.com/role/DisclosureBasisOfPresentation",
     "shortName": "Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "saft-20211231x10k.htm",
      "contextRef": "Duration_1_1_2021_To_12_31_2021_6rk3OTRgWUSkByd5bK9BMw",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 88,
   "tag": {
    "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"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_AuditorFirmId": {
     "auth_ref": [
      "r706",
      "r707",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PCAOB issued Audit Firm Identifier",
        "label": "Auditor Firm ID"
       }
      }
     },
     "localname": "AuditorFirmId",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "nonemptySequenceNumberItemType"
    },
    "dei_AuditorLocation": {
     "auth_ref": [
      "r706",
      "r707",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "localname": "AuditorLocation",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_AuditorName": {
     "auth_ref": [
      "r706",
      "r707",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "localname": "AuditorName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentAnnualReport": {
     "auth_ref": [
      "r706",
      "r707",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an annual report.",
        "label": "Document Annual Report"
       }
      }
     },
     "localname": "DocumentAnnualReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "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"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r704"
     ],
     "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"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r704"
     ],
     "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"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r718"
     ],
     "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"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityPublicFloat": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter.",
        "label": "Entity Public Float"
       }
      }
     },
     "localname": "EntityPublicFloat",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "monetaryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r704"
     ],
     "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"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r704"
     ],
     "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"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r704"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r704"
     ],
     "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"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_EntityVoluntaryFilers": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act.",
        "label": "Entity Voluntary Filers"
       }
      }
     },
     "localname": "EntityVoluntaryFilers",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "auth_ref": [
      "r733"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A.",
        "label": "Entity Well-known Seasoned Issuer"
       }
      }
     },
     "localname": "EntityWellKnownSeasonedIssuer",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_IcfrAuditorAttestationFlag": {
     "auth_ref": [
      "r706",
      "r707",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "localname": "IcfrAuditorAttestationFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r703"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r705"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/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"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "saft_AccountingPoliciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Policies [Line Items]",
        "label": "Accounting Policies [Line Items]"
       }
      }
     },
     "localname": "AccountingPoliciesLineItems",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "saft_AccountingPoliciesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Policies [Table]",
        "label": "Accounting Policies [Table]"
       }
      }
     },
     "localname": "AccountingPoliciesTable",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "saft_AccruedInvestmentIncomeReceivables": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount receivable for interest, dividends, rents, ancillary and other revenues earned but not yet received by the entity on its investments, not included in the normal course of business (as would be the case with receivables included in accounts receivable, net) and/or gross amount due.",
        "label": "Accrued Investment Income Receivables",
        "terseLabel": "Accrued investment income"
       }
      }
     },
     "localname": "AccruedInvestmentIncomeReceivables",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_AvailableForSaleSecuritiesDebtMaturitiesAfterTenThroughTwentyYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of available-for-sale debt securities maturing in the tenth fiscal year through the twentieth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Available For Sale Securities Debt Maturities After Ten Through Twenty Years Fair Value",
        "terseLabel": "Due after ten years through twenty years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenThroughTwentyYearsFairValue",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_AvailableForSaleSecuritiesDebtMaturitiesAfterTwentyYearsAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after adjustments of available-for-sale debt securities at cost, maturing after the twentieth fiscal year following the latest fiscal year. Adjustments include, but are not limited to, accretion, amortization, collection of cash, previous other-than-temporary impairments (OTTI) recognized in earnings less cumulative-effect adjustments, and fair value hedge accounting adjustments. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Available For Sale Securities Debt Maturities After Twenty Years Amortized Cost",
        "terseLabel": "Due after twenty years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTwentyYearsAmortizedCost",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_AvailableForSaleSecuritiesDebtMaturitiesAfterTwentyYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of available-for-sale debt securities maturing after the twentieth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Available For Sale Securities Debt Maturities After Twenty Years Fair Value",
        "terseLabel": "Due after twenty years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTwentyYearsFairValue",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_CarCommercialAutomobileProgramAndTaxiLimoProgramMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to CAR Commercial Automobile Program and the Taxi/Limo Program.",
        "label": "CAR Commercial Automobile Program and the Taxi/Limo Program"
       }
      }
     },
     "localname": "CarCommercialAutomobileProgramAndTaxiLimoProgramMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_CommercialAutomobilePhysicalDamageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product line consisting of insurance provided to policyholders on commercial automobiles, which covers automobile-related losses including, but not limited to, damage or theft.",
        "label": "Commercial Automobile Physical Damage"
       }
      }
     },
     "localname": "CommercialAutomobilePhysicalDamageMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_CommonwealthAutomobileReinsurersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Commonwealth Automobile Reinsurers (\"CAR\").",
        "label": "CAR"
       }
      }
     },
     "localname": "CommonwealthAutomobileReinsurersMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_CorporateAndOtherSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Corporate and other fixed income securities and commercial mortgage-backed and other asset-backed securities. Excludes residential mortgage-backed securities and government securities.",
        "label": "Corporate and other securities."
       }
      }
     },
     "localname": "CorporateAndOtherSecuritiesMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_CreditLossBenefitExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 23.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_Revenues",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of credit loss (benefit) expense.",
        "label": "Credit Loss Benefit Expenses",
        "negatedLabel": "Credit loss benefit (expense)",
        "terseLabel": "Credit loss (benefit) expense"
       }
      }
     },
     "localname": "CreditLossBenefitExpenses",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DebtInstrumentAdditionalBasisSpreadOnVariableRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Extra incremental percentage points, in addition to the initial percentage points, added to the reference rate to compute the overall variable rate on the debt instrument.",
        "label": "Debt Instrument Additional Basis Spread on Variable Rate",
        "terseLabel": "Additional spread on variable rate (as a percent)"
       }
      }
     },
     "localname": "DebtInstrumentAdditionalBasisSpreadOnVariableRate",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_DebtInstrumentDefaultTriggerPrincipalAmountMinimum": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the minimum amount of unpaid required principal repayments that result in an event of default.",
        "label": "Debt Instrument Default Trigger Principal Amount Minimum",
        "terseLabel": "Default trigger, principal amount"
       }
      }
     },
     "localname": "DebtInstrumentDefaultTriggerPrincipalAmountMinimum",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsDeferredRent1": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions arising from deferred rent incentives received by the entity.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Deferred Rent 1",
        "terseLabel": "Rent incentive"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsDeferredRent1",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DeferredTaxLiabilitiesDeferredPremiumAcquisitionCosts": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount as of the balance sheet date of the estimated future tax effects attributable to the difference between the methods used to account for premium acquisition costs for tax purposes and under generally accepted accounting principles.",
        "label": "Deferred Tax Liabilities Deferred Premium Acquisition Costs",
        "negatedLabel": "Premium acquisition expenses"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeferredPremiumAcquisitionCosts",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DeferredTaxLiabilitiesDepreciation": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information related to deferred tax liabilities depreciation.",
        "label": "Deferred Tax Liabilities Depreciation",
        "negatedLabel": "Depreciation"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDepreciation",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DeferredTaxLiabilitiesInvestmentsExcludingUnrecognizedGainsLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences, other than unrecognized gains and losses from investments (excludes investments in subsidiaries and equity method investments).",
        "label": "Deferred Tax Liabilities Investments Excluding Unrecognized Gains (Losses)",
        "negatedLabel": "Investments"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesInvestmentsExcludingUnrecognizedGainsLosses",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DeferredTaxLiabilitiesInvestmentsUnrecognizedGainsLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences, resulting from unrecognized gains and losses from investments (excludes investments in subsidiaries and equity method investments).",
        "label": "Deferred Tax Liabilities Investments Unrecognized Gains (Losses)",
        "negatedLabel": "Net unrealized gains on investments"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesInvestmentsUnrecognizedGainsLosses",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_DefinedBenefitPlanMinimumAgeRequiredToBeEligibleForContribution": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the minimum age required to be eligible for contribution under the Retirement Plan.",
        "label": "Defined Benefit Plan Minimum Age Required to be Eligible for Contribution",
        "terseLabel": "Minimum age required to be eligible for contribution under the Retirement Plan"
       }
      }
     },
     "localname": "DefinedBenefitPlanMinimumAgeRequiredToBeEligibleForContribution",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_EarnedPremiumPolicyTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represent the term over which premiums are earned by the entity.",
        "label": "Earned Premium Policy Term",
        "terseLabel": "Term over which premiums are earned"
       }
      }
     },
     "localname": "EarnedPremiumPolicyTerm",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_EarningsFromPartnershipInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 4.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustment for income from the undistributed earnings (losses) of the entity's unconsolidated equity method investments.",
        "label": "Earnings From Partnership Investments",
        "terseLabel": "Earnings from partnership investments"
       }
      }
     },
     "localname": "EarningsFromPartnershipInvestments",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquityAndDepositsInPools": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 11.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equities and deposits in pools and associations relates to equity interests in, or deposits receivable from voluntary or involuntary pools or underwriting associations.",
        "label": "Equity and Deposits in Pools",
        "terseLabel": "Equity and deposits in pools"
       }
      }
     },
     "localname": "EquityAndDepositsInPools",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquityAndDepositsInPoolsPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of entity's accounting policy related to equity and deposits in pools.",
        "label": "Equity and Deposits in Pools [Policy Text Block]",
        "terseLabel": "Equity and Deposits in Pools"
       }
      }
     },
     "localname": "EquityAndDepositsInPoolsPolicyTextBlock",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "saft_EquityInvestmentRequiredAdvanceNoticePeriodToDispose": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The required advance notice before quarter end so that the entity may dispose of an equity security investment which has a fair value determined using the trust's net asset value.",
        "label": "Equity Investment Required Advance Notice Period to Dispose",
        "terseLabel": "Period of advance notice before quarter end"
       }
      }
     },
     "localname": "EquityInvestmentRequiredAdvanceNoticePeriodToDispose",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_EquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Not available.",
        "label": "Equity Securities [Abstract]",
        "terseLabel": "Equity Securities"
       }
      }
     },
     "localname": "EquitySecuritiesAbstract",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "saft_EquitySecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "saft_InvestmentsGrossUnrealizedGainBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of unrealized gain in accumulated other comprehensive income (AOCI) on investments in equity securities.",
        "label": "Equity Securities, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Equity securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "EquitySecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "saft_InvestmentsGrossUnrealizedLossBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of unrealized loss in accumulated other comprehensive income (AOCI) on investments in equity securities.",
        "label": "Equity Securities, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Equity securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "EquitySecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesAndMutualFundsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants. Also includes interests in mutual funds.",
        "label": "Equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesAndMutualFundsMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_EquitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in equity security measured at fair value with change in fair value recognized in other comprehensive income, in continuous unrealized loss position for 12 months or longer.",
        "label": "Equity Securities, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "Unrealized Losses, 12 Months or More"
       }
      }
     },
     "localname": "EquitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in equity security measured at fair value with change in fair value recognized in other comprehensive income, in continuous unrealized loss position for less than 12 months.",
        "label": "Equity Securities, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "terseLabel": "Unrealized Losses, Less than 12 Months"
       }
      }
     },
     "localname": "EquitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesFvNiContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity 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.",
        "label": "Equity Securities FV-NI Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Estimated Fair Value, 12 Months or More"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesFvNiContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity 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.",
        "label": "Equity Securities FV-NI Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Estimated Fair Value, Less than 12 Months"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesFvNiUnrealizedLossPosition": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in other comprehensive income, in unrealized loss position.",
        "label": "Equity Securities, FV-NI, Unrealized Loss Position",
        "terseLabel": "Estimated Fair Value, Total"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiUnrealizedLossPosition",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_EquitySecuritiesUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in equity security measured at fair value with change in fair value recognized in other comprehensive income, in unrealized loss position.",
        "label": "Equity Securities, Unrealized Loss Position, Accumulated Loss",
        "terseLabel": "Unrealized Losses, Total"
       }
      }
     },
     "localname": "EquitySecuritiesUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_FHLBBostonMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Federal Home Loan Bank of Boston.",
        "label": "F H L B Boston"
       }
      }
     },
     "localname": "FHLBBostonMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_FinanceAndOtherIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 8.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects finance and all other revenue and income not otherwise specified in the income statement.",
        "label": "Finance and Other Income",
        "terseLabel": "Finance and other service income"
       }
      }
     },
     "localname": "FinanceAndOtherIncome",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_HomeownersLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product line consisting of insurance provided to policyholders on dwellings, which covers liability to others arising from ownership or occupancy.",
        "label": "Homeowners Liability"
       }
      }
     },
     "localname": "HomeownersLiabilityMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_IncomeLossNetOfIncomeTaxesExcludingNetEarningsOfConsolidatedSubsidiaries": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income (loss) net of income tax expense (benefit), excluding the net income attributable to the entity's consolidated subsidiaries.",
        "label": "Income (Loss) Net of Income Taxes Excluding Net Earnings of Consolidated Subsidiaries",
        "totalLabel": "Net loss"
       }
      }
     },
     "localname": "IncomeLossNetOfIncomeTaxesExcludingNetEarningsOfConsolidatedSubsidiaries",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_IncrementalCommonSharesAttributableToNonVestedStockGrantsUnderShareBasedPaymentArrangements": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of non-vested stock grants under share based payment arrangements.",
        "label": "Incremental Common Shares Attributable to Non Vested Stock Grants Under Share Based Payment Arrangements",
        "terseLabel": "Common equivalent shares- non-vested performance stock grants"
       }
      }
     },
     "localname": "IncrementalCommonSharesAttributableToNonVestedStockGrantsUnderShareBasedPaymentArrangements",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "saft_InsuranceSubsidiariesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The insurance subsidiaries of the entity.",
        "label": "Company's insurance company subsidiaries"
       }
      }
     },
     "localname": "InsuranceSubsidiariesMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_InvestmentInLimitedPartnershipCommittedAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the committed amount of investment in limited partnership made by the company.",
        "label": "Investment In Limited Partnership, Committed Amount"
       }
      }
     },
     "localname": "InvestmentInLimitedPartnershipCommittedAmount",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_InvestmentsAdjustedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the adjusted cost of investments as follows: the amortized cost of debt securities, the cost of equity securities and the carrying value of equity method investments.",
        "label": "Investments Adjusted Cost",
        "totalLabel": "Cost or Amortized Cost"
       }
      }
     },
     "localname": "InvestmentsAdjustedCost",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_InvestmentsGrossUnrealizedGainBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of unrealized gain in accumulated other comprehensive income (AOCI) on investments in debt and equity securities. Also includes cumulative unrealized gains on other types of investments.",
        "label": "Investments Gross Unrealized Gain before Tax",
        "totalLabel": "Gross Unrealized Gains"
       }
      }
     },
     "localname": "InvestmentsGrossUnrealizedGainBeforeTax",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_InvestmentsGrossUnrealizedLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of unrealized loss in accumulated other comprehensive income (AOCI) on investments in debt and equity securities. Also includes cumulative unrealized losses on other types of investments.",
        "label": "Investments Gross Unrealized Loss before Tax",
        "negatedTotalLabel": "Gross Unrealized Losses"
       }
      }
     },
     "localname": "InvestmentsGrossUnrealizedLossBeforeTax",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_LesseeOperatingLeaseRemainingTermOfContract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The remaining term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Remaining Term of Contract",
        "terseLabel": "Operating lease, remaining lease term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRemainingTermOfContract",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYearsAutomobileReserves": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payments to settle claims incurred in prior periods and related claims settlement costs relating to retained automobile reserves.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years, Automobile Reserves",
        "terseLabel": "Reduction in retained automobile reserves"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYearsAutomobileReserves",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYearsHomeownersReserves": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payments to settle claims incurred in prior periods and related claims settlement costs relating to homeowners reserves.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years, Homeowners Reserves",
        "terseLabel": "Reduction in retained homeowners reserves"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYearsHomeownersReserves",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_LimitedPartnershipInvestmentMade": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of contribution made by the company to the limited partnership investment.",
        "label": "Limited Partnership, Investment Made",
        "terseLabel": "Contribution made"
       }
      }
     },
     "localname": "LimitedPartnershipInvestmentMade",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_LimitedPartnershipInvestmentToBeMade": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of remaining committed capital due to be called.",
        "label": "Limited Partnership, Investment To Be Made",
        "terseLabel": "Contributions to be made"
       }
      }
     },
     "localname": "LimitedPartnershipInvestmentToBeMade",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_LongTermIncentivePlan2018Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to 2018 Long-Term Incentive Plan.",
        "label": "The 2018 Plan"
       }
      }
     },
     "localname": "LongTermIncentivePlan2018Member",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_ManagementOmnibusIncentivePlan2002Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to 2002 Management Omnibus Incentive Plan.",
        "label": "The Incentive Plan"
       }
      }
     },
     "localname": "ManagementOmnibusIncentivePlan2002Member",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_MarketableSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income, in continuous unrealized loss position for 12 months or longer.",
        "label": "Marketable Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "Unrealized Losses, 12 Months or More"
       }
      }
     },
     "localname": "MarketableSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MarketableSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of investments in marketable securities measured at fair value with change in fair value recognized in other comprehensive income , in unrealized loss position.",
        "label": "Marketable Securities, Available-for-sale, Unrealized Loss Position, Number of Positions",
        "terseLabel": "Number of securities in an unrealized loss position"
       }
      }
     },
     "localname": "MarketableSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "saft_MarketableSecuritiesContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income (, in continuous unrealized loss position for more than 12 months.",
        "label": "Marketable Securities, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Estimated Fair Value, 12 Months or More"
       }
      }
     },
     "localname": "MarketableSecuritiesContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income , in continuous unrealized loss position for less than 12 months.",
        "label": "Marketable Securities, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Estimated Fair Value, Less than 12 Months"
       }
      }
     },
     "localname": "MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income , in continuous unrealized loss position for less than 12 months.",
        "label": "Marketable Securities, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "terseLabel": "Unrealized Losses, Less than 12 Months"
       }
      }
     },
     "localname": "MarketableSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MarketableSecuritiesUnrealizedLossPosition": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income, in unrealized loss position.",
        "label": "Marketable Securities, Unrealized Loss Position",
        "terseLabel": "Estimated Fair Value, Total"
       }
      }
     },
     "localname": "MarketableSecuritiesUnrealizedLossPosition",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MarketableSecuritiesUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in marketable security measured at fair value with change in fair value recognized in other comprehensive income, in unrealized loss position.",
        "label": "Marketable Securities, Unrealized Loss Position, Accumulated Loss",
        "terseLabel": "Unrealized Losses, Total"
       }
      }
     },
     "localname": "MarketableSecuritiesUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MaximumBorrowingCapacityCollateralizedEligibleInvestedAssets": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum borrowing capacity provided that loan is collateralized by eligible invested assets.",
        "label": "Maximum Borrowing Capacity Collateralized Eligible Invested Assets",
        "terseLabel": "Maximum borrowing capacity using eligible invested assets as collateral"
       }
      }
     },
     "localname": "MaximumBorrowingCapacityCollateralizedEligibleInvestedAssets",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_MaximumPeriodConsideredForApplicationOfEquityMethodAccountingBasedOnFinancialInformationProvidedByInvestee": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the maximum period considered for applying the equity method accounting based on financial information provided by the investee.",
        "label": "Maximum Period Considered for Application of Equity Method Accounting Based on Financial Information Provided by Investee",
        "terseLabel": "Maximum period considered for applying equity method accounting based on financial information provided by the investee"
       }
      }
     },
     "localname": "MaximumPeriodConsideredForApplicationOfEquityMethodAccountingBasedOnFinancialInformationProvidedByInvestee",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_MortgageBackedSecuritiesIssuedByUSGovernmentAgenciesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential mortgage-backed securities consisting primarily of obligations of U.S. Government agencies including collateralized mortgage obligations issued, guaranteed and/or insured by the following issuers: Government National Mortgage Association (GNMA), Federal Home Loan Mortgage Corporation (FHLMC), Federal National Mortgage Association (FNMA) and the Federal Home Loan Bank (FHLB).",
        "label": "Residential mortgage-backed securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesIssuedByUSGovernmentAgenciesMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearFive": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the fifth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Negative Short Duration Insurance Contracts Historical Claims Duration Year Five",
        "terseLabel": "Year 5"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearFive",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearFour": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the fourth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Negative Short Duration Insurance Contracts Historical Claims Duration Year Four",
        "terseLabel": "Year 4"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearFour",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearSix": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the sixth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Negative Short Duration Insurance Contracts Historical Claims Duration Year Six",
        "terseLabel": "Year 6"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearSix",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearThree": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the third year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Negative Short Duration Insurance Contracts Historical Claims Duration Year Three",
        "terseLabel": "Year 3"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearThree",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearTwo": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the second year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Negative Short Duration Insurance Contracts Historical Claims Duration Year Two",
        "terseLabel": "Year 2"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsHistoricalClaimsDurationYearTwo",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "saft_NegativeShortDurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Undiscounted amount, after reinsurance, of the liability for unpaid claims and allocated claim adjustment expense for short-duration insurance contracts. Excludes unallocated claim adjustment expense.",
        "label": "Negative Short Duration Insurance Contracts Liability For Unpaid Claims And Allocated Claim Adjustment Expense Net",
        "terseLabel": "Net outstanding liabilities",
        "totalLabel": "Liabilities for claims and claim adjustment expenses, net of reinsurance"
       }
      }
     },
     "localname": "NegativeShortDurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_NumberOfLevelsOfRegulatoryAction": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of levels of regulatory action provided for by the risk-based capital law.",
        "label": "Number of Levels of Regulatory Action",
        "terseLabel": "Number of levels of regulatory action, risk-based capital law"
       }
      }
     },
     "localname": "NumberOfLevelsOfRegulatoryAction",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "saft_OtherContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to other contracts.",
        "label": "Other Contracts"
       }
      }
     },
     "localname": "OtherContractsMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_OtherInformationRelatedToLeasesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the information related to leases.",
        "label": "Other Information Related To Leases Table Text Block",
        "terseLabel": "Schedule of other information related to leases"
       }
      }
     },
     "localname": "OtherInformationRelatedToLeasesTableTextBlock",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "saft_OtherInvestedAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to other invested assets.",
        "label": "Other invested assets"
       }
      }
     },
     "localname": "OtherInvestedAssetsMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_PaymentToAcquireEquitySecuritiesFvNi": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to acquire equity securities.",
        "label": "Payment To Acquire Equity Securities Fv Ni",
        "negatedLabel": "Equity securities purchased"
       }
      }
     },
     "localname": "PaymentToAcquireEquitySecuritiesFvNi",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_PercentageOfPrivatePassengerAutoInsuranceToTotalDirectWrittenPremiums": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the percentage of private passenger automobile insurance to total direct written premiums.",
        "label": "Percentage of Private Passenger Auto Insurance to Total Direct Written Premiums",
        "terseLabel": "Percentage of private passenger automobile insurance to total direct written premiums"
       }
      }
     },
     "localname": "PercentageOfPrivatePassengerAutoInsuranceToTotalDirectWrittenPremiums",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureBasisOfPresentationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_PrivatePassengerAutomobilePhysicalDamageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product line consisting of insurance provided to individuals, which covers private passenger automobile-related losses including, but not limited to, property damage or theft.",
        "label": "Private Passenger Automobile Physical Damage"
       }
      }
     },
     "localname": "PrivatePassengerAutomobilePhysicalDamageMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_PropertyAndCasualtyCommercialAutomobileInsuranceProductLineMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product line consisting of insurance provided to policyholders on commercial automobiles, which covers automobile-related losses including, but not limited to, damage, theft or legal liability for personal injury.",
        "label": "Commercial Automobile Liability"
       }
      }
     },
     "localname": "PropertyAndCasualtyCommercialAutomobileInsuranceProductLineMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_PropertyAndCasualtyPrivatePassengerAutomobileInsuranceProductLineMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product line consisting of insurance provided to individuals, which covers private passenger automobile-related losses including, but not limited to, legal liability for personal injury.",
        "label": "Private Passenger Automobile Liability"
       }
      }
     },
     "localname": "PropertyAndCasualtyPrivatePassengerAutomobileInsuranceProductLineMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_RBSCitizensMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pertains to RBS Citizens, NA.",
        "label": "RBS Citizens"
       }
      }
     },
     "localname": "RBSCitizensMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_ReceivableForSecuritiesSold": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount receivable for securities sold either not included in the normal course of business (as would be the case with receivables included in accounts receivable, net) and/or gross amount due.",
        "label": "Receivable For Securities Sold",
        "terseLabel": "Receivable for securities sold"
       }
      }
     },
     "localname": "ReceivableForSecuritiesSold",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_ReinsuranceNetEarnedPremiumsLessNetLossesIncurredAndExpenses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pretax net income (loss) attributable to reinsurance participation by the entity, reflecting assumed and ceded earned premiums, as well as assumed and ceded losses incurred and expenses.",
        "label": "Reinsurance Net Earned Premiums Less Net (Losses) Incurred and Expenses",
        "terseLabel": "Assumed net losses"
       }
      }
     },
     "localname": "ReinsuranceNetEarnedPremiumsLessNetLossesIncurredAndExpenses",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_ReinsuranceRecoverablePercentageOnTotal": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of reinsurance recoverable from the total reinsurance recoverable.",
        "label": "Reinsurance Recoverable, Percentage on Total",
        "terseLabel": "Percentage of reinsurance recoverable"
       }
      }
     },
     "localname": "ReinsuranceRecoverablePercentageOnTotal",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_ReinsuranceTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts of direct, assumed from other insurers, and ceded to other insurers included in net premiums written, net premiums earned, and net loss and loss adjustment expenses incurred.",
        "label": "Reinsurance [Table Text Block]",
        "terseLabel": "Schedule of effect of assumed and ceded premiums on net written and earned premiums and losses and LAE incurred"
       }
      }
     },
     "localname": "ReinsuranceTableTextBlock",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "saft_SafetyInsuranceCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents Safety Insurance Company, a subsidiary of the entity.",
        "label": "Safety Insurance Company"
       }
      }
     },
     "localname": "SafetyInsuranceCompanyMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_ShareRepurchaseProgramAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Repurchase Program"
       }
      }
     },
     "localname": "ShareRepurchaseProgramAbstract",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "xbrltype": "stringItemType"
    },
    "saft_SharebasedCompensationArrangementBySharebasedPaymentAwardPayoutPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of actual payout of target shares awarded depending upon the level of achievement of the respective market and performance conditions during a three fiscal-year performance period.",
        "label": "Share based Compensation Arrangement by Share based Payment Award, Payout Percentage",
        "terseLabel": "Actual Payouts (as a percent)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardPayoutPercentage",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_ShortDurationInsuranceContractsHistoricalClaimsDurationYearNineAdjustment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the year 9 after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts including adjustments.",
        "label": "Short Duration Insurance Contracts Historical Claims Duration Year Nine Adjustment",
        "terseLabel": "Year 9"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractsHistoricalClaimsDurationYearNineAdjustment",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_ShortDurationInsuranceContractsHistoricalClaimsDurationYearSevenAdjustment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the year 7 after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts including adjustments.",
        "label": "Short Duration Insurance Contracts Historical Claims Duration Year Seven Adjustment",
        "terseLabel": "Year 7"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractsHistoricalClaimsDurationYearSevenAdjustment",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_ShortDurationInsuranceContractsIncurredButNotReportedIbnrClaimsLiabilityPlusExpectedDevelopmentOfReportedClaims": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Undiscounted amount, after reinsurance, of incurred-but-not-reported (IBNR) liabilities plus expected development on reported claims, for claims and allocated claim adjustment expense for short-duration insurance contracts. Includes expected development of reported claims.",
        "label": "Short-duration Insurance Contracts, Incurred but Not Reported (IBNR) Claims Liability, Plus Expected Development of Reported Claims",
        "terseLabel": "Total of Incurred-but-Not-Reported Liabilities Plus Expected Development of Reported Claims"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractsIncurredButNotReportedIbnrClaimsLiabilityPlusExpectedDevelopmentOfReportedClaims",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_ShortTermInvestmentsCost": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cost of short term investments",
        "label": "Short term investments, at cost"
       }
      }
     },
     "localname": "ShortTermInvestmentsCost",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_ShortTermInvestmentsOtherThanEquitySecuritiesFvNi": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments other than equity securities at FV NI.",
        "label": "Short-term Investments, Other Than Equity Securities FV NI",
        "terseLabel": "Short term investments, at fair value (cost: $0 and $441)"
       }
      }
     },
     "localname": "ShortTermInvestmentsOtherThanEquitySecuritiesFvNi",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "saft_StatutoryAccountingPracticesMeasurementPeriodForLimitsOnDividends": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which income and dividends are measured for statutory limits on the dividends an insurer may pay.",
        "label": "Statutory Accounting Practices Measurement Period for Limits on Dividends",
        "terseLabel": "Period of statutory measurement of income and dividends"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesMeasurementPeriodForLimitsOnDividends",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_StatutoryAccountingPracticesNoticePeriodOfExtraordinaryDividend": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the period after which the Commissioner has received the entity's notice of an intended extraordinary dividend before the dividend can be declared if no objection has been lodged.",
        "label": "Statutory Accounting Practices Notice Period of Extraordinary Dividend",
        "terseLabel": "Period allowed for Commissioner to object to notice of an extraordinary dividend"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesNoticePeriodOfExtraordinaryDividend",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "saft_StatutoryAccountingPracticesPercentageOfSurplusLimitOnDividends": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum percentage of the prior year-end surplus that may be paid in dividends without prior approval, as one of the regulatory alternatives.",
        "label": "Statutory Accounting Practices Percentage of Surplus Limit on Dividends",
        "terseLabel": "Dividend limitation without prior permission, percentage of preceding surplus"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesPercentageOfSurplusLimitOnDividends",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "saft_StatutoryNetIncomeAndSurplusAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory Net Income and Surplus"
       }
      }
     },
     "localname": "StatutoryNetIncomeAndSurplusAbstract",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "xbrltype": "stringItemType"
    },
    "saft_TreasuryStockShareAcquiredCostMethod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the number of common shares that were repurchased during the period. Recorded using the cost method.",
        "label": "Treasury Stock Share Acquired Cost Method",
        "terseLabel": "Number of common shares purchased during period under the program"
       }
      }
     },
     "localname": "TreasuryStockShareAcquiredCostMethod",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "saft_VestingBasedOnPerformanceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents a share based compensation restricted stock award with vesting based on achievement of performance conditions.",
        "label": "Performance-based Shares Under Restriction"
       }
      }
     },
     "localname": "VestingBasedOnPerformanceMember",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "saft_WeightedAverageNumberOfParticipatingShares": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units attributable to participating shares.",
        "label": "Weighted Average Number of Participating Shares",
        "negatedLabel": "Less: weighted average participating shares"
       }
      }
     },
     "localname": "WeightedAverageNumberOfParticipatingShares",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "saft_WeightedAverageNumberOfSharesOutstanding": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to weighted average common shares outstanding.",
        "label": "Weighted Average Number Of Shares Outstanding",
        "terseLabel": "Total weighted average common shares outstanding, including participating shares"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstanding",
     "nsuri": "http://www.safetyinsurance.com/20211231",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "srt_CondensedBalanceSheetStatementTable": {
     "auth_ref": [
      "r101",
      "r381",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations.",
        "label": "Condensed Balance Sheet Statement [Table]"
       }
      }
     },
     "localname": "CondensedBalanceSheetStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedBalanceSheetStatementsCaptionsLineItems": {
     "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": "Condensed Balance Sheet Statements, Captions [Line Items]",
        "terseLabel": "Condensed Balance Sheets"
       }
      }
     },
     "localname": "CondensedBalanceSheetStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedCashFlowStatementTable": {
     "auth_ref": [
      "r101",
      "r381",
      "r723"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Cash Flow Statement [Table]"
       }
      }
     },
     "localname": "CondensedCashFlowStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedCashFlowStatementsCaptionsLineItems": {
     "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": "Condensed Cash Flow Statements, Captions [Line Items]",
        "terseLabel": "Condensed Statements of Cash Flows"
       }
      }
     },
     "localname": "CondensedCashFlowStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule II - Condensed Financial Information of the Registrant"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_CondensedIncomeStatementTable": {
     "auth_ref": [
      "r101",
      "r381",
      "r723"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed income statement including, but not limited to, income statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Income Statement [Table]"
       }
      }
     },
     "localname": "CondensedIncomeStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedIncomeStatementsCaptionsLineItems": {
     "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": "Condensed Income Statements, Captions [Line Items]",
        "terseLabel": "Condensed Statements of Income and Comprehensive Income"
       }
      }
     },
     "localname": "CondensedIncomeStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r101",
      "r260",
      "r264",
      "r269",
      "r384",
      "r385",
      "r390",
      "r391",
      "r462",
      "r700",
      "r719",
      "r729",
      "r730",
      "r731"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r101",
      "r260",
      "r264",
      "r269",
      "r384",
      "r385",
      "r390",
      "r391",
      "r462",
      "r700",
      "r719",
      "r729",
      "r730",
      "r731"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidatedPropertyAndCasualtyInsuranceEntityMember": {
     "auth_ref": [
      "r603",
      "r721"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Controlled entity included in financial statements of registrant with liability for property-casualty insurance claim.",
        "label": "Consolidated Property &amp; Casualty Subsidiaries"
       }
      }
     },
     "localname": "ConsolidatedPropertyAndCasualtyInsuranceEntityMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ManagementMember": {
     "auth_ref": [
      "r182",
      "r461"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Person or persons designated as part of management.",
        "label": "Executives and non-executives (2018 and after)"
       }
      }
     },
     "localname": "ManagementMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r271",
      "r288",
      "r309",
      "r310",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r498",
      "r634",
      "r636",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r271",
      "r288",
      "r309",
      "r310",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r498",
      "r634",
      "r636",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ParentCompanyMember": {
     "auth_ref": [
      "r101"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The registrant that controls, directly or indirectly, another entity (or entities). The usual condition for control is ownership of a majority (over 50%) of the outstanding voting stock. The power to control may also exist with a lesser percentage of ownership, for example, by contract, lease, agreement with other stockholders or by court decree.",
        "label": "Registrant"
       }
      }
     },
     "localname": "ParentCompanyMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_PayablesToBrokerDealersAndClearingOrganizations": {
     "auth_ref": [
      "r732"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount payable to other broker-dealer and clearing organization, including, but not limited to, security failed-to-receive, deposit received for security loaned, open transaction, and floor-brokerage payable.",
        "label": "Payables to Broker-Dealers and Clearing Organizations",
        "terseLabel": "Payable for securities purchased"
       }
      }
     },
     "localname": "PayablesToBrokerDealersAndClearingOrganizations",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r179",
      "r295",
      "r296",
      "r499",
      "r633",
      "r635"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by product and service, or group of similar products and similar services.",
        "label": "Products and Services [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r179",
      "r295",
      "r296",
      "r499",
      "r633",
      "r635"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product or service, or a group of similar products or similar services.",
        "label": "Insurance Product Line [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_PropertyCasualtyInsuranceUnderwritersAffiliationWithRegistrantDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Affiliation to property-casualty insurance underwriter.",
        "label": "Property, Casualty Insurance Underwriters, Affiliation with Registrant [Domain]"
       }
      }
     },
     "localname": "PropertyCasualtyInsuranceUnderwritersAffiliationWithRegistrantDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r271",
      "r288",
      "r299",
      "r309",
      "r310",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r498",
      "r634",
      "r636",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Range [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r271",
      "r288",
      "r299",
      "r309",
      "r310",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r498",
      "r634",
      "r636",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Range [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ReinsurancePremiumsForInsuranceCompaniesByProductSegmentLineItems": {
     "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": "Reinsurance Premiums for Insurance Companies, by Product Segment [Line Items]",
        "terseLabel": "Insurance Earned Premiums"
       }
      }
     },
     "localname": "ReinsurancePremiumsForInsuranceCompaniesByProductSegmentLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ReinsurancePremiumsForInsuranceCompaniesByProductSegmentTable": {
     "auth_ref": [
      "r601",
      "r727"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of supplemental information about reinsurance including, but not limited to, type of insurance, gross amount of premium, premium ceded to another company, premium assumed from another company, net amount of premium revenue, and percentage of premium assumed to net premium revenue.",
        "label": "Reinsurance Premiums for Insurance Companies, by Product Segment [Table]"
       }
      }
     },
     "localname": "ReinsurancePremiumsForInsuranceCompaniesByProductSegmentTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [
      "r3",
      "r108",
      "r109",
      "r110",
      "r111",
      "r112",
      "r115",
      "r116",
      "r117",
      "r118",
      "r120",
      "r121",
      "r122",
      "r123",
      "r124",
      "r125",
      "r141",
      "r226",
      "r227",
      "r336",
      "r369",
      "r401",
      "r405",
      "r406",
      "r407",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r737",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Revision of Prior Period [Axis]"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [
      "r3",
      "r108",
      "r109",
      "r110",
      "r111",
      "r112",
      "r115",
      "r116",
      "r117",
      "r118",
      "r120",
      "r121",
      "r122",
      "r123",
      "r124",
      "r125",
      "r141",
      "r226",
      "r227",
      "r336",
      "r369",
      "r401",
      "r405",
      "r406",
      "r407",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r737",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Revision of Prior Period [Domain]"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember": {
     "auth_ref": [
      "r3",
      "r111",
      "r112",
      "r118",
      "r125",
      "r226",
      "r227",
      "r336",
      "r369",
      "r401",
      "r407",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r737",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative increase (decrease) to previously issued financial statements for retrospective application of amendment to accounting standards and adjustment for reclassification from amendment to accounting standards.",
        "label": "Revision of Prior Period, Accounting Standards Update, Adjustment"
       }
      }
     },
     "localname": "RevisionOfPriorPeriodAccountingStandardsUpdateAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RevisionOfPriorPeriodChangeInAccountingPrincipleAdjustmentMember": {
     "auth_ref": [
      "r111",
      "r112"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative increase (decrease) to previously issued financial statements for change in accounting principle. Excludes adjustment for amendment to accounting standards.",
        "label": "Revision of Prior Period, Change in Accounting Principle, Adjustment"
       }
      }
     },
     "localname": "RevisionOfPriorPeriodChangeInAccountingPrincipleAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfSupplementalInformationForPropertyCasualtyInsuranceUnderwritersTextBlock": {
     "auth_ref": [
      "r613",
      "r728"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure of supplemental information for registrant, its subsidiary and 50%-or-less-owned equity basis investee, with liability for property-casualty insurance claim.",
        "label": "Schedule of Supplemental Information for Property, Casualty Insurance Underwriters [Text Block]",
        "terseLabel": "Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations"
       }
      }
     },
     "localname": "ScheduleOfSupplementalInformationForPropertyCasualtyInsuranceUnderwritersTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock": {
     "auth_ref": [
      "r106",
      "r724"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for valuation and qualifying accounts and reserves.",
        "label": "Schedule of Valuation and Qualifying Accounts Disclosure [Text Block]",
        "terseLabel": "Schedule V - Valuation and Qualifying Accounts"
       }
      }
     },
     "localname": "ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccounts"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule I - Summary of Investments - Other than Investments in Related Parties"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems": {
     "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": "Summary of Investments, Other than Investments in Related Parties, Reportable Data [Line Items]",
        "terseLabel": "Summary of investments - other than investments in related parties"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable": {
     "auth_ref": [
      "r693",
      "r725"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment held by insurance company, excluding investment in related party.",
        "label": "Summary of Investments, Other than Investments in Related Parties [Table]"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock": {
     "auth_ref": [
      "r693",
      "r725"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure of information about investment held by insurance company, excluding investment in related party.",
        "label": "Summary of Investments, Other than Investments in Related Parties [Text Block]",
        "terseLabel": "Schedule I - Summary of Investments - Other than Investments in Related Parties"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersByAffiliationWithRegistrantAxis": {
     "auth_ref": [
      "r604",
      "r722"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by affiliation to property-casualty insurance underwriter.",
        "label": "Affiliation with Entity [Axis]"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersByAffiliationWithRegistrantAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersLineItems": {
     "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": "Supplemental Information for Property, Casualty Insurance Underwriters [Line Items]",
        "terseLabel": "Supplemental Information Concerning Property and Casualty Insurance Operations"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersTable": {
     "auth_ref": [
      "r613",
      "r728"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of supplemental information for registrant, its subsidiary and 50%-or-less-owned equity basis investee, with liability for property-casualty insurance claim.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters [Table]"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule IV - Reinsurance"
       }
      }
     },
     "localname": "SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesTextBlock": {
     "auth_ref": [
      "r601",
      "r727"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the supplemental schedule of reinsurance information. Reinsurance schedule includes, but is not limited to, the type of insurance, gross amount of premiums, premiums ceded to other entities, premiums assumed from other entities, net amount of premium revenue, and the percentage of the premiums assumed to net premium revenue.",
        "label": "Supplemental Schedule of Reinsurance Premiums for Insurance Companies [Text Block]",
        "terseLabel": "Schedule IV - Reinsurance"
       }
      }
     },
     "localname": "SupplementalScheduleOfReinsurancePremiumsForInsuranceCompaniesTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsurance"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_SupplementaryInsuranceInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule III - Supplementary Insurance Information"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock": {
     "auth_ref": [
      "r594",
      "r726"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for supplementary insurance information by segment. Includes, but is not limited to, deferred policy acquisition cost; future policy benefit, loss, claim and loss expenses; unearned premium; other policy claim and benefit payable; premium revenue; net investment income; benefit, claim, loss and settlement expenses; amortization of deferred policy acquisition cost; other operating expense; and premium written.",
        "label": "Supplementary Insurance Information, for Insurance Companies Disclosure [Text Block]",
        "terseLabel": "Schedule III - Supplementary Insurance Information"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationForInsuranceCompaniesDisclosureTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_TitleOfIndividualAxis": {
     "auth_ref": [
      "r182",
      "r461"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by title of individual or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Axis]"
       }
      }
     },
     "localname": "TitleOfIndividualAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of individual, or nature of relationship to individual or group of individuals.",
        "label": "Relationship to Entity [Domain]"
       }
      }
     },
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ValuationAndQualifyingAccountsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule V - Valuation and Qualifying Accounts"
       }
      }
     },
     "localname": "ValuationAndQualifyingAccountsAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201602Member": {
     "auth_ref": [
      "r445"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-02 Leases (Topic 842).",
        "label": "Accounting Standards Update 2016-02"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201602Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201802Member": {
     "auth_ref": [
      "r55"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2018-02 Income Statement-Reporting Comprehensive Income (Topic 220): Reclassification of Certain Tax Effects from Accumulated Other Comprehensive Income.",
        "label": "Accounting Standards Update 2018-02"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201802Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r516",
      "r566"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying values as of the balance sheet date of obligations incurred through that date, including liabilities incurred and payable to vendors for goods and services received, taxes, interest, rent and utilities, compensation costs, payroll taxes and fringe benefits (other than pension and postretirement obligations), contractual rights and obligations, and statutory obligations.",
        "label": "Accounts Payable and Accrued Liabilities",
        "terseLabel": "Accounts payable and accrued liabilities"
       }
      }
     },
     "localname": "AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsPayableOtherCurrentAndNoncurrent": {
     "auth_ref": [
      "r517",
      "r565"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligations incurred and payable classified as other.",
        "label": "Accounts Payable, Other",
        "terseLabel": "Accounts payable and other liabilities"
       }
      }
     },
     "localname": "AccountsPayableOtherCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableAllowanceForCreditLossExcludingAccruedInterestNoncurrent": {
     "auth_ref": [
      "r228"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding accrued interest, of allowance for credit loss on accounts receivable classified as noncurrent.",
        "label": "Accounts Receivable, Allowance for Credit Loss",
        "periodEndLabel": "Balance, end of period",
        "periodStartLabel": "Balance, beginning of period",
        "verboseLabel": "Allowance for expected credit losses"
       }
      }
     },
     "localname": "AccountsReceivableAllowanceForCreditLossExcludingAccruedInterestNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableAllowanceForCreditLossTableTextBlock": {
     "auth_ref": [
      "r233"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on accounts receivable.",
        "label": "Accounts Receivable, Allowance for Credit Loss [Table Text Block]",
        "terseLabel": "Accounts receivable, net of allowance for expected credit losses"
       }
      }
     },
     "localname": "AccountsReceivableAllowanceForCreditLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AccountsReceivableExcludingAccruedInterestAfterAllowanceForCreditLossNoncurrent": {
     "auth_ref": [
      "r228"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, after allowance for credit loss, of accounts receivable classified as noncurrent.",
        "label": "Accounts Receivable, Net",
        "periodEndLabel": "Balance, end of period",
        "periodStartLabel": "Balance, beginning of period",
        "terseLabel": "Accounts receivable, net of allowance for expected credit losses of $1,808 and $1,754"
       }
      }
     },
     "localname": "AccountsReceivableExcludingAccruedInterestAfterAllowanceForCreditLossNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable, after Allowance for Credit Loss [Abstract]"
       }
      }
     },
     "localname": "AccountsReceivableNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r31",
      "r251"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "terseLabel": "Less accumulated depreciation and amortization"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r22",
      "r40",
      "r42",
      "r43",
      "r557",
      "r645",
      "r649"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "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, net of taxes"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r39",
      "r43",
      "r52",
      "r53",
      "r54",
      "r108",
      "r109",
      "r110",
      "r389",
      "r640",
      "r641",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "Accumulated Other Comprehensive (Loss) Income, Net of Taxes"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital.",
        "label": "Additional Paid in Capital, Common Stock",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r108",
      "r109",
      "r110",
      "r333",
      "r334",
      "r335",
      "r405"
     ],
     "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"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentForAmortization": {
     "auth_ref": [
      "r87",
      "r248"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of recurring noncash expense charged against earnings in the period to allocate the cost of assets over their estimated remaining economic lives.",
        "label": "Amortization",
        "terseLabel": "Amortization of restricted stock expense"
       }
      }
     },
     "localname": "AdjustmentForAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r190",
      "r191",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r227",
      "r259",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r366",
      "r367",
      "r368",
      "r369",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r460",
      "r500",
      "r501",
      "r502",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Adjustments for New Accounting Pronouncements [Axis]"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r312",
      "r314",
      "r338",
      "r339"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "Adjustments to Additional Paid in Capital, Share-based Compensation, Restricted Stock Unit or Restricted Stock Award, Requisite Service Period Recognition",
        "terseLabel": "Recognition of employee share-based compensation, net of deferred federal income taxes"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "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.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdvertisingCostsPolicyTextBlock": {
     "auth_ref": [
      "r341"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for advertising cost.",
        "label": "Advertising Costs, Policy [Policy Text Block]",
        "terseLabel": "Advertising Costs"
       }
      }
     },
     "localname": "AdvertisingCostsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AdvertisingExpense": {
     "auth_ref": [
      "r342"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount charged to advertising expense for the period, which are expenses incurred with the objective of increasing revenue for a specified brand, product or product line.",
        "label": "Advertising costs"
       }
      }
     },
     "localname": "AdvertisingExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r314",
      "r326",
      "r337"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Allocated Share-based Compensation Expense",
        "terseLabel": "Stock based compensation"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax, of expense for award under share-based payment arrangement.",
        "label": "Allocated Share-based Compensation Expense, Net of Tax",
        "terseLabel": "Compensation Expense, Net of Tax"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpenseNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Expected Credit Losses"
       }
      }
     },
     "localname": "AllowanceForCreditLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllowanceForCreditLossesTextBlock": {
     "auth_ref": [
      "r192"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for allowance for credit losses.",
        "label": "Allowance for Credit Losses [Text Block]",
        "terseLabel": "Allowance for Expected Credit Losses"
       }
      }
     },
     "localname": "AllowanceForCreditLossesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLosses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease": {
     "auth_ref": [
      "r233"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss on accounts receivable.",
        "label": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "terseLabel": "Current period change for expected credit losses"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Accounts Receivable, Allowance for Credit Loss [Roll Forward]"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableRollforward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs": {
     "auth_ref": [
      "r231"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of direct write-downs of accounts receivable charged against the allowance.",
        "label": "Accounts Receivable, Allowance for Credit Loss, Writeoff",
        "negatedLabel": "Writeoffs of uncollectable accounts receivable"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AlternativeInvestment": {
     "auth_ref": [
      "r408",
      "r418"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment other than investment in equity security, investment in debt security and equity method investment. Includes, but is not limited to, investment in certain entities that calculate net asset value per share. Example includes, but is not limited to, investment in hedge fund, venture capital fund, private equity fund, and real estate partnership or fund.",
        "label": "Investments Net Asset Value",
        "terseLabel": "Alternative investments fair value"
       }
      }
     },
     "localname": "AlternativeInvestment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r138"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "terseLabel": "Antidilutive common shares"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ArrangementsAndNonarrangementTransactionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Arrangements and Non-arrangement Transactions [Domain]"
       }
      }
     },
     "localname": "ArrangementsAndNonarrangementTransactionsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetBackedSecuritiesSecuritizedLoansAndReceivablesMember": {
     "auth_ref": [
      "r203",
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities that are primarily serviced with cash flows derived financial assets that are being securitized for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans. Excludes mortgage-backed securities.",
        "label": "Other asset-backed securities"
       }
      }
     },
     "localname": "AssetBackedSecuritiesSecuritizedLoansAndReceivablesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r96",
      "r161",
      "r171",
      "r177",
      "r221",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r384",
      "r390",
      "r424",
      "r463",
      "r465",
      "r507",
      "r555"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "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.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "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.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssumedPremiumsEarned": {
     "auth_ref": [
      "r568",
      "r598",
      "r664",
      "r667"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PremiumsEarnedNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of earned premiums assumed from other entities.",
        "label": "Assumed Premiums Earned",
        "terseLabel": "Assumed",
        "verboseLabel": "Assumed from Other Companies"
       }
      }
     },
     "localname": "AssumedPremiumsEarned",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssumedPremiumsWritten": {
     "auth_ref": [
      "r664"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PremiumsWrittenNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of written premiums assumed from other entities.",
        "label": "Assumed Premiums Written",
        "terseLabel": "Assumed"
       }
      }
     },
     "localname": "AssumedPremiumsWritten",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r195"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "saft_InvestmentsGrossUnrealizedGainBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-sale Debt Securities Gross Unrealized Gain",
        "terseLabel": "Fixed maturity securities, Gross Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r196"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "saft_InvestmentsGrossUnrealizedLossBeforeTax",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-sale Debt Securities, Gross Unrealized Loss",
        "negatedLabel": "Fixed maturity securities, Gross Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale [Abstract]",
        "terseLabel": "Investments:",
        "verboseLabel": "Fixed Maturity Securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available-for-sale Securities, Debt Maturities [Abstract]",
        "terseLabel": "Available-for-sale Securities, Debt Maturities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "auth_ref": [
      "r200"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "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 sixth through tenth 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": "Available-for-sale Securities, Debt Maturities, Year Six Through Ten, Amortized Cost Basis",
        "terseLabel": "Due after five years though ten years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r197",
      "r200",
      "r538"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "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 sixth through tenth 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": "Available-for-sale Securities, Debt Maturities, Year Six Through Ten, Fair Value",
        "terseLabel": "Due after five years through ten years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "auth_ref": [
      "r199"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "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 second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Available-for-sale Securities, Debt Maturities, Year Two Through Five, Amortized Cost Basis",
        "terseLabel": "Due after one year through five years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r197",
      "r199",
      "r537"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "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 second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Available-for-sale Securities, Debt Maturities, Year Two Through Five, Fair Value",
        "terseLabel": "Due after one year through five years, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "auth_ref": [
      "r201"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "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 tenth 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": "Available-for-sale Securities, Debt Maturities, after Ten Years, Amortized Cost Basis",
        "terseLabel": "Due after ten years through twenty years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Amortized Cost, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesFairValueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "auth_ref": [
      "r198"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "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 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": "Available-for-sale Securities, Debt Maturities, Next Twelve Months, Amortized Cost Basis",
        "terseLabel": "Due in one year or less, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r197",
      "r198",
      "r536"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Available-for-sale Securities, Debt Maturities, Next Twelve Months, Fair Value",
        "terseLabel": "Due in one year or less, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost": {
     "auth_ref": [
      "r202"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
       "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), without single maturity date and not allocated over maturity grouping.",
        "label": "Available-for-sale Securities, Debt Maturities, without Single Maturity Date, Amortized Cost Basis",
        "terseLabel": "Asset-backed securities, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue": {
     "auth_ref": [
      "r202",
      "r539"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
       "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), without single maturity date and not allocated over maturity grouping.",
        "label": "Available-for-sale Securities, Debt Maturities, without Single Maturity Date, Fair Value",
        "terseLabel": "Asset-backed securities, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r315",
      "r328"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BenefitsLossesAndExpenses": {
     "auth_ref": [
      "r584"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail": {
       "order": 1.0,
       "parentTag": "saft_IncomeLossNetOfIncomeTaxesExcludingNetEarningsOfConsolidatedSubsidiaries",
       "weight": -1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of expense recognized during the period for future policy benefits, claims and claims adjustment costs, and for selling, general and administrative costs.",
        "label": "Benefits, Losses and Expenses",
        "terseLabel": "Expenses",
        "totalLabel": "Total expenses"
       }
      }
     },
     "localname": "BenefitsLossesAndExpenses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BenefitsLossesAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Benefits, Losses and Expenses [Abstract]",
        "terseLabel": "Expenses"
       }
      }
     },
     "localname": "BenefitsLossesAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CapitalizationOfDeferredPolicyAcquisitionCostsPolicy": {
     "auth_ref": [
      "r615"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for deferred policy acquisition costs, including the nature, type, and amount of capitalized costs incurred to write or acquire insurance contracts, and the basis for and methodologies applied in capitalizing and amortizing such costs.",
        "label": "Deferred Policy Acquisition Costs, Policy [Policy Text Block]",
        "terseLabel": "Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "CapitalizationOfDeferredPolicyAcquisitionCostsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r8",
      "r27",
      "r89"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "auth_ref": [
      "r9",
      "r90"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents. Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value.",
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r81",
      "r89",
      "r92"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of year"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r81",
      "r433"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net increase in cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CededCreditRiskAxis": {
     "auth_ref": [
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by reinsurer or group of reinsurers of concentrated credit risk arising from a reinsurance arrangement.",
        "label": "Ceded Credit Risk, Reinsurer [Axis]"
       }
      }
     },
     "localname": "CededCreditRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CededCreditRiskLineItems": {
     "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": "Ceded Credit Risk [Line Items]",
        "terseLabel": "Reinsurance"
       }
      }
     },
     "localname": "CededCreditRiskLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CededCreditRiskReinsurerDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reinsurer or group of reinsurers for whom the entity has a concentration of credit risk.",
        "label": "Ceded Credit Risk, Reinsurer [Domain]"
       }
      }
     },
     "localname": "CededCreditRiskReinsurerDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CededCreditRiskTable": {
     "auth_ref": [
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about reinsurer or group of reinsurers for whom the entity has a concentration of credit risk.",
        "label": "Ceded Credit Risk [Table]"
       }
      }
     },
     "localname": "CededCreditRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CededPremiumsEarned": {
     "auth_ref": [
      "r568",
      "r597",
      "r661",
      "r662",
      "r665",
      "r667"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_PremiumsEarnedNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of earned premiums ceded to other entities.",
        "label": "Ceded Premiums Earned",
        "negatedLabel": "Ceded",
        "terseLabel": "Ceded to Other Companies"
       }
      }
     },
     "localname": "CededPremiumsEarned",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CededPremiumsWritten": {
     "auth_ref": [
      "r665",
      "r667"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_PremiumsWrittenNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of written premiums ceded to other entities.",
        "label": "Ceded Premiums Written",
        "negatedLabel": "Ceded"
       }
      }
     },
     "localname": "CededPremiumsWritten",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ClaimsDevelopmentLineItems": {
     "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": "Claims Development [Line Items]",
        "terseLabel": "Claim development"
       }
      }
     },
     "localname": "ClaimsDevelopmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems": {
     "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": "Collaborative Arrangement and Arrangement Other than Collaborative [Line Items]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CollaborativeArrangementsAndNoncollaborativeArrangementTransactionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r202",
      "r300"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by commercial real estate mortgage loans.",
        "label": "Commercial mortgage-backed securities"
       }
      }
     },
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r34",
      "r257",
      "r519",
      "r563"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies.",
        "terseLabel": "Commitments and contingencies (Note 8)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r254",
      "r255",
      "r256",
      "r258",
      "r696"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommitmentsMember": {
     "auth_ref": [
      "r15",
      "r510",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents significant arrangements with third parties, which includes operating lease arrangements and arrangements in which the entity has agreed to expend funds to procure goods or services, or has agreed to commit resources to supply goods or services, and operating lease arrangements.",
        "label": "Limited partnership commitments"
       }
      }
     },
     "localname": "CommitmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "auth_ref": [
      "r291"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EarningsPerShareDilutedUndistributed",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Cash Paid",
        "negatedLabel": "Dividends declared",
        "terseLabel": "Cash dividends paid per common share (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r108",
      "r109",
      "r405"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r19"
     ],
     "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 (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r19"
     ],
     "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.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r19"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock shares issued"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r19",
      "r465"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 1.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",
        "terseLabel": "Common stock: $0.01 par value; 30,000,000 shares authorized; 17,813,370 and 17,724,866 shares issued"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndEmployeeBenefitPlansTextBlock": {
     "auth_ref": [
      "r297",
      "r298",
      "r311",
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for an entity's employee compensation and benefit plans, including, but not limited to, postemployment and postretirement benefit plans, defined benefit pension plans, defined contribution plans, non-qualified and supplemental benefit plans, deferred compensation, share-based compensation, life insurance, severance, health care, unemployment and other benefit plans.",
        "label": "Compensation and Employee Benefit Plans [Text Block]",
        "terseLabel": "Employee Benefit Plan"
       }
      }
     },
     "localname": "CompensationAndEmployeeBenefitPlansTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlan"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Benefit Plan"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets [Abstract]",
        "terseLabel": "Deferred tax assets:"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Liabilities [Abstract]",
        "terseLabel": "Deferred tax liabilities:"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r47",
      "r49",
      "r50",
      "r62",
      "r527",
      "r574"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome": {
       "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.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComputerEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long lived, depreciable assets that are used in the creation, maintenance and utilization of information systems.",
        "label": "Computer equipment"
       }
      }
     },
     "localname": "ComputerEquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r149",
      "r150",
      "r181",
      "r422",
      "r423",
      "r695"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Ceded Credit Risk, Risk Classification [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r149",
      "r150",
      "r181",
      "r422",
      "r423",
      "r676",
      "r695"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r149",
      "r150",
      "r181",
      "r422",
      "r423",
      "r676",
      "r695"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender.",
        "label": "Concentration Risk Type [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r149",
      "r150",
      "r181",
      "r422",
      "r423",
      "r695"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration.",
        "label": "Concentration Risk Type [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "auth_ref": [
      "r5",
      "r101",
      "r381"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for condensed financial information, including the financial position, cash flows, and the results of operations of the registrant (parent company) as of the same dates or for the same periods for which audited consolidated financial statements are being presented. Alternatively, the details of this disclosure can be reported by the specific parent company taxonomy elements, indicating the appropriate date and period contexts in an instance document.",
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Text Block]",
        "terseLabel": "Schedule II - Condensed Financial Information of the Registrant"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrant"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r300",
      "r307",
      "r671"
     ],
     "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 and other securities"
       }
      }
     },
     "localname": "CorporateDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditFacilityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing.",
        "label": "Credit Facility [Axis]"
       }
      }
     },
     "localname": "CreditFacilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CreditFacilityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing.",
        "label": "Credit Facility [Domain]"
       }
      }
     },
     "localname": "CreditFacilityDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r97",
      "r363",
      "r372"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "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.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r97",
      "r363",
      "r372",
      "r374"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations.",
        "label": "Current Income Tax Expense (Benefit)",
        "totalLabel": "Total Current Income Taxes"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Current Income Taxes:"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [
      "r97",
      "r363",
      "r372"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "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.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r94",
      "r272",
      "r273",
      "r274",
      "r275",
      "r276",
      "r277",
      "r278",
      "r280",
      "r281",
      "r282",
      "r284",
      "r287"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "Debt"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebt"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument.",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Spread on variable rate (as a percent)"
       }
      }
     },
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of reference rate used for variable rate of debt instrument.",
        "label": "Debt Instrument, Description of Variable Rate Basis",
        "terseLabel": "Variable interest rate basis"
       }
      }
     },
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossNotPreviouslyRecorded": {
     "auth_ref": [
      "r243"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), for which no credit loss was previously recorded.",
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss, Not Previously Recorded",
        "terseLabel": "Credit losses on securities with no previously recorded credit losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossNotPreviouslyRecorded",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal": {
     "auth_ref": [
      "r245"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (reversal of expense) for allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), not intended to be sold and not more likely than not will be required to sell before recovery of amortized cost basis, with previously recorded allowance.",
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss, Not to Sell before Recovery, Credit Loss, Previously Recorded, Expense (Reversal)",
        "terseLabel": "Net increases (decreases) in allowance on previously impaired securities"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease": {
     "auth_ref": [
      "r246"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss 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, Allowance for Credit Loss, Period Increase (Decrease)",
        "verboseLabel": "Decrease in allowance for expected credit losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossSecuritiesSold": {
     "auth_ref": [
      "r244"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) from sale.",
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss, Securities Sold",
        "terseLabel": "Reduction due to sales"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossSecuritiesSold",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest": {
     "auth_ref": [
      "r237"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Allowance for Credit Loss",
        "negatedTerseLabel": "Fixed maturity securities, allowance for expected credit losses",
        "periodEndLabel": "Balance, end of period",
        "periodStartLabel": "Balance, beginning of period",
        "terseLabel": "Fixed maturity securities, allowance for expected credit losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "auth_ref": [
      "r237"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "saft_InvestmentsAdjustedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost excluding accrued interest, before allowance for credit loss, 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, Excluding Accrued Interest, before Allowance for Credit Loss",
        "terseLabel": "Fixed maturity securities, amortized cost",
        "totalLabel": "Totals, Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r208",
      "r241",
      "r247"
     ],
     "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": "Estimated Fair Value, 12 Months or More"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r208",
      "r241"
     ],
     "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",
        "terseLabel": "Unrealized Losses, 12 Months or More"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r208",
      "r241",
      "r247"
     ],
     "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": "Estimated Fair Value, Less than 12 Months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r208",
      "r241"
     ],
     "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",
        "terseLabel": "Unrealized Losses, Less than 12 Months"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest": {
     "auth_ref": [
      "r237"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InvestmentsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-sale Securities, Debt Securities",
        "terseLabel": "Fixed maturities, available for sale, at fair value (amortized cost: $1,187,857 and $1,189,951, allowance for expected credit losses of $691 and $1,054)",
        "totalLabel": "Totals, Fair Value",
        "verboseLabel": "Fixed maturity securities, Estimated Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGain": {
     "auth_ref": [
      "r210"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_MarketableSecuritiesRealizedGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain 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, Realized Gain",
        "terseLabel": "Gross realized gains fixed maturity securities"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss": {
     "auth_ref": [
      "r210"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_MarketableSecuritiesRealizedGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Realized Loss",
        "negatedLabel": "Gross realized losses fixed maturities"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r205",
      "r238",
      "r247"
     ],
     "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",
        "terseLabel": "Estimated Fair Value, Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r206",
      "r239"
     ],
     "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",
        "terseLabel": "Unrealized Losses, Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableforsaleAllowanceForCreditLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss [Abstract]"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleAllowanceForCreditLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesMember": {
     "auth_ref": [
      "r212"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument issued by corporations, governments and governmental agencies, municipalities, and other institutions.",
        "label": "Subtotal, fixed maturity securities"
       }
      }
     },
     "localname": "DebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r97",
      "r364",
      "r372"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "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.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r87",
      "r97",
      "r364",
      "r372",
      "r373",
      "r374"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Credit for deferred income taxes",
        "totalLabel": "Total Deferred Income Tax Expense"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Deferred Income Taxes:"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r16",
      "r17",
      "r356",
      "r508",
      "r549"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "negatedTotalLabel": "Total deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "auth_ref": [
      "r346",
      "r347"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting.",
        "label": "Deferred Income Tax Liabilities, Net",
        "terseLabel": "Deferred income taxes"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense": {
     "auth_ref": [
      "r87",
      "r543",
      "r578",
      "r614",
      "r616",
      "r618",
      "r643"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense (reversal of expense) for deferred policy acquisition costs.",
        "label": "Deferred Policy Acquisition Cost, Amortization Expense",
        "terseLabel": "Amortization expense"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostAmortizationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCostAmortizationExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Policy Acquisition Cost, Amortization Expense [Abstract]",
        "terseLabel": "Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCostAmortizationExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r561",
      "r616",
      "r617",
      "r618",
      "r643",
      "r673"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred policy acquisition cost capitalized on contract remaining in force.",
        "label": "Deferred Policy Acquisition Costs",
        "terseLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "DeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredRevenueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premiums and Unearned Premiums"
       }
      }
     },
     "localname": "DeferredRevenueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r357"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Total deferred tax assets before valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r358"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "totalLabel": "Total deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits",
        "terseLabel": "Employee benefits"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary difference from allowance for credit loss on accounts receivable.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Allowance for Doubtful Accounts",
        "terseLabel": "Bad debt allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from loss reserves other than estimated credit losses.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Loss Reserves",
        "terseLabel": "Discounting of loss reserves"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from the unearned premiums reserve.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Unearned Premiums Reserve",
        "terseLabel": "Discounting of unearned premium reserve"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilities": {
     "auth_ref": [
      "r347",
      "r358"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting.",
        "label": "Deferred Tax Liabilities, Net",
        "negatedTotalLabel": "Net deferred tax liability"
       }
      }
     },
     "localname": "DeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from capitalized software.",
        "label": "Deferred Tax Liabilities, Deferred Expense, Capitalized Software",
        "negatedLabel": "Software development costs"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseDeferredPolicyAcquisitionCost": {
     "auth_ref": [
      "r361",
      "r362"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount as of the balance sheet date of the estimated future tax effects attributable to policy acquisition costs being expensed for tax purposes but capitalized in conformity with generally accepted accounting principles, which will reverse in future periods when amortization of such capitalized costs cannot be deducted for tax purposes.",
        "label": "Deferred Tax Liabilities, Deferred Expense, Deferred Policy Acquisition Cost",
        "negatedLabel": "Deferred acquisition costs"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeferredExpenseDeferredPolicyAcquisitionCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseReservesAndAccruals": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from reserves and accruals.",
        "label": "Deferred Tax Liabilities, Deferred Expense, Reserves and Accruals",
        "negatedLabel": "Loss reserve transition adjustment"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeferredExpenseReservesAndAccruals",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "auth_ref": [
      "r308"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for defined contribution plan.",
        "label": "Defined Contribution Plan, Cost Recognized",
        "terseLabel": "Compensation expense"
       }
      }
     },
     "localname": "DefinedContributionPlanCostRecognized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "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": "Employer matching contribution (as a percent)"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerMatchingContributionPercentOfMatch",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails"
     ],
     "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": "Maximum amount contributed by employee from employees base salary (as a percent)"
       }
      }
     },
     "localname": "DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.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": "Investment amortization, net"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAndAmortization": {
     "auth_ref": [
      "r87",
      "r249"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The current period expense charged against earnings on long-lived, physical assets not used in production, and which are not intended for resale, to allocate or recognize the cost of such assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset; or to reflect consumption during the period of an asset that is not used in production.",
        "label": "Depreciation, Depletion and Amortization, Nonproduction",
        "verboseLabel": "Fixed asset depreciation, net"
       }
      }
     },
     "localname": "DepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationDepletionAndAmortization": {
     "auth_ref": [
      "r87",
      "r158"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets.",
        "label": "Depreciation, Depletion and Amortization",
        "terseLabel": "Depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationDepletionAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DirectPremiumsEarned": {
     "auth_ref": [
      "r568",
      "r596",
      "r663",
      "r666"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PremiumsEarnedNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before premiums ceded to other entities and premiums assumed by the entity, of premiums earned.",
        "label": "Direct Premiums Earned",
        "terseLabel": "Gross Amount",
        "verboseLabel": "Direct"
       }
      }
     },
     "localname": "DirectPremiumsEarned",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DirectPremiumsWritten": {
     "auth_ref": [
      "r663"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PremiumsWrittenNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before premiums ceded to other entities and premiums assumed by the entity, of premiums written.",
        "label": "Direct Premiums Written",
        "terseLabel": "Direct"
       }
      }
     },
     "localname": "DirectPremiumsWritten",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r340"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Disclosure of Compensation Related Costs, Share-based Payments [Text Block]",
        "terseLabel": "Share-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendIncomeOperating": {
     "auth_ref": [
      "r530"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating dividend income on securities.",
        "label": "Dividend Income, Operating",
        "terseLabel": "Dividends on equity securities"
       }
      }
     },
     "localname": "DividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsCommonStock": {
     "auth_ref": [
      "r291",
      "r542"
     ],
     "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 paid and accrued"
       }
      }
     },
     "localname": "DividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings per Weighted Average Common Share",
        "verboseLabel": "Earnings per weighted average common share:"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r63",
      "r115",
      "r116",
      "r118",
      "r119",
      "r120",
      "r126",
      "r129",
      "r133",
      "r136",
      "r137",
      "r141",
      "r142",
      "r406",
      "r407",
      "r528",
      "r575"
     ],
     "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 (in dollars per share)",
        "verboseLabel": "Basic earnings per share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic and Diluted, Other Disclosures [Abstract]",
        "terseLabel": "Number of shares used in computing earnings per share:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasicUndistributed": {
     "auth_ref": [
      "r133"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The earnings attributable to each security on the basis that all of the earnings for the period had been distributed (to the extent that each security may share in earnings). This is the earnings amount which reflects the participation rights in undistributed earnings of each security.",
        "label": "Earnings Per Share, Basic, Undistributed",
        "totalLabel": "Undistributed earnings"
       }
      }
     },
     "localname": "EarningsPerShareBasicUndistributed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r63",
      "r115",
      "r116",
      "r118",
      "r119",
      "r120",
      "r129",
      "r133",
      "r136",
      "r137",
      "r141",
      "r142",
      "r406",
      "r407",
      "r528",
      "r575"
     ],
     "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 (in dollars per share)",
        "verboseLabel": "Diluted earnings per share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedUndistributed": {
     "auth_ref": [
      "r133"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The earnings attributable to each security on the basis that all of the earnings for the period had been distributed (to the extent that each security may share in earnings). This is the earnings amount which reflects the participation rights in undistributed earnings of each security, after giving effect to all dilutive potential common shares outstanding during the period.",
        "label": "Earnings Per Share, Diluted, Undistributed",
        "totalLabel": "Undistributed earnings"
       }
      }
     },
     "localname": "EarningsPerShareDilutedUndistributed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r138",
      "r139",
      "r140",
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Policy Text Block]",
        "terseLabel": "Earnings per Weighted Average Common Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r327"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Weighted average period expected for recognition of compensation expense related to non-vested restricted stock awards"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "auth_ref": [
      "r327"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Share-based Awards Other than Options",
        "terseLabel": "Unrecognized compensation expense related to non-vested restricted stock awards"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense": {
     "auth_ref": [
      "r326"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax benefit for recognition of expense of award under share-based payment arrangement.",
        "label": "Employee Service Share-based Compensation, Tax Benefit from Compensation Expense",
        "terseLabel": "Income tax benefits from compensation expense"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r2",
      "r52",
      "r53",
      "r54",
      "r108",
      "r109",
      "r110",
      "r112",
      "r121",
      "r124",
      "r144",
      "r225",
      "r290",
      "r291",
      "r333",
      "r334",
      "r335",
      "r368",
      "r369",
      "r405",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r640",
      "r641",
      "r642",
      "r738"
     ],
     "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]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "auth_ref": [
      "r60",
      "r80",
      "r87",
      "r569"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities.",
        "label": "Proceeds from Equity Method Investment, Dividends or Distributions",
        "terseLabel": "Dividends received from consolidated subsidiaries"
       }
      }
     },
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r28",
      "r162",
      "r219"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "saft_InvestmentsAdjustedCost",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Equity Method Investments",
        "terseLabel": "Investments in consolidated affiliates",
        "verboseLabel": "Other invested assets"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r218"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InvestmentsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of investments accounted under the equity method.",
        "label": "Equity Method Investments, Fair Value Disclosure",
        "verboseLabel": "Other invested assets, Estimated Fair Value"
       }
      }
     },
     "localname": "EquityMethodInvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "auth_ref": [
      "r419"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InvestmentsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as current.",
        "label": "Equity Securities, FV-NI",
        "terseLabel": "Equity securities, at fair value (cost: $211,848 and $168,289)",
        "verboseLabel": "Equity securities, Estimated Fair Value"
       }
      }
     },
     "localname": "EquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "saft_InvestmentsAdjustedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cost of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). Excludes equity method investment and investment in equity security without readily determinable fair value.",
        "label": "Equity Securities, FV-NI, Cost",
        "terseLabel": "Equity securities, at cost",
        "verboseLabel": "Equity securities, Cost or Amortized Cost"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiRealizedGain": {
     "auth_ref": [
      "r217"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_MarketableSecuritiesRealizedGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain from sale of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Equity Securities, FV-NI, Realized Gain",
        "terseLabel": "Gross realized gains equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiRealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiRealizedLoss": {
     "auth_ref": [
      "r217"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_MarketableSecuritiesRealizedGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized loss from sale of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Equity Securities, FV-NI, Realized Loss",
        "negatedLabel": "Gross realized losses equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiRealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss": {
     "auth_ref": [
      "r217",
      "r577"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 6.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) on investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Equity Securities, FV-NI, Unrealized Gain (Loss)",
        "negatedLabel": "Change in net unrealized gains on equity securities",
        "terseLabel": "Change in unrealized gains on equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesInvestmentSummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element provides types of investments that may be contained within the equity securities category. Examples of items within this category may include common stocks and nonredeemable preferred stocks which may, at a minimum, be further categorized by investments in companies within the following industries: (1) public utilities; (2) banks, trust and insurance companies; (3) industrial, miscellaneous and all other.",
        "label": "Total equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesInvestmentSummaryMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r421"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Total"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "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]",
        "verboseLabel": "Fair value of financial instruments"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value Measurements, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock": {
     "auth_ref": [
      "r409",
      "r410",
      "r411",
      "r416",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financial instruments measured at fair value, including those classified in shareholders' equity measured on a recurring or nonrecurring basis. Disclosures include, but are not limited to, fair value measurements recorded and the reasons for the measurements, level within the fair value hierarchy in which the fair value measurements are categorized and transfers between levels 1 and 2. Nonrecurring fair value measurements are those that are required or permitted in the statement of financial position in particular circumstances.",
        "label": "Fair Value Measurements",
        "terseLabel": "Fair value measurements for investments"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsLevel1ToLevel2TransfersAmount": {
     "auth_ref": [
      "r411"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of assets measured on a recurring basis out of Level 1 of the fair value hierarchy into Level 2.",
        "label": "Fair Value, Assets, Level 1 to Level 2 Transfers, Amount",
        "terseLabel": "Transfers from Level 1 to Level 2"
       }
      }
     },
     "localname": "FairValueAssetsLevel1ToLevel2TransfersAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsLevel2ToLevel1TransfersAmount": {
     "auth_ref": [
      "r411"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of assets measured on a recurring basis out of Level 2 of the fair value hierarchy into Level 1.",
        "label": "Fair Value, Assets, Level 2 to Level 1 Transfers, Amount",
        "terseLabel": "Transfers from Level 2 to Level 1"
       }
      }
     },
     "localname": "FairValueAssetsLevel2ToLevel1TransfersAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r412"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Changes in the Company's Level 3 fair value securities"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r412",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Changes in Company's Level 3 Fair value securities",
        "terseLabel": "Changes in the Company's Level 3 fair value securities"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r409",
      "r417"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r410",
      "r471",
      "r472",
      "r473"
     ],
     "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 [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r409",
      "r418"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r415"
     ],
     "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 of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r279",
      "r300",
      "r301",
      "r306",
      "r307",
      "r410",
      "r471"
     ],
     "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": "Level 1 Inputs"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r300",
      "r301",
      "r306",
      "r307",
      "r410",
      "r472"
     ],
     "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": "Level 2 Inputs"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r410",
      "r473"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Level 3 Inputs"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlements": {
     "auth_ref": [
      "r413"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchases, (sales), issuances and (settlements) of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases, (Sales), Issuances, (Settlements)",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "auth_ref": [
      "r413"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "terseLabel": "Sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "auth_ref": [
      "r414"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "terseLabel": "Transfers into Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "auth_ref": [
      "r414"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "terseLabel": "Transfers out of Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r412"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r279",
      "r285",
      "r286",
      "r300",
      "r301",
      "r302",
      "r303",
      "r304",
      "r305",
      "r306",
      "r307",
      "r471",
      "r472",
      "r473"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueTransfersBetweenLevel1AndLevel2DescriptionAndPolicyAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Transfers Between Level 1 and Level 2, Description and Policy [Abstract]",
        "terseLabel": "Transfers between Levels"
       }
      }
     },
     "localname": "FairValueTransfersBetweenLevel1AndLevel2DescriptionAndPolicyAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalFundsEffectiveSwapRateMember": {
     "auth_ref": [
      "r395"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed rate on U.S. dollar, constant-notional interest rate swap having its variable-rate leg referenced to Federal Funds effective rate with no additional spread over Federal Funds effective rate on that variable-rate leg.",
        "label": "Federal Funds Effective Swap Rate"
       }
      }
     },
     "localname": "FederalFundsEffectiveSwapRateMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate of advances made and reported by Federal Home Loan Bank (FHLBank).",
        "label": "Federal Home Loan Bank, Advances, Interest Rate",
        "terseLabel": "Interest rate percentage"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMaturityPeriodFixedRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period on fixed rate advances made and reported by Federal Home Loan Bank (FHLBank), in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Federal Home Loan Bank, Advances, Maturity Period, Fixed Rate",
        "terseLabel": "Advance term"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMaturityPeriodFixedRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FederalHomeLoanBankBorrowingsFairValueDisclosure": {
     "auth_ref": [
      "r515"
     ],
     "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": "Fair value of loan"
       }
      }
     },
     "localname": "FederalHomeLoanBankBorrowingsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r203",
      "r204",
      "r214",
      "r215",
      "r216",
      "r229",
      "r233",
      "r234",
      "r235",
      "r236",
      "r240",
      "r242",
      "r246",
      "r247",
      "r283",
      "r289",
      "r396",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FixedMaturitiesMember": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element provides types of investments that may be contained within the fixed maturity category which are securities having a stated final repayment date. Examples of items within this category may include bonds, including convertibles and bonds with warrants, and redeemable preferred stocks.",
        "label": "Total fixed maturities"
       }
      }
     },
     "localname": "FixedMaturitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FurnitureAndFixturesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equipment commonly used in offices and stores that have no permanent connection to the structure of a building or utilities. Examples include, but are not limited to, desks, chairs, tables, and bookcases.",
        "label": "Furniture and fixtures"
       }
      }
     },
     "localname": "FurnitureAndFixturesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r59",
      "r161",
      "r170",
      "r173",
      "r176",
      "r178",
      "r503",
      "r524",
      "r534",
      "r579"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Extraordinary Items, Noncontrolling Interest",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerBasicShare": {
     "auth_ref": [
      "r56",
      "r63",
      "r111",
      "r115",
      "r116",
      "r118",
      "r119",
      "r129",
      "r133",
      "r136",
      "r407",
      "r521",
      "r525",
      "r528",
      "r570"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EarningsPerShareBasicUndistributed",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) from continuing operations per each share of common stock or unit outstanding during the reporting period.",
        "label": "Income (Loss) from Continuing Operations, Per Basic Share",
        "terseLabel": "Net income from continuing operations attributable to common shareholders -Basic"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare": {
     "auth_ref": [
      "r56",
      "r63",
      "r111",
      "r115",
      "r116",
      "r118",
      "r119",
      "r129",
      "r133",
      "r136",
      "r137",
      "r407",
      "r528",
      "r570",
      "r572",
      "r575"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EarningsPerShareDilutedUndistributed",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) derived from continuing operations during the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Income (Loss) from Continuing Operations, Per Diluted Share",
        "terseLabel": "Net income from continuing operations attributable to common shareholders -Diluted"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r60",
      "r87",
      "r159",
      "r219",
      "r523",
      "r569"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss).",
        "label": "Income (Loss) from Equity Method Investments",
        "negatedLabel": "Earnings from consolidated subsidiaries",
        "terseLabel": "Equity in earnings of other invested assets"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromEquityMethodInvestmentsNetOfDividendsOrDistributions": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the undistributed income (or loss) of equity method investments, net of dividends or other distributions received from unconsolidated subsidiaries, certain corporate joint ventures, and certain noncontrolled corporations; such investments are accounted for under the equity method of accounting. This element excludes distributions that constitute a return of investment, which are classified as investing activities.",
        "label": "Earnings from partnership investments.",
        "negatedLabel": "Earnings from partnership investments"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestmentsNetOfDividendsOrDistributions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromSubsidiariesNetOfTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) of subsidiary attributable to the parent entity.",
        "label": "Income (Loss) from Subsidiaries, Net of Tax",
        "terseLabel": "Earnings from consolidated subsidiaries"
       }
      }
     },
     "localname": "IncomeLossFromSubsidiariesNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Operations"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r98",
      "r350",
      "r354",
      "r360",
      "r370",
      "r375",
      "r377",
      "r378",
      "r379"
     ],
     "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.safetyinsurance.com/role/DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r99",
      "r123",
      "r124",
      "r160",
      "r348",
      "r371",
      "r376",
      "r580"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Income tax expense",
        "totalLabel": "Total income tax expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails",
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Summary of income tax expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Amount [Abstract]",
        "terseLabel": "Sources of the difference and the tax effects"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r51",
      "r344",
      "r345",
      "r354",
      "r355",
      "r359",
      "r365"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements.",
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxReceivable": {
     "auth_ref": [
      "r26",
      "r547"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of income taxes previously overpaid to tax authorities (such as U.S. Federal, state and local tax authorities) representing refunds of overpayments or recoveries based on agreed-upon resolutions of disputes. Also called income tax refund receivable.",
        "label": "Income Taxes Receivable",
        "terseLabel": "Taxes recoverable"
       }
      }
     },
     "localname": "IncomeTaxReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount",
        "terseLabel": "Federal income tax expense, at statutory rate"
       }
      }
     },
     "localname": "IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpense": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible expenses.",
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Amount",
        "terseLabel": "Nondeductible expenses"
       }
      }
     },
     "localname": "IncomeTaxReconciliationNondeductibleExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationOtherAdjustments": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments.",
        "label": "Effective Income Tax Rate Reconciliation, Other Adjustments, Amount",
        "terseLabel": "Tax windfall related to share-based stock compensation"
       }
      }
     },
     "localname": "IncomeTaxReconciliationOtherAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationOtherReconcilingItems": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to tax exempt income, equity in earnings (loss) of an unconsolidated subsidiary, minority noncontrolling interest income (loss), tax holiday, disposition of a business, disposition of an asset, repatriation of foreign earnings, repatriation of foreign earnings jobs creation act of 2004, increase (decrease) in enacted tax rate, prior year income taxes, increase (decrease) in deferred tax asset valuation allowance, and other adjustments.",
        "label": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Amount",
        "terseLabel": "Other, net"
       }
      }
     },
     "localname": "IncomeTaxReconciliationOtherReconcilingItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit).",
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount",
        "terseLabel": "State taxes, net"
       }
      }
     },
     "localname": "IncomeTaxReconciliationStateAndLocalIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxReconciliationTaxExemptIncome": {
     "auth_ref": [
      "r349"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to income (loss) exempt from income taxes.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Exempt Income, Amount",
        "negatedLabel": "Investment income, net"
       }
      }
     },
     "localname": "IncomeTaxReconciliationTaxExemptIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r83",
      "r91"
     ],
     "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": "Federal and state income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 20.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amounts payable to vendors for goods and services received and the amount of obligations and expenses incurred but not paid.",
        "label": "Increase (Decrease) in Accounts Payable and Accrued Liabilities",
        "terseLabel": "Accounts payable and accrued liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayableAndAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsReceivable": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in amount due within one year (or one business cycle) from customers for the credit sale of goods and services.",
        "label": "Increase (Decrease) in Accounts Receivable",
        "negatedTerseLabel": "Accounts receivable, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 19.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the period in the amount due for taxes based on the reporting entity's earnings or attributable to the entity's income earning process (business presence) within a given jurisdiction.",
        "label": "Increase (Decrease) in Income Taxes Payable",
        "terseLabel": "Taxes payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedIncomeTaxesPayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the balance sheet value of capitalized sales costs that are associated with acquiring a new insurance customers.",
        "label": "Increase (Decrease) in Deferred Policy Acquisition Costs",
        "negatedLabel": "Deferred policy acquisition costs"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInIncomeTaxesReceivable": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in income taxes receivable, which represents the amount due from tax authorities for refunds of overpayments or recoveries of income taxes paid.",
        "label": "Increase (Decrease) in Income Taxes Receivable",
        "negatedLabel": "Taxes recoverable/payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInIncomeTaxesReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInterestAndDividendsReceivable": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount due to the entity in the form of unpaid interest and dividends.",
        "label": "Increase (Decrease) in Interest and Dividends Receivable",
        "negatedLabel": "Accrued investment income"
       }
      }
     },
     "localname": "IncreaseDecreaseInInterestAndDividendsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in liability to reflect the estimated ultimate cost of settling claims relating to insured events that have occurred on or before the balance sheet date, whether or not reported to the insurer at that date.",
        "label": "Increase (Decrease) in Loss and Loss Adjustment Expense Reserve",
        "terseLabel": "Loss and loss adjustment expense reserves"
       }
      }
     },
     "localname": "IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in assets and liabilities:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 16.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": "Other assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 22.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": "Other liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The change in prepaid reinsurance premiums recorded on the balance sheet, which is needed to adjust net income to arrive at net cash flows provided by or used in operations.",
        "label": "Increase (Decrease) in Prepaid Reinsurance Premiums",
        "negatedLabel": "Ceded unearned premiums"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidReinsurancePremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInReinsurancePayables": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 21.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount due to other insurance companies when the reporting entity has assumed a portion of the cedant's insurance risk which has resulted in insurance losses.",
        "label": "Increase (Decrease) in Reinsurance Payables",
        "terseLabel": "Payable to reinsurers"
       }
      }
     },
     "localname": "IncreaseDecreaseInReinsurancePayables",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInReinsuranceRecoverable": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount of benefits the ceding insurer expects to recover on insurance policies ceded to other insurance entities as of the balance sheet date for all guaranteed benefit types.",
        "label": "Increase (Decrease) in Reinsurance Recoverable",
        "negatedLabel": "Receivable from reinsurers"
       }
      }
     },
     "localname": "IncreaseDecreaseInReinsuranceRecoverable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInUnearnedPremiums": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 18.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) unearned premiums written. Excludes portion of unearned premiums amortized into income.",
        "label": "Increase (Decrease) in Unearned Premiums",
        "terseLabel": "Unearned premium reserves"
       }
      }
     },
     "localname": "IncreaseDecreaseInUnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInUnearnedPremiumsNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after premiums ceded to other entities and premiums assumed by the entity, of decrease (increase) in unearned premiums.",
        "label": "Deferred revenue"
       }
      }
     },
     "localname": "IncreaseDecreaseInUnearnedPremiumsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IndustrialMiscellaneousAndAllOthersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents investments by the reporting entity in equity securities issued by any type of company other than public utilities, banks, trusts, and insurance companies the investments in which are summarized elsewhere.",
        "label": "Industrial, miscellaneous and all other"
       }
      }
     },
     "localname": "IndustrialMiscellaneousAndAllOthersMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r529"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetInvestmentIncome",
       "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 investment income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositsMember": {
     "auth_ref": [
      "r505",
      "r511"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash on deposit with financial institutions that earns interest, either at a fixed or market rate.",
        "label": "Interest-bearing FHLB"
       }
      }
     },
     "localname": "InterestBearingDepositsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r57",
      "r157",
      "r440",
      "r441",
      "r533"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 3.0,
       "parentTag": "us-gaap_BenefitsLossesAndExpenses",
       "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",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r532"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all borrowings.",
        "label": "Interest Expense, Borrowings"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeOperating": {
     "auth_ref": [
      "r64"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including, but not limited to, amortization and accretion of premiums and discounts on securities.",
        "label": "Interest Income, Operating",
        "terseLabel": "Interest on fixed maturity securities"
       }
      }
     },
     "localname": "InterestIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r77",
      "r82",
      "r91"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Net",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentIncomeInvestmentExpense": {
     "auth_ref": [
      "r67",
      "r581"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetInvestmentIncome",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expenses related to the generation of investment income.",
        "label": "Investment Income, Investment Expense",
        "terseLabel": "Investment expenses"
       }
      }
     },
     "localname": "InvestmentIncomeInvestmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentIncomeNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Income, Net [Abstract]",
        "terseLabel": "Components of net investment income"
       }
      }
     },
     "localname": "InvestmentIncomeNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentIncomeTextBlock": {
     "auth_ref": [
      "r65",
      "r66",
      "r67",
      "r581"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of investment income, including, but not limited to, interest and dividend income and amortization of discount (premium) derived from debt and equity securities. Excludes realized and unrealized gain (loss) on investments.",
        "label": "Investment Income [Table Text Block]",
        "terseLabel": "Components of net investment income"
       }
      }
     },
     "localname": "InvestmentIncomeTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "auth_ref": [
      "r220",
      "r576"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for investment in financial asset.",
        "label": "Investment, Policy [Policy Text Block]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Investments": {
     "auth_ref": [
      "r564"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all investments.",
        "label": "Investments.",
        "totalLabel": "Total investments"
       }
      }
     },
     "localname": "Investments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments"
       }
      }
     },
     "localname": "InvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsAllOtherInvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, All Other Investments [Abstract]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentsAllOtherInvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "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": "Amortized cost and the estimated fair value of fixed maturity securities, by maturity"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r409"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "InvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r212",
      "r504",
      "r540",
      "r694",
      "r717"
     ],
     "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": "Investments"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "auth_ref": [
      "r456"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income.",
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Schedule of operating lease cost"
       }
      }
     },
     "localname": "LeaseCostTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeasePracticalExpedientUseOfHindsight": {
     "auth_ref": [
      "r443",
      "r444"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether practical expedient is elected to use hindsight in determining lease term and in assessing impairment of right-of-use asset.",
        "label": "Lease, Practical Expedient, Use of Hindsight"
       }
      }
     },
     "localname": "LeasePracticalExpedientUseOfHindsight",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_LeasePracticalExpedientsPackage": {
     "auth_ref": [
      "r442",
      "r444"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether practical expedients are elected for not reassessing whether any expired or existing contract is or contains lease, lease classification for expired or existing lease, and initial direct cost for any existing lease.",
        "label": "Lease, Practical Expedients, Package"
       }
      }
     },
     "localname": "LeasePracticalExpedientsPackage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_LeaseholdImprovementsMember": {
     "auth_ref": [
      "r250"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions or improvements to assets held under a lease arrangement.",
        "label": "Leasehold improvements"
       }
      }
     },
     "localname": "LeaseholdImprovementsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionLineItems": {
     "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": "Lessee, Lease, Description [Line Items]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeaseDescriptionTable": {
     "auth_ref": [
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about lessee's leases.",
        "label": "Lessee, Lease, Description [Table]"
       }
      }
     },
     "localname": "LesseeLeaseDescriptionTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseExistenceOfOptionToExtend": {
     "auth_ref": [
      "r450"
     ],
     "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": "Operating lease, existence of option to extend"
       }
      }
     },
     "localname": "LesseeOperatingLeaseExistenceOfOptionToExtend",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r457"
     ],
     "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 the maturities of lease liabilities"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetailsCalc2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Payments, Due",
        "totalLabel": "Total lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, Payments, Due after Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "order": 6.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": "2022"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "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 fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Five",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "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 fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Four",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "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 third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Three",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails": {
       "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 second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee, Operating Lease, Liability, Payments, Due Year Two",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetailsCalc2": {
       "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 payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r450"
     ],
     "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 Leasing Arrangements, Operating Leases, Renewal Term",
        "terseLabel": "Operating lease, renewal term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r459"
     ],
     "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.safetyinsurance.com/role/DisclosureLeases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LessorDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessor Disclosure [Abstract]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LessorDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r33",
      "r96",
      "r172",
      "r221",
      "r260",
      "r261",
      "r262",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r385",
      "r390",
      "r391",
      "r424",
      "r463",
      "r464"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "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.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r25",
      "r96",
      "r221",
      "r424",
      "r465",
      "r512",
      "r560"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and shareholders' equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r622",
      "r625"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount needed to reflect the estimated ultimate cost of settling claims relating to insured events that have occurred on or before the balance sheet date, whether or not reported to the insurer at that date.",
        "label": "Liability for Claims and Claims Adjustment Expense",
        "periodEndLabel": "Reserves for losses and LAE at end of period",
        "periodStartLabel": "Reserves for losses and LAE at beginning of year",
        "terseLabel": "Loss and loss adjustment expense reserves",
        "totalLabel": "Liability for Claims and Claims Adjustment Expense, Total"
       }
      }
     },
     "localname": "LiabilityForClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss and Loss Adjustment Expense Reserves"
       }
      }
     },
     "localname": "LiabilityForClaimsAndClaimsAdjustmentExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock": {
     "auth_ref": [
      "r650"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for liabilities related to future policy benefits and unpaid claims and claim adjustments.",
        "label": "Liability for Future Policy Benefits and Unpaid Claims Disclosure [Text Block]",
        "terseLabel": "Loss and Loss Adjustment Expense Reserves"
       }
      }
     },
     "localname": "LiabilityForFuturePolicyBenefitsAndUnpaidClaimsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReserves"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid [Abstract]",
        "terseLabel": "Paid losses and LAE related to:"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1": {
     "auth_ref": [
      "r624"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PaymentsForLossesAndLossAdjustmentExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of payments to settle claims incurred in the current period and related claims settlement costs.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Current Year",
        "terseLabel": "Current year"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1": {
     "auth_ref": [
      "r624"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PaymentsForLossesAndLossAdjustmentExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of payments to settle claims incurred in prior periods and related claims settlement costs.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years",
        "terseLabel": "Prior years"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1": {
     "auth_ref": [
      "r623"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of expense (reversal of expense) for claims incurred and costs incurred in the claim settlement process.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims",
        "totalLabel": "Total incurred losses and LAE"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaimsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims [Abstract]",
        "terseLabel": "Incurred losses and LAE, related to:"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaimsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet": {
     "auth_ref": [
      "r548",
      "r622",
      "r625"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Liability as of the balance sheet date for amounts representing estimated cost of settling unpaid claims under the terms of the underlying insurance policies, less estimated reinsurance recoveries on such claims. This includes an estimate for claims which have been incurred but not reported. Claim adjustment expenses represent the costs estimated to be incurred in the settlement of unpaid claims.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Net",
        "periodEndLabel": "Net reserves for losses and LAE at end of period",
        "periodStartLabel": "Net reserves for losses and LAE at beginning of year"
       }
      }
     },
     "localname": "LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityReserveEstimatePolicy": {
     "auth_ref": [
      "r650"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for estimating its liability as of the balance sheet date for the ultimate cost of settling reported and unreported claims incurred and claims adjustment expenses (including effects of inflation and other societal and economic factors).",
        "label": "Liability Reserve Estimate, Policy [Policy Text Block]",
        "terseLabel": "Losses and Loss Adjustment Expenses"
       }
      }
     },
     "localname": "LiabilityReserveEstimatePolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LineOfCredit": {
     "auth_ref": [
      "r14",
      "r509",
      "r550"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement.",
        "label": "Long-term Line of Credit",
        "terseLabel": "Outstanding amount",
        "verboseLabel": "Debt"
       }
      }
     },
     "localname": "LineOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityAxis": {
     "auth_ref": [
      "r32",
      "r95"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of lender, which may be a single entity (for example, but not limited to, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit.",
        "label": "Lender Name [Axis]"
       }
      }
     },
     "localname": "LineOfCreditFacilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "auth_ref": [
      "r32"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility.",
        "label": "Line of Credit Facility, Current Borrowing Capacity",
        "terseLabel": "Current borrowing capacity"
       }
      }
     },
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityLenderDomain": {
     "auth_ref": [
      "r32",
      "r95"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the lender, which may be a single entity (for example, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit, including a letter of credit facility.",
        "label": "Line of Credit Facility, Lender [Domain]"
       }
      }
     },
     "localname": "LineOfCreditFacilityLenderDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "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": "Line of Credit Facility [Line Items]",
        "terseLabel": "Debt"
       }
      }
     },
     "localname": "LineOfCreditFacilityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r32"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility.",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Maximum borrowing capacity"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "auth_ref": [
      "r32",
      "r95"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line.",
        "label": "Line of Credit Facility [Table]"
       }
      }
     },
     "localname": "LineOfCreditFacilityTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility.",
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "terseLabel": "Commitment fee (as a percent)"
       }
      }
     },
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LondonInterbankOfferedRateLIBORMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate at which a bank borrows funds from other banks in the London interbank market.",
        "label": "LIBOR rate"
       }
      }
     },
     "localname": "LondonInterbankOfferedRateLIBORMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LossContingencyAccrualAtCarryingValue": {
     "auth_ref": [
      "r257"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss contingency liability.",
        "label": "Loss Contingency Accrual",
        "terseLabel": "Legal Defense Reserve"
       }
      }
     },
     "localname": "LossContingencyAccrualAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecurities": {
     "auth_ref": [
      "r520"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in marketable security.",
        "label": "Marketable Securities",
        "verboseLabel": "Total investment securities"
       }
      }
     },
     "localname": "MarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable Securities [Abstract]",
        "terseLabel": "Marketable Securities"
       }
      }
     },
     "localname": "MarketableSecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketableSecuritiesLineItems": {
     "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": "Marketable Securities [Line Items]",
        "terseLabel": "Marketable Securities"
       }
      }
     },
     "localname": "MarketableSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketableSecuritiesRealizedGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain (loss) on investment in marketable security, including other-than-temporary impairment (OTTI).",
        "label": "Marketable Securities, Realized Gain (Loss)",
        "totalLabel": "Net realized gains (loss) on investments"
       }
      }
     },
     "localname": "MarketableSecuritiesRealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MarketableSecuritiesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in marketable security.",
        "label": "Marketable Securities [Table]"
       }
      }
     },
     "localname": "MarketableSecuritiesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MarketableSecuritiesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of marketable securities. This may consist of investments in certain debt and equity securities, short-term investments and other assets.",
        "label": "Marketable Securities [Table Text Block]",
        "terseLabel": "Gross unrealized gains and losses on investments in securities"
       }
      }
     },
     "localname": "MarketableSecuritiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_MarketingAndAdvertisingExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketing and Advertising Expense [Abstract]",
        "terseLabel": "Advertising Costs"
       }
      }
     },
     "localname": "MarketingAndAdvertisingExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MovementInValuationAllowancesAndReservesRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]",
        "terseLabel": "Movement in valuation and qualifying accounts"
       }
      }
     },
     "localname": "MovementInValuationAllowancesAndReservesRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash used for financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "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.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash used for investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "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.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r81",
      "r85",
      "r88"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash provided by operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "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.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r6",
      "r46",
      "r48",
      "r54",
      "r61",
      "r88",
      "r96",
      "r111",
      "r115",
      "r116",
      "r118",
      "r119",
      "r123",
      "r124",
      "r130",
      "r161",
      "r170",
      "r173",
      "r176",
      "r178",
      "r221",
      "r260",
      "r261",
      "r262",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r407",
      "r424",
      "r526",
      "r571"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "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 from continuing operations",
        "totalLabel": "Net income",
        "verboseLabel": "Net income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r115",
      "r116",
      "r118",
      "r119",
      "r126",
      "r127",
      "r132",
      "r137",
      "r161",
      "r170",
      "r173",
      "r176",
      "r178"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "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 from continuing operations attributed to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetInvestmentIncome": {
     "auth_ref": [
      "r573"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 3.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after investment expense, of income earned from investments in securities and real estate. Includes, but is not limited to, real estate investment, policy loans, dividends, and interest. Excludes realized gain (loss) on investments.",
        "label": "Net Investment Income",
        "terseLabel": "Net investment income",
        "totalLabel": "Net investment income"
       }
      }
     },
     "localname": "NetInvestmentIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recent Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "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": "Recent Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NumberOfReportableSegments": {
     "auth_ref": [
      "r154"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements.",
        "label": "Number of Reportable Segments",
        "terseLabel": "Number of business segments"
       }
      }
     },
     "localname": "NumberOfReportableSegments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_BenefitsLossesAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "terseLabel": "Underwriting, operating and related expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r452",
      "r458"
     ],
     "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.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r448"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating lease expense. Excludes sublease income.",
        "label": "Operating Lease, Expense",
        "terseLabel": "Rental expense"
       }
      }
     },
     "localname": "OperatingLeaseExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r447"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetailsCalc2": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 8.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",
        "totalLabel": "Total",
        "verboseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails",
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r449",
      "r453"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease, Payments",
        "terseLabel": "Operating cash flows from operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r446"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 12.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",
        "verboseLabel": "Operating lease right-of-use-assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r455",
      "r458"
     ],
     "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.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r454",
      "r458"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average remaining lease term Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Presentation"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r7",
      "r394"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r12",
      "r506",
      "r554"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 13.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",
        "verboseLabel": "Other"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r382",
      "r383",
      "r388"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments, of appreciation (loss) in value of unsold available-for-sale securities, attributable to parent entity. Excludes amounts related to other than temporary impairment (OTTI) loss.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "totalLabel": "Other comprehensive (loss) income , net of tax:",
        "verboseLabel": "Other comprehensive (loss) income, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax": {
     "auth_ref": [
      "r37",
      "r38",
      "r40"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, after Tax",
        "terseLabel": "Unrealized gains on securities available for sale, net of deferred federal income taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Comprehensive Income."
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax:",
        "terseLabel": "Other comprehensive (loss) income, net of tax:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "auth_ref": [
      "r40",
      "r44",
      "r45",
      "r211"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "negatedLabel": "Reclassification adjustment for net realized gains on investments included in net income, net of income tax expense of ($3,126), ($201), and ($625)."
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r41",
      "r211"
     ],
     "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",
        "terseLabel": "Tax (expense) benefit on reclassification adjustment for (gains) losses included in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r37",
      "r40"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, after Tax",
        "verboseLabel": "Unrealized holding (losses) gains during the period, net of income tax (benefit) expense of ($4,569), $6,936 , and $10,964"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r38",
      "r41"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before adjustment, of tax expense (benefit) for unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, Tax",
        "terseLabel": "Tax (benefit) expense on unrealized holding (losses) gains during the period"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherInterestAndDividendIncome": {
     "auth_ref": [
      "r531"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after discount, accretion and premium amortization, of interest income and dividend income classified as other.",
        "label": "Other Interest and Dividend Income",
        "terseLabel": "Interest on other assets"
       }
      }
     },
     "localname": "OtherInterestAndDividendIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r518"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 9.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherMachineryAndEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other tangible personal property, nonconsumable in nature, with finite lives used to produce goods and services.",
        "label": "Other equipment"
       }
      }
     },
     "localname": "OtherMachineryAndEquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherShortdurationInsuranceProductLineMember": {
     "auth_ref": [
      "r637"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract providing short-duration insurance coverage, classified as other.",
        "label": "Other short-Duration Insurance Lines"
       }
      }
     },
     "localname": "OtherShortdurationInsuranceProductLineMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTableTextBlock": {
     "auth_ref": [
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of other than temporary impairment (OTTI) related to credit losses recognized in earnings including: (a) the beginning balance of the amount related to credit losses on debt securities held by the investor at the beginning of the period for which a portion of an OTTI was recognized in other comprehensive income; (b) additions for the amount related to the credit loss for which an OTTI was not previously recognized; (c) reductions for securities sold during the period (realized); (d) reductions for securities for which the amount previously recognized in other comprehensive income was recognized in earnings because the investor intends to sell the security or more likely than not will be required to sell the security before recovery of its amortized cost basis; (e) additional increases to the amount related to the credit loss for which an OTTI was previously recognized when the investor does not intend to sell the security and it is not more likely than not that the investor will be required to sell the security before recovery of its amortized cost basis; (f) reductions for increases in cash flows expected to be collected that are recognized over the remaining life of the security; and (g) the ending balance of the amount related to credit losses on debt securities held by the entity at the end of the period for which a portion of an OTTI was recognized in other comprehensive income.",
        "label": "Other than Temporary Impairment, Credit Losses Recognized in Earnings [Table Text Block]",
        "terseLabel": "Credit loss recognized in earnings related to fixed maturity securities"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSaleRecognizedInEarnings": {
     "auth_ref": [
      "r194"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 7.0,
       "parentTag": "us-gaap_Revenues",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other-than-temporary impairment (OTTI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), recognized in earnings.",
        "label": "Other-than-temporary Impairment Loss, Debt Securities, Available-for-sale, Recognized in Earnings",
        "negatedLabel": "Net impairment losses on investments (a)",
        "terseLabel": "Net impairment losses on investments"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSaleRecognizedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForLossesAndLossAdjustmentExpense": {
     "auth_ref": [
      "r84",
      "r624"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of payments to settle insured claims and pay costs incurred in the claims settlement process.",
        "label": "Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid",
        "totalLabel": "Total paid losses and LAE"
       }
      }
     },
     "localname": "PaymentsForLossesAndLossAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r76"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to reacquire common stock during the period.",
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Acquisition of treasury stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfEquity": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to reacquire common and preferred stock.",
        "label": "Payments for Repurchase of Equity",
        "negatedLabel": "Acquisition of treasury stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividends": {
     "auth_ref": [
      "r76"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests.",
        "label": "Payments of Dividends",
        "terseLabel": "Recorded dividends"
       }
      }
     },
     "localname": "PaymentsOfDividends",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "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": "Dividends paid to shareholders",
        "negatedTerseLabel": "Dividends paid"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r68",
      "r71",
      "r193"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments to Acquire Available-for-sale Securities, Debt",
        "negatedLabel": "Fixed maturities purchased"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireEquityMethodInvestments": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the purchase of or advances to an equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Payments to Acquire Equity Method Investments",
        "negatedLabel": "Other invested assets purchased"
       }
      }
     },
     "localname": "PaymentsToAcquireEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r73"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.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": "Fixed assets purchased"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireShortTermInvestments": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for securities or other assets acquired, which qualify for treatment as an investing activity and are to be liquidated, if necessary, within the current operating cycle. Includes cash flows from securities classified as trading securities that were acquired for reasons other than sale in the short-term.",
        "label": "Payments to Acquire Short-term Investments",
        "negatedLabel": "Short term investments purchased"
       }
      }
     },
     "localname": "PaymentsToAcquireShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r315",
      "r328"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PledgedAssetsSeparatelyReportedSecuritiesPledgedForFederalHomeLoanBankAtFairValue": {
     "auth_ref": [
      "r481"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value, as of the date of each statement of financial position presented, of securities which are owned but transferred to serve as collateral for the payment of the FHLB debt obligations, and that are reclassified and separately reported in the statement of financial position because the transferee has the right by contract or custom to sell or re-pledge them.",
        "label": "Pledged as collateral for a borrowing"
       }
      }
     },
     "localname": "PledgedAssetsSeparatelyReportedSecuritiesPledgedForFederalHomeLoanBankAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PolicyholderBenefitsAndClaimsIncurredGross": {
     "auth_ref": [
      "r583"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PolicyholderBenefitsAndClaimsIncurredNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before effect of policies assumed or ceded, of expense related to provision for policy benefits and costs incurred.",
        "label": "Policyholder Benefits and Claims Incurred, Direct",
        "terseLabel": "Direct"
       }
      }
     },
     "localname": "PolicyholderBenefitsAndClaimsIncurredGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PolicyholderBenefitsAndClaimsIncurredNet": {
     "auth_ref": [
      "r544",
      "r583"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 1.0,
       "parentTag": "us-gaap_BenefitsLossesAndExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of policies assumed or ceded, of expense related to the provision for policy benefits and costs incurred.",
        "label": "Policyholder Benefits and Claims Incurred, Net",
        "terseLabel": "Losses and loss adjustment expenses",
        "totalLabel": "Net loss and LAE"
       }
      }
     },
     "localname": "PolicyholderBenefitsAndClaimsIncurredNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PolicyholderBenefitsAndClaimsIncurredNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Policyholder Benefits and Claims Incurred, Net [Abstract]",
        "terseLabel": "Loss and LAE Incurred"
       }
      }
     },
     "localname": "PolicyholderBenefitsAndClaimsIncurredNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r420"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PremiumsEarnedNet": {
     "auth_ref": [
      "r522",
      "r568",
      "r599",
      "r668"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after premiums ceded to other entities and premiums assumed by the entity, of premiums earned.",
        "label": "Premiums Earned, Net",
        "terseLabel": "Net earned premiums",
        "totalLabel": "Net earned premiums",
        "verboseLabel": "Net Amount"
       }
      }
     },
     "localname": "PremiumsEarnedNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PremiumsPercentageAssumedToNet": {
     "auth_ref": [
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of assumed premium earned to premium earned after effects of reinsurance, as disclosed in supplementary reinsurance information.",
        "label": "Premiums, Percentage Assumed to Net",
        "terseLabel": "Percentage of Amount Assumed to Net"
       }
      }
     },
     "localname": "PremiumsPercentageAssumedToNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PremiumsReceivableAllowanceForDoubtfulAccounts": {
     "auth_ref": [
      "r183",
      "r185",
      "r230",
      "r232",
      "r552"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying value as of the balance sheet date of the estimated valuation allowance to reduce gross premiums receivable to net realizable value.",
        "label": "Premiums Receivable, Allowance for Doubtful Accounts",
        "terseLabel": "Premiums receivable, allowance for doubtful accounts"
       }
      }
     },
     "localname": "PremiumsReceivableAllowanceForDoubtfulAccounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PremiumsReceivableDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premiums Receivable Disclosure [Abstract]",
        "terseLabel": "Accounts Receivable"
       }
      }
     },
     "localname": "PremiumsReceivableDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PremiumsWrittenNet": {
     "auth_ref": [
      "r663",
      "r666"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after premiums ceded to other entities and premiums assumed by the entity, of premiums written.",
        "label": "Premiums Written, Net",
        "totalLabel": "Net written premiums"
       }
      }
     },
     "localname": "PremiumsWrittenNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PremiumsWrittenNetConsolidatedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premiums Written, Net [Abstract]",
        "terseLabel": "Written Premiums"
       }
      }
     },
     "localname": "PremiumsWrittenNetConsolidatedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PrepaidReinsurancePremiums": {
     "auth_ref": [
      "r621",
      "r675"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 9.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The unexpired portion of premiums ceded on policies in force as of the balance sheet date.",
        "label": "Prepaid Reinsurance Premiums",
        "terseLabel": "Ceded unearned premiums"
       }
      }
     },
     "localname": "PrepaidReinsurancePremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrimeRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate charged by financial institutions to their most creditworthy borrowers.",
        "label": "Prime rate"
       }
      }
     },
     "localname": "PrimeRateMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromLinesOfCredit": {
     "auth_ref": [
      "r75",
      "r95"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements.",
        "label": "Proceeds from Lines of Credit",
        "terseLabel": "Proceeds from FHLB loan"
       }
      }
     },
     "localname": "ProceedsFromLinesOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r68",
      "r69",
      "r193"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Maturities, Prepayments and Calls of Available-for-sale Securities",
        "terseLabel": "Proceeds from maturities, redemptions, and calls of fixed maturities"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale and maturity (principal being due) of other investments, prepayment and call (request of early payment) of other investments not otherwise defined in the taxonomy.",
        "label": "Proceeds from Sale and Maturity of Other Investments",
        "terseLabel": "Proceeds from other invested assets redeemed"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r68",
      "r69",
      "r193"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Sale of Available-for-sale Securities, Debt",
        "terseLabel": "Proceeds from sales and paydowns of fixed maturities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfEquitySecuritiesFvNi": {
     "auth_ref": [
      "r78",
      "r213"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as investing activity.",
        "label": "Proceeds from Sale of Equity Securities, FV-NI",
        "terseLabel": "Proceed from sales of equity securities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfEquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r6",
      "r46",
      "r48",
      "r54",
      "r79",
      "r96",
      "r111",
      "r123",
      "r124",
      "r161",
      "r170",
      "r173",
      "r176",
      "r178",
      "r221",
      "r260",
      "r261",
      "r262",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r382",
      "r386",
      "r387",
      "r392",
      "r393",
      "r407",
      "r424",
      "r534"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.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"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyInsuranceProductLineMember": {
     "auth_ref": [
      "r637"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract providing insurance coverage against damage to or theft of property.",
        "label": "Homeowners Property Damage"
       }
      }
     },
     "localname": "PropertyInsuranceProductLineMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyLiabilityAndCasualtyInsuranceSegmentMember": {
     "auth_ref": [
      "r595",
      "r602",
      "r637"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract providing insurance coverage against property-related loss. Includes, but is not limited to, damage, theft, or legal liability for personal injury.",
        "label": "Property and Casualty Insurance"
       }
      }
     },
     "localname": "PropertyLiabilityAndCasualtyInsuranceSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equipment and Leasehold Improvements",
        "terseLabel": "Equipment and Leasehold Improvements"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r31",
      "r252"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Property, Plant and Equipment, Type [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r253",
      "r697",
      "r698",
      "r699"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Equipment and Leasehold Improvements"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "auth_ref": [
      "r30",
      "r250"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business 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, Gross",
        "terseLabel": "Total cost"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "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": "Property, Plant and Equipment [Line Items]",
        "terseLabel": "Property, plant and equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r10",
      "r11",
      "r252",
      "r465",
      "r541",
      "r562"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "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",
        "totalLabel": "Equipment and leasehold improvements, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "auth_ref": [
      "r29",
      "r252",
      "r697",
      "r698"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Equipment and Leasehold Improvements"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r10",
      "r252"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of carrying value of equipment and leasehold improvements by classification"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r10",
      "r250"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Property, Plant and Equipment, Type [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment.",
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Estimated useful lives"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of realized gains and losses on investments reported in the statement of income.",
        "label": "Realized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Gross realized gains and losses on sales of investments"
       }
      }
     },
     "localname": "RealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealizedInvestmentGainsLosses": {
     "auth_ref": [
      "r582"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 5.0,
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain (loss) on investment.",
        "label": "Realized Investment Gains (Losses)",
        "negatedLabel": "Net realized gains on investments",
        "verboseLabel": "Net realized gains on investments"
       }
      }
     },
     "localname": "RealizedInvestmentGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReceivablesPolicyTextBlock": {
     "auth_ref": [
      "r184",
      "r187",
      "r188",
      "r189"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for receivable. Includes, but is not limited to, accounts receivable and financing receivable.",
        "label": "Receivables, Policy [Policy Text Block]",
        "terseLabel": "Accounts Receivable"
       }
      }
     },
     "localname": "ReceivablesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReinsuranceAccountingPolicy": {
     "auth_ref": [
      "r544",
      "r545",
      "r669",
      "r670"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of reinsurance accounting policy, for example, but not limited to, description of the methodologies and assumptions underlying determination of reinsurance recoverables, reinsurance payables and retention policy.",
        "label": "Reinsurance Accounting Policy [Policy Text Block]",
        "terseLabel": "Reinsurance"
       }
      }
     },
     "localname": "ReinsuranceAccountingPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReinsuranceDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reinsurance"
       }
      }
     },
     "localname": "ReinsuranceDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed": {
     "auth_ref": [
      "r544"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_PolicyholderBenefitsAndClaimsIncurredNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of policy benefits and costs incurred for policies assumed.",
        "label": "Policyholder Benefits and Claims Incurred, Assumed",
        "terseLabel": "Assumed"
       }
      }
     },
     "localname": "ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded": {
     "auth_ref": [
      "r544"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_PolicyholderBenefitsAndClaimsIncurredNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of reduction of provision for policy benefits and costs incurred for policies ceded.",
        "label": "Policyholder Benefits and Claims Incurred, Ceded",
        "negatedLabel": "Ceded"
       }
      }
     },
     "localname": "ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsurancePayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount as of the balance sheet date of the known and estimated amounts owed to insurers under reinsurance treaties or other arrangements.",
        "label": "Reinsurance Payable",
        "terseLabel": "Payable to reinsurers"
       }
      }
     },
     "localname": "ReinsurancePayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsurancePremiumsForInsuranceCompaniesByProductSegmentNetAmountAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Premiums Earned, Net [Abstract]",
        "terseLabel": "Earned Premiums"
       }
      }
     },
     "localname": "ReinsurancePremiumsForInsuranceCompaniesByProductSegmentNetAmountAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments": {
     "auth_ref": [
      "r546",
      "r620",
      "r622",
      "r625"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 8.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after valuation allowance, recoverable under reinsurance contracts for losses reported to the ceding insurer but not yet paid and amounts expected for incurred losses and settlement expenses, which have not yet been reported to the ceding insurer.",
        "label": "Reinsurance Recoverables on Unpaid Losses",
        "positiveLabel": "Reinsurance recoverable on unpaid claims",
        "terseLabel": "Receivable from reinsurers related to unpaid loss and loss adjustment expenses",
        "verboseLabel": "Plus receivable from reinsurers related to unpaid losses and LAE"
       }
      }
     },
     "localname": "ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceRecoverableMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reinsurance recoverable, after valuation allowance, under reinsurance contracts. Examples include, but are not limited to, settled and unsettled claims, incurred but not reported losses, loss adjustment expense, premium paid, policy benefits and policy reserves.",
        "label": "Reinsurance Recoverable Including Reinsurance Premium Paid [Member]"
       }
      }
     },
     "localname": "ReinsuranceRecoverableMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReinsuranceRecoverablesAllowance": {
     "auth_ref": [
      "r228",
      "r230",
      "r232"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on reinsurance recoverable.",
        "label": "Reinsurance Recoverable, Allowance for Credit Loss",
        "verboseLabel": "Expected credit losses"
       }
      }
     },
     "localname": "ReinsuranceRecoverablesAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses": {
     "auth_ref": [
      "r546",
      "r619",
      "r620",
      "r674"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after valuation allowance, recoverable under reinsurance contracts. Examples include, but are not limited to, settled and unsettled claims, incurred but not reported losses, loss adjustment expense, policy benefits and policy reserves. Excludes premiums paid under reinsurance contracts.",
        "label": "Reinsurance Recoverables on Paid and Unpaid Losses",
        "terseLabel": "Reinsurance receivables on paid and unpaid loss and LAE"
       }
      }
     },
     "localname": "ReinsuranceRecoverablesOnPaidAndUnpaidLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceRecoverablesOnPaidLosses": {
     "auth_ref": [
      "r546",
      "r620"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after valuation allowance, recoverable under reinsurance contracts for losses reported to and paid by the ceding insurer.",
        "label": "Reinsurance Recoverables on Paid Losses",
        "terseLabel": "Receivable from reinsurers related to paid loss and loss adjustment expenses"
       }
      }
     },
     "localname": "ReinsuranceRecoverablesOnPaidLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceRecoverablesOnUnpaidLossesGross": {
     "auth_ref": [
      "r546",
      "r620"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation allowance of reinsurance recoverables for losses reported to the ceding insurer but not yet paid, and for amounts expected based upon statistical projections and other measures of incurred losses and loss settlement expenses which have not yet been reported to the ceding insurer.",
        "label": "Reinsurance Recoverables on Unpaid Losses, Gross",
        "negatedPeriodStartLabel": "Less receivable from reinsurers related to unpaid losses and LAE"
       }
      }
     },
     "localname": "ReinsuranceRecoverablesOnUnpaidLossesGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReinsuranceTextBlock": {
     "auth_ref": [
      "r677"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure pertaining to the existence, magnitude and information about insurance that has been ceded to or assumed from another insurance company, including the methodologies and assumptions used in determining recorded amounts.",
        "label": "Reinsurance [Text Block]",
        "terseLabel": "Reinsurance"
       }
      }
     },
     "localname": "ReinsuranceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsurance"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReinsurerConcentrationRiskMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Concentration risk of a reinsurer to a specified benchmark, such as reinsurance recoverables.",
        "label": "Concentration of credit risk"
       }
      }
     },
     "localname": "ReinsurerConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r138"
     ],
     "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"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r21",
      "r291",
      "r336",
      "r465",
      "r558",
      "r644",
      "r649"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r2",
      "r108",
      "r109",
      "r110",
      "r112",
      "r121",
      "r124",
      "r225",
      "r333",
      "r334",
      "r335",
      "r368",
      "r369",
      "r405",
      "r640",
      "r642"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueRecognitionInterest": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for recognition of interest revenue. Disclosure may include the method of recognizing interest income on loan and trade receivables, the method of amortizing premiums or accreting discounts, and a statement about the policy for the treatment of related fees and costs, including the method of amortizing net deferred fees and costs.",
        "label": "Revenue Recognition, Interest [Policy Text Block]",
        "terseLabel": "Finance and Other Service Income"
       }
      }
     },
     "localname": "RevenueRecognitionInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueRecognitionPremiumsEarnedPolicy": {
     "auth_ref": [
      "r659",
      "r660"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining revenue and timing of recognition as revenue of premiums received from policyholders, insureds and other insurance entities (the effects of ceding and assuming insurance policy risks) for the entity's insurance products.",
        "label": "Revenue Recognition, Premiums Earned, Policy [Policy Text Block]",
        "terseLabel": "Premiums and Unearned Premiums"
       }
      }
     },
     "localname": "RevenueRecognitionPremiumsEarnedPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Revenues": {
     "auth_ref": [
      "r58",
      "r96",
      "r155",
      "r156",
      "r169",
      "r174",
      "r175",
      "r179",
      "r180",
      "r181",
      "r221",
      "r260",
      "r261",
      "r262",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r424",
      "r534"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues",
        "totalLabel": "Total revenue"
       }
      }
     },
     "localname": "Revenues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues [Abstract]",
        "terseLabel": "Revenues"
       }
      }
     },
     "localname": "RevenuesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevolvingCreditFacilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Arrangement in which loan proceeds can continuously be obtained following repayments, but the total amount borrowed cannot exceed a specified maximum amount.",
        "label": "Revolving Credit Agreement"
       }
      }
     },
     "localname": "RevolvingCreditFacilityMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable": {
     "auth_ref": [
      "r380"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Table]"
       }
      }
     },
     "localname": "ScheduleOfCollaborativeArrangementsAndNoncollaborativeArrangementTransactionsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r365"
     ],
     "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": "Summary of income tax expense in the Consolidated Statements of Operations"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r358"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Schedule of deferred income tax asset (liability) representing the tax effects of temporary differences attributable to the Company's consolidated federal tax return group"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r137"
     ],
     "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": "Computation of basic and diluted EPS"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "auth_ref": [
      "r349"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of sources of the difference and the tax effects"
       }
      }
     },
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r626"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the activity in the reserve for settling insured claims and expenses incurred in the claims settlement process for the period. The estimated liability includes the amount of money that will be required for future payments of (a) claims that have been reported to the insurer, (b) claims related to insured events that have occurred but that have not been reported to the insurer as of the date the liability is estimated, and (c) claim adjustment expenses. Claim adjustment expenses include costs incurred in the claim settlement process such as legal fees; outside adjuster fees; and costs to record, process, and adjust claims.",
        "label": "Schedule of Liability for Unpaid Claims and Claims Adjustment Expense [Table Text Block]",
        "terseLabel": "Schedule of reconciliation of beginning and ending reserves for losses and loss adjustment expenses (LAE)"
       }
      }
     },
     "localname": "ScheduleOfLiabilityForUnpaidClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r31",
      "r252"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Property, Plant and Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r315",
      "r328"
     ],
     "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]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of the number and weighted-average grant date fair value for restricted stock and restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock and restricted stock units that were granted, vested, or forfeited during the year.",
        "label": "Schedule of Share-based Compensation, Restricted Stock and Restricted Stock Units Activity [Table Text Block]",
        "terseLabel": "Schedule of restricted stock and performance-based restricted stock activity"
       }
      }
     },
     "localname": "ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock": {
     "auth_ref": [
      "r207"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For all investments in an unrealized loss position, including those for which other-than-temporary impairments have not been recognized in earnings (including investments for which a portion of an other-than-temporary impairment has been recognized in other comprehensive income), a tabular disclosure of the aggregate related fair value of investments with unrealized losses and the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value).",
        "label": "Schedule of Unrealized Loss on Investments [Table Text Block]",
        "terseLabel": "Gross unrealized losses included in the Company's investment portfolio and the fair value of those securities"
       }
      }
     },
     "localname": "ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting [Abstract]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r163",
      "r164",
      "r165",
      "r166",
      "r167",
      "r168",
      "r180"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShareBasedCompensationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation"
       }
      }
     },
     "localname": "ShareBasedCompensationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r316"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r320"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Forfeited (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r324"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "terseLabel": "Forfeited (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r322"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Granted (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r322"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Granted (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r321"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Outstanding at end of period (in shares)",
        "periodStartLabel": "Outstanding at beginning of year (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "terseLabel": "Shares Under Restriction"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r321"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Outstanding at end of period (in dollars per share)",
        "periodStartLabel": "Outstanding at beginning of year (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
        "terseLabel": "Weighted Average Fair Value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested and unrestricted (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "auth_ref": [
      "r325"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "terseLabel": "Total fair value of the shares that were vested and unrestricted during the period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Vested and unrestricted (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "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"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r317"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized",
        "terseLabel": "Maximum number of shares of common stock with respect to which awards may be granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "auth_ref": [
      "r328"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant",
        "terseLabel": "Number of shares available for future grant"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r313",
      "r318"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Equity Award [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationAwardTrancheOneMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "First portion of award under share-based payment arrangement differentiated by vesting feature, including, but not limited to, performance measure or service period.",
        "label": "First anniversary of grant date"
       }
      }
     },
     "localname": "ShareBasedCompensationAwardTrancheOneMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationAwardTrancheThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third portion of award under share-based payment arrangement differentiated by vesting feature, including, but not limited to, performance measure or service period.",
        "label": "Third anniversary of grant date"
       }
      }
     },
     "localname": "ShareBasedCompensationAwardTrancheThreeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationAwardTrancheTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Second portion of award under share-based payment arrangement differentiated by vesting feature, including, but not limited to, performance measure or service period.",
        "label": "Second anniversary of grant date"
       }
      }
     },
     "localname": "ShareBasedCompensationAwardTrancheTwoMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "auth_ref": [
      "r315",
      "r319"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost.",
        "label": "Share-based Compensation, Option and Incentive Plans Policy [Policy Text Block]",
        "terseLabel": "Share-Based Compensation"
       }
      }
     },
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage": {
     "auth_ref": [
      "r316"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of vesting of award under share-based payment arrangement.",
        "label": "Sharebased Compensation Arrangement By Sharebased Payment Award Payout Percentage",
        "verboseLabel": "Vesting percentage (as a percent)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortDurationInsuranceContractAccidentYear2019Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2019 in which covered event occurs under terms of short-duration insurance contract.",
        "label": "2019"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractAccidentYear2019Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortDurationInsuranceContractAccidentYear2020Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2020 in which covered event occurs under terms of short-duration insurance contract.",
        "label": "2020"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractAccidentYear2020Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortDurationInsuranceContractAccidentYear2021Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2021 in which covered event occurs under terms of short-duration insurance contract.",
        "label": "2021"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractAccidentYear2021Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortDurationInsuranceContractsAccidentYear2017Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2017 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2017"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractsAccidentYear2017Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortDurationInsuranceContractsAccidentYear2018Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2018 in which covered event occurs under terms of short-duration insurance contract.",
        "label": "2018"
       }
      }
     },
     "localname": "ShortDurationInsuranceContractsAccidentYear2018Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermInvestments": {
     "auth_ref": [
      "r13",
      "r513",
      "r514",
      "r553"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments classified as other and current.",
        "label": "Short term Investments",
        "positiveLabel": "Short term investments",
        "terseLabel": "Short term investments, at fair value (cost: $441 and $0)"
       }
      }
     },
     "localname": "ShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortTermInvestmentsMember": {
     "auth_ref": [
      "r689",
      "r690",
      "r691",
      "r692"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet.",
        "label": "Short term Investments."
       }
      }
     },
     "localname": "ShortTermInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYear2012Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2012 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2012"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYear2012Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYear2013Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2013 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2013"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYear2013Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYear2014Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2014 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2014"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYear2014Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYear2015Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2015 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2015"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYear2015Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYear2016Member": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year 2016 in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "2016"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYear2016Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYearAxis": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by accident year in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "Short-duration Insurance Contracts, Accident Year [Axis]"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYearAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsAccidentYearDomain": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accident year in which a covered event occurs under the terms of the short-duration insurance contract.",
        "label": "Short-duration Insurance Contracts, Accident Year [Domain]"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsAccidentYearDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsClaimsDevelopmentTableTextBlock": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted information about claims development by accident year for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Claims Development [Table Text Block]",
        "terseLabel": "Schedule of unaudited supplementary information related to incurred and paid claims development"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsClaimsDevelopmentTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsCumulativePaidClaimsAndAllocatedClaimAdjustmentExpenseNet": {
     "auth_ref": [
      "r628"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after reinsurance, of paid claims and allocated claim adjustment expense used in claims development for short-duration insurance contracts. Excludes unallocated claim adjustment expense.",
        "label": "Short-duration Insurance Contracts, Cumulative Paid Claims and Allocated Claim Adjustment Expense, Net",
        "terseLabel": "Cumulative paid and allocated claim adjustment expenses, net of reinsurance"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsCumulativePaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationLineItems": {
     "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": "Short-duration Insurance Contracts, Historical Claims Duration [Line Items]",
        "terseLabel": "Average Annual Percentage Payout of Incurred Claims by Age, Net of Reinsurance"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearEight": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the eighth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Eight",
        "terseLabel": "Year 8"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearEight",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearFive": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the fifth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Five",
        "terseLabel": "Year 5"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearFour": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the fourth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Four",
        "terseLabel": "Year 4"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearNine": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the ninth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Nine",
        "terseLabel": "Year 9"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearNine",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearOne": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the first year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year One",
        "terseLabel": "Year 1"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearOne",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearSeven": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the seventh year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Seven",
        "terseLabel": "Year 7"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearSeven",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearSix": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the sixth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Six",
        "terseLabel": "Year 6"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearSix",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearTen": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the tenth year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Ten",
        "terseLabel": "Year 10"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearTen",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearThree": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the third year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Three",
        "terseLabel": "Year 3"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsHistoricalClaimsDurationYearTwo": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of average annual payout, after reinsurance, in the second year after a claim is incurred, beginning with the earliest accident year disclosed for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Historical Claims Duration, Year Two",
        "terseLabel": "Year 2"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsHistoricalClaimsDurationYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsIncurredClaimsAndAllocatedClaimAdjustmentExpenseNet": {
     "auth_ref": [
      "r627"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Undiscounted amount, after reinsurance, of incurred claims and allocated claim adjustment expense used in claims development for short-duration insurance contracts. Excludes unallocated claim adjustment expense.",
        "label": "Short-duration Insurance Contracts, Incurred Claims and Allocated Claim Adjustment Expense, Net",
        "terseLabel": "Incurred claims and allocated claim adjustment expenses, net of reinsurance"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsIncurredClaimsAndAllocatedClaimAdjustmentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet": {
     "auth_ref": [
      "r629",
      "r630"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Undiscounted amount, after reinsurance, of the liability for unpaid claims and allocated claim adjustment expense for short-duration insurance contracts. Excludes unallocated claim adjustment expense.",
        "label": "Short-duration Insurance Contracts, Liability for Unpaid Claims and Allocated Claim Adjustment Expense, Net",
        "totalLabel": "Liabilities for claims and claims adjustment expenses, net of reinsurance",
        "verboseLabel": "Net outstanding liabilities"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-duration Insurance Contracts, Liability for Unpaid Claims and Allocated Claim Adjustment Expense, Net [Abstract]",
        "terseLabel": "incurred and paid claims development"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNetNotSeparatelyPresented": {
     "auth_ref": [
      "r629"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Undiscounted amount, after reinsurance, of the liability for unpaid claims and allocated claim adjustment expense for short-duration insurance contracts for accident years not separately presented in claim development information. Excludes unallocated claim adjustment expense.",
        "label": "Short-duration Insurance Contracts, Liability for Unpaid Claims and Allocated Claim Adjustment Expense, Net, Not Separately Presented",
        "terseLabel": "All outstanding liabilities before 2012, net of reinsurance"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndAllocatedClaimAdjustmentExpenseNetNotSeparatelyPresented",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndClaimAdjustmentExpenseAggregateReconcilingItems": {
     "auth_ref": [
      "r630"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of aggregate reconciling items for the reconciliation of the liability in the disclosure of claims development (in excess of) less than the liability for unpaid claims and claims adjustment expense for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Liability for Unpaid Claims and Claim Adjustment Expense, Aggregate Reconciling Items",
        "terseLabel": "Unallocated claims adjustment expenses"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsLiabilityForUnpaidClaimsAndClaimAdjustmentExpenseAggregateReconcilingItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsNumberOfReportedClaims": {
     "auth_ref": [
      "r631"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative number of reported claims for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Number of Reported Claims",
        "terseLabel": "Cumulative Number of Reported claims"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsNumberOfReportedClaims",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityLineItems": {
     "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": "Short-duration Insurance Contracts, Reconciliation of Claims Development to Liability [Line Items]",
        "terseLabel": "Reconciliation of the Disclosure of Incurred and Paid Claims Development to the Liability for Unpaid claims and Claim Adjustment Expenses"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityTableTextBlock": {
     "auth_ref": [
      "r630"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for the reconciliation of claims development to the liability for unpaid claims and claim adjustment expense for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Reconciliation of Claims Development to Liability [Table Text Block]",
        "terseLabel": "Schedule of reconciliation of the disclosure of Incurred and Paid Claims Development to the Liability for Unpaid claims and Claims Adjustment Expenses"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsReconciliationOfClaimsDevelopmentToLiabilityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShortdurationInsuranceContractsScheduleOfHistoricalClaimsDurationTableTextBlock": {
     "auth_ref": [
      "r632"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of average annual percentage payout of incurred claims by age, after reinsurance, for short-duration insurance contracts.",
        "label": "Short-duration Insurance Contracts, Schedule of Historical Claims Duration [Table Text Block]",
        "terseLabel": "Schedule of incurred and paid claims development"
       }
      }
     },
     "localname": "ShortdurationInsuranceContractsScheduleOfHistoricalClaimsDurationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r93",
      "r107"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SoftwareAndSoftwareDevelopmentCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchased software applications and internally developed software for sale, licensing or long-term internal use.",
        "label": "Software"
       }
      }
     },
     "localname": "SoftwareAndSoftwareDevelopmentCostsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r2",
      "r35",
      "r52",
      "r53",
      "r54",
      "r108",
      "r109",
      "r110",
      "r112",
      "r121",
      "r124",
      "r144",
      "r225",
      "r290",
      "r291",
      "r333",
      "r334",
      "r335",
      "r368",
      "r369",
      "r405",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r640",
      "r641",
      "r642",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "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"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Cash Flows"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Balance Sheets"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Comprehensive Income"
       }
      }
     },
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Changes in Shareholders' Equity"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r108",
      "r109",
      "r110",
      "r144",
      "r499"
     ],
     "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]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatutoryAccountingPracticesDisclosureTextBlock": {
     "auth_ref": [
      "r567",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of how the entity's reporting under GAAP as of the balance sheet date differs from the results based on prescribed and permitted accounting practices of the state or country of domicile in which a relevant statutory filing is made, or differences in results based on the National Association of Insurance Commissioners (NAIC) prescribed practices, or a combination thereof. Describes the accounting practices used and the related monetary effect on statutory surplus, net income, and risk-based capital. If an insurance enterprise's risk-based capital would have triggered a regulatory event had it not used a permitted practice, that fact is disclosed in the financial statements. Permitted statutory accounting practices include practices not prescribed but allowed by the domiciliary state insurance department regulatory authority.",
        "label": "Statutory Accounting Practices Disclosure [Table Text Block]",
        "terseLabel": "Statutory Net Income and Surplus"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplus"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StatutoryAccountingPracticesLineItems": {
     "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": "Statutory Accounting Practices [Line Items]",
        "terseLabel": "Statutory Net Income and Surplus"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatutoryAccountingPracticesRetainedEarningsNotAvailableForDividends": {
     "auth_ref": [
      "r653"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of retained earnings as of the balance sheet date that cannot be distributed to stockholders pursuant to statutory rules and regulations.",
        "label": "Statutory Accounting Practices, Retained Earnings Not Available for Dividends",
        "terseLabel": "Restricted net assets amount"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesRetainedEarningsNotAvailableForDividends",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of dividends that can be declared or paid without approval of regulatory agency.",
        "label": "Statutory Accounting Practices, Statutory Amount Available for Dividend Payments without Regulatory Approval",
        "terseLabel": "Maximum available for dividends without approval"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApproval",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance": {
     "auth_ref": [
      "r559",
      "r651"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of statutory capital and surplus (stockholders' equity) as of the balance sheet date using prescribed or permitted statutory accounting practices (rather than GAAP, if different) of the state or country.",
        "label": "Statutory Accounting Practices, Statutory Capital and Surplus, Balance",
        "terseLabel": "Statutory capital and surplus"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusRequired": {
     "auth_ref": [
      "r652"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of statutory capital required to be maintained as of the balance sheet date under prescribed or permitted statutory accounting practices.",
        "label": "Statutory Accounting Practices, Statutory Capital and Surplus Required",
        "terseLabel": "Minimum statutory capital and surplus or company action level risk-based capital"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesStatutoryCapitalAndSurplusRequired",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatutoryAccountingPracticesStatutoryNetIncomeAmount": {
     "auth_ref": [
      "r559"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net income for the period determined using accounting principles prescribed or permitted by insurance regulators.",
        "label": "Statutory Accounting Practices, Statutory Net Income Amount",
        "terseLabel": "Statutory net income"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesStatutoryNetIncomeAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StatutoryAccountingPracticesTable": {
     "auth_ref": [
      "r567",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detail by state, country, or other jurisdiction of domicile in which financial statements are filed reflecting statutory capital and surplus, net income and the differences between financial reports which are in conformity with generally accepted accounting principles and the statutory financial statements which also use state permitted or prescribed accounting practices.",
        "label": "Statutory Accounting Practices [Table]"
       }
      }
     },
     "localname": "StatutoryAccountingPracticesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r18",
      "r19",
      "r290",
      "r291"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Stock Granted, Value, Share-based Compensation, Net of Forfeitures",
        "terseLabel": "Restricted share awards issued"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchaseProgramAuthorizedAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stock repurchase plan authorized.",
        "label": "Stock Repurchase Program, Authorized Amount",
        "terseLabel": "Share Repurchase Program"
       }
      }
     },
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r19",
      "r23",
      "r24",
      "r96",
      "r186",
      "r221",
      "r424",
      "r465"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Balance",
        "periodStartLabel": "Balance",
        "terseLabel": "Shareholders' equity",
        "totalLabel": "Total shareholders' equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders' equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r466",
      "r467"
     ],
     "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.safetyinsurance.com/role/DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCarryingAmount": {
     "auth_ref": [
      "r692"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment held by insurance company, excluding investment in related party.",
        "label": "Summary of Investments, Other than Investments in Related Parties, Carrying Amount",
        "terseLabel": "Amount at which shown in the Balance Sheet"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost": {
     "auth_ref": [
      "r690"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cost of investment held by insurance company, excluding investment in related party.",
        "label": "Summary of Investments, Other than Investments in Related Parties, Cost",
        "terseLabel": "Cost or Amortized Cost"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesFairValue": {
     "auth_ref": [
      "r691"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of investment held by insurance company, excluding investment in related party.",
        "label": "Summary of Investments, Other than Investments in Related Parties, Fair Value",
        "terseLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental disclosure of cash flow information:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersAmortizationOfDeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r610"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense on deferred policy acquisition cost for property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Amortization of Deferred Policy Acquisition Costs",
        "terseLabel": "Amortization of Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersAmortizationOfDeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r623"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of expense for claims incurred in the current reporting period and related claims settlement costs.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Current Year Claims and Claims Adjustment Expense",
        "terseLabel": "Current year"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersDeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r605"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred policy acquisition cost related to property-casualty insurance policy written.",
        "label": "SEC Schedule, 12-18, Supplemental Information, Property-Casualty Insurance Underwriters, Deferred Policy Acquisition Cost",
        "terseLabel": "Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersDeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersEarnedPremiums": {
     "auth_ref": [
      "r608"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of premium revenue earned by property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Earned Premiums",
        "terseLabel": "Earned Premiums"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersEarnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersNetInvestmentIncome": {
     "auth_ref": [
      "r609"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net investment income earned by property-casualty insurance underwriter.",
        "label": "SEC Schedule, 12-18, Supplemental Information, Property-Casualty Insurance Underwriters, Net Investment Income",
        "terseLabel": "Net Investment Income"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersNetInvestmentIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPaidClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r611"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss reported and paid for claim and claim adjustment expense by property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Paid Claims and Claims Adjustment Expense",
        "terseLabel": "Paid Claims and Claims Adjustment Expenses"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPaidClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPremiumsWritten": {
     "auth_ref": [
      "r612"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of premium written by property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Premiums Written",
        "terseLabel": "Premiums Written"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPremiumsWritten",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r623"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after effects of reinsurance, of expense (reversal of expense) for claims incurred in prior reporting periods and related claims settlement costs.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Prior Year Claims and Claims Adjustment Expense",
        "negatedLabel": "Prior years",
        "terseLabel": "Prior years",
        "verboseLabel": "Prior year"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails",
      "http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersReservesForUnpaidClaimsAndClaimsAdjustmentExpense": {
     "auth_ref": [
      "r606"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of reserve, policy claim payable and loss expense incurred by property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Reserves for Unpaid Claims and Claims Adjustment Expense",
        "terseLabel": "Reserves for Unpaid Claims and Claims Adjustment Expenses"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersReservesForUnpaidClaimsAndClaimsAdjustmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersUnearnedPremiums": {
     "auth_ref": [
      "r607"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of premium written but not yet earned by property-casualty insurance underwriter.",
        "label": "Supplemental Information for Property, Casualty Insurance Underwriters, Unearned Premiums",
        "terseLabel": "Unearned Premiums"
       }
      }
     },
     "localname": "SupplementalInformationForPropertyCasualtyInsuranceUnderwritersUnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationAmortizationOfDeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r591"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization of deferred policy acquisition cost recognized, as disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Amortization of Deferred Policy Acquisition Costs",
        "terseLabel": "Amortization of Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationAmortizationOfDeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationBenefitsClaimsLossesAndSettlementExpense": {
     "auth_ref": [
      "r590"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of insurance benefit, claim, loss and settlement expenses incurred, as disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Benefits, Claims, Losses and Settlement Expense",
        "terseLabel": "Benefits, Claims, Losses, and Settlement Expenses"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationBenefitsClaimsLossesAndSettlementExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationDeferredPolicyAcquisitionCosts": {
     "auth_ref": [
      "r585"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred policy acquisition cost capitalized on contract remaining in force, as disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Deferred Policy Acquisition Costs",
        "terseLabel": "Deferred Policy Acquisition Costs"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationDeferredPolicyAcquisitionCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationLiabilityForFuturePolicyBenefitsLossesClaimsAndLossExpenseReserves": {
     "auth_ref": [
      "r586"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of reserve for future policy claim payable and loss expense to be incurred, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Liability for Future Policy Benefits, Losses, Claims and Loss Expense Reserves",
        "terseLabel": "Future Policy Benefits, Losses, Claims and Loss Expenses"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationLiabilityForFuturePolicyBenefitsLossesClaimsAndLossExpenseReserves",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationNetInvestmentIncome": {
     "auth_ref": [
      "r589"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net investment income earned, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Net Investment Income",
        "terseLabel": "Net Investment Income"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationNetInvestmentIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationOtherOperatingExpense": {
     "auth_ref": [
      "r592"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense classified as other, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Other Operating Expense",
        "terseLabel": "Other Operating Expenses"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationOtherOperatingExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationPremiumRevenue": {
     "auth_ref": [
      "r588"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of premium revenue earned, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Premium Revenue",
        "terseLabel": "Premium Revenue"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationPremiumRevenue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationPremiumsWritten": {
     "auth_ref": [
      "r593"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after premiums ceded and assumed, of premium written, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Premiums Written",
        "terseLabel": "Premiums Written"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationPremiumsWritten",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SupplementaryInsuranceInformationUnearnedPremiums": {
     "auth_ref": [
      "r587"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of premium not yet earned, disclosed in supplementary insurance information.",
        "label": "Supplementary Insurance Information, Unearned Premiums",
        "terseLabel": "Unearned Premiums"
       }
      }
     },
     "localname": "SupplementaryInsuranceInformationUnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r203",
      "r204",
      "r214",
      "r215",
      "r216",
      "r283",
      "r289",
      "r396",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r486",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r710",
      "r711",
      "r712",
      "r713",
      "r714",
      "r715",
      "r716"
     ],
     "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]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockCommonMember": {
     "auth_ref": [
      "r292"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Previously issued common shares repurchased by the issuing entity and held in treasury.",
        "label": "Treasury Stock"
       }
      }
     },
     "localname": "TreasuryStockCommonMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockCommonShares": {
     "auth_ref": [
      "r292"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of previously issued common shares repurchased by the issuing entity and held in treasury.",
        "label": "Treasury Stock, Shares",
        "terseLabel": "Treasury stock shares"
       }
      }
     },
     "localname": "TreasuryStockCommonShares",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockCommonValue": {
     "auth_ref": [
      "r36",
      "r292",
      "r293"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount allocated to previously issued common shares repurchased by the issuing entity and held in treasury.",
        "label": "Treasury Stock, Value",
        "negatedLabel": "Treasury stock, at cost: 2,970,573 and 2,831,168 shares",
        "terseLabel": "Treasury stock, at cost"
       }
      }
     },
     "localname": "TreasuryStockCommonValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TreasuryStockTextBlock": {
     "auth_ref": [
      "r294"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for treasury stock, including, but not limited to, average cost per share, description of share repurchase program, shares repurchased, shares held for each class of treasury stock.",
        "label": "Treasury Stock [Text Block]",
        "terseLabel": "Share Repurchase Program"
       }
      }
     },
     "localname": "TreasuryStockTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgram"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "auth_ref": [
      "r290",
      "r291",
      "r292"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method.",
        "label": "Acquisition of treasury stock",
        "negatedLabel": "Acquisition of treasury stock"
       }
      }
     },
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r111",
      "r112",
      "r113",
      "r114",
      "r125",
      "r190",
      "r191",
      "r222",
      "r223",
      "r224",
      "r225",
      "r226",
      "r227",
      "r259",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r366",
      "r367",
      "r368",
      "r369",
      "r397",
      "r398",
      "r399",
      "r400",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r460",
      "r500",
      "r501",
      "r502",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Type of Adoption [Domain]"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfArrangementAxis": {
     "auth_ref": [
      "r380"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Type of Arrangement and Non-arrangement Transactions [Axis]"
       }
      }
     },
     "localname": "TypeOfArrangementAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails",
      "http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "auth_ref": [
      "r300",
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds or similar securities issued by state, city, or local US governments or the agencies operated by state, city, or local governments. Debt securities issued by state governments may include bond issuances of US state authorities including, for example, but not limited to, housing authorities, dormitory authorities, and general obligations while debt securities issued by political subdivisions of US states would include, for example, debt issuances by county, borough, city, or municipal governments.",
        "label": "Obligations of states and political subdivisions"
       }
      }
     },
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails",
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "auth_ref": [
      "r300",
      "r535",
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This category includes investments in debt securities issued by the United States Department of the Treasury, US Government Agencies and US Government-sponsored Enterprises. Such securities may include treasury bills (short-term maturities - one year or less), treasury notes (intermediate term maturities - two to ten years), and treasury bonds (long-term maturities - ten to thirty years), debt securities issued by the Government National Mortgage Association (Ginnie Mae) and debt securities issued by the Federal National Mortgage Association (Fannie Mae) or the Federal Home Loan Mortgage Corporation (Freddie Mac).",
        "label": "U.S. government and government agencies and authorities"
       }
      }
     },
     "localname": "USTreasuryAndGovernmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasurySecuritiesMember": {
     "auth_ref": [
      "r100",
      "r300",
      "r307",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This category includes information about debt securities issued by the United States Department of the Treasury and backed by the United States government. Such securities primarily consist of treasury bills (short-term maturities - one year or less), treasury notes (intermediate term maturities - two to ten years), and treasury bonds (long-term maturities - ten to thirty years).",
        "label": "U.S. Treasury securities"
       }
      }
     },
     "localname": "USTreasurySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails",
      "http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UndistributedContinuingOperationEarningsLossAllocationToParticipatingSecuritiesBasic": {
     "auth_ref": [
      "r131",
      "r134",
      "r135"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of undistributed earnings (loss) from continuing operations allocated to participating securities for basic earnings (loss) per share or per unit calculation under two-class method.",
        "label": "Undistributed Continuing Operation Earnings (Loss), Allocation to Participating Securities, Basic",
        "negatedLabel": "Allocation of income for participating shares"
       }
      }
     },
     "localname": "UndistributedContinuingOperationEarningsLossAllocationToParticipatingSecuritiesBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UndistributedEarningsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Undistributed earnings attributable to common shareholders - basic"
       }
      }
     },
     "localname": "UndistributedEarningsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UndistributedEarningsDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Undistributed Earnings, Diluted [Abstract]",
        "terseLabel": "Undistributed earnings attributable to common shareholders - diluted"
       }
      }
     },
     "localname": "UndistributedEarningsDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnearnedPremiums": {
     "auth_ref": [
      "r556"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of premiums written on insurance contracts that have not been earned as of the balance sheet date.",
        "label": "Unearned Premiums",
        "terseLabel": "Unearned premium reserves"
       }
      }
     },
     "localname": "UnearnedPremiums",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "auth_ref": [
      "r343",
      "r352"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrecognized tax benefits.",
        "label": "Unrecognized Tax Benefits",
        "terseLabel": "Unrecognized tax benefits"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued": {
     "auth_ref": [
      "r351"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return.",
        "label": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued",
        "terseLabel": "Unrecognized tax benefits interest and penalties accrued"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate": {
     "auth_ref": [
      "r353"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of unrecognized tax benefits that, if recognized, would affect the effective tax rate.",
        "label": "Unrecognized Tax Benefits that Would Impact Effective Tax Rate",
        "terseLabel": "Unrecognized tax benefits if recognized would affect the effective tax rate"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r145",
      "r146",
      "r147",
      "r148",
      "r151",
      "r152",
      "r153"
     ],
     "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.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesBalance": {
     "auth_ref": [
      "r102",
      "r105"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of valuation and qualifying accounts and reserves.",
        "label": "Valuation Allowances and Reserves, Balance",
        "periodEndLabel": "Balance at End of Period",
        "periodStartLabel": "Balance at Beginning of Period"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesBalance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense": {
     "auth_ref": [
      "r103"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to cost and expense.",
        "label": "Valuation Allowances and Reserves, Charged to Cost and Expense",
        "terseLabel": "Charged to Costs and Expenses"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesChargedToCostAndExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesDeductions": {
     "auth_ref": [
      "r104"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in valuation and qualifying accounts and reserves.",
        "label": "Valuation Allowances and Reserves, Deductions",
        "terseLabel": "Deductions"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesDeductions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VestingAxis": {
     "auth_ref": [
      "r328"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Axis]"
       }
      }
     },
     "localname": "VestingAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VestingDomain": {
     "auth_ref": [
      "r328"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Domain]"
       }
      }
     },
     "localname": "VestingDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r128",
      "r137"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Diluted (in shares)",
        "totalLabel": "Diluted earnings per share denominator"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r126",
      "r137"
     ],
     "calculation": {
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Basic (in shares)",
        "totalLabel": "Basic earnings per share denominator"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails",
      "http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 7
  }
 },
 "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": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r101": {
   "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"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r108": {
   "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"
  },
  "r109": {
   "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"
  },
  "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": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793"
  },
  "r111": {
   "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"
  },
  "r112": {
   "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"
  },
  "r113": {
   "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"
  },
  "r114": {
   "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"
  },
  "r115": {
   "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"
  },
  "r116": {
   "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"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=SL124452830-107794"
  },
  "r118": {
   "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"
  },
  "r119": {
   "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"
  },
  "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": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r121": {
   "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"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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"
  },
  "r129": {
   "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"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "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"
  },
  "r133": {
   "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"
  },
  "r134": {
   "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"
  },
  "r135": {
   "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"
  },
  "r136": {
   "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"
  },
  "r137": {
   "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"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r144": {
   "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"
  },
  "r145": {
   "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"
  },
  "r146": {
   "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"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(25))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8672-108599"
  },
  "r155": {
   "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"
  },
  "r156": {
   "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"
  },
  "r157": {
   "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"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r160": {
   "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"
  },
  "r161": {
   "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"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8813-108599"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r169": {
   "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"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "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"
  },
  "r171": {
   "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"
  },
  "r172": {
   "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"
  },
  "r173": {
   "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"
  },
  "r174": {
   "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"
  },
  "r175": {
   "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"
  },
  "r176": {
   "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"
  },
  "r177": {
   "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"
  },
  "r178": {
   "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"
  },
  "r179": {
   "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"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "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"
  },
  "r181": {
   "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"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124259787&loc=d3e4647-111522"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5033-111524"
  },
  "r185": {
   "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"
  },
  "r186": {
   "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"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534"
  },
  "r19": {
   "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"
  },
  "r190": {
   "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"
  },
  "r191": {
   "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"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "310",
   "URI": "http://asc.fasb.org/topic&trid=2196771"
  },
  "r193": {
   "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"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=124260329&loc=SL6284422-111562"
  },
  "r195": {
   "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"
  },
  "r196": {
   "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"
  },
  "r197": {
   "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"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-111563"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-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(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-111563"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-111563"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "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"
  },
  "r205": {
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r208": {
   "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"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27340-111563"
  },
  "r21": {
   "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"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563"
  },
  "r211": {
   "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"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583714&loc=SL75117360-209713"
  },
  "r214": {
   "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"
  },
  "r215": {
   "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"
  },
  "r216": {
   "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"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117546-209714"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=125513658&loc=d3e32014-111567"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570"
  },
  "r22": {
   "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"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "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"
  },
  "r227": {
   "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"
  },
  "r228": {
   "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"
  },
  "r229": {
   "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"
  },
  "r23": {
   "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"
  },
  "r230": {
   "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"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "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"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r24": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r25": {
   "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"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r252": {
   "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"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "http://asc.fasb.org/topic&trid=2155823"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r259": {
   "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"
  },
  "r26": {
   "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"
  },
  "r260": {
   "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"
  },
  "r261": {
   "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"
  },
  "r262": {
   "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"
  },
  "r263": {
   "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"
  },
  "r264": {
   "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"
  },
  "r265": {
   "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"
  },
  "r266": {
   "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"
  },
  "r267": {
   "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"
  },
  "r268": {
   "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"
  },
  "r269": {
   "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"
  },
  "r27": {
   "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"
  },
  "r270": {
   "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"
  },
  "r271": {
   "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"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r279": {
   "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"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r283": {
   "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"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r288": {
   "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"
  },
  "r289": {
   "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"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.13(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "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"
  },
  "r291": {
   "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"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=6405834&loc=d3e23315-112656"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "http://asc.fasb.org/subtopic&trid=2208821"
  },
  "r295": {
   "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"
  },
  "r296": {
   "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"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "710",
   "URI": "http://asc.fasb.org/topic&trid=2127225"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "712",
   "URI": "http://asc.fasb.org/topic&trid=2197446"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "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": "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"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r301": {
   "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"
  },
  "r302": {
   "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"
  },
  "r303": {
   "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"
  },
  "r304": {
   "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"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "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"
  },
  "r309": {
   "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"
  },
  "r31": {
   "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"
  },
  "r310": {
   "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"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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"
  },
  "r315": {
   "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"
  },
  "r316": {
   "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"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r318": {
   "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"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b),(f)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r329": {
   "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"
  },
  "r33": {
   "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"
  },
  "r330": {
   "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"
  },
  "r331": {
   "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"
  },
  "r332": {
   "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "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"
  },
  "r336": {
   "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "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"
  },
  "r339": {
   "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"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "35",
   "Subparagraph": "(a)",
   "Topic": "720",
   "URI": "http://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "35",
   "Subparagraph": "(b)",
   "Topic": "720",
   "URI": "http://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=SL37586934-109318"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e32247-109318"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e32280-109318"
  },
  "r346": {
   "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"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r35": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r354": {
   "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"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32840-109319"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32847-109319"
  },
  "r36": {
   "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"
  },
  "r360": {
   "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"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32621-109319"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32632-109319"
  },
  "r363": {
   "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"
  },
  "r364": {
   "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"
  },
  "r365": {
   "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"
  },
  "r366": {
   "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"
  },
  "r367": {
   "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"
  },
  "r368": {
   "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"
  },
  "r369": {
   "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"
  },
  "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": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r371": {
   "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"
  },
  "r372": {
   "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"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r375": {
   "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"
  },
  "r376": {
   "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"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "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": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "808",
   "URI": "http://asc.fasb.org/extlink&oid=6931272&loc=SL5834143-161434"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=d3e5283-111683"
  },
  "r382": {
   "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"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569643-111683"
  },
  "r384": {
   "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"
  },
  "r385": {
   "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"
  },
  "r386": {
   "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"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r39": {
   "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"
  },
  "r390": {
   "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"
  },
  "r391": {
   "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"
  },
  "r392": {
   "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"
  },
  "r393": {
   "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"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=124256753&loc=SL5864739-113975"
  },
  "r396": {
   "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"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "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": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e637-108580"
  },
  "r400": {
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "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"
  },
  "r406": {
   "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"
  },
  "r407": {
   "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"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=122636397&loc=SL7495116-110257"
  },
  "r409": {
   "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"
  },
  "r41": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r415": {
   "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"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL7498348-110258"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594786&loc=SL75136599-209740"
  },
  "r42": {
   "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"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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"
  },
  "r429": {
   "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"
  },
  "r43": {
   "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"
  },
  "r430": {
   "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"
  },
  "r431": {
   "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"
  },
  "r432": {
   "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"
  },
  "r433": {
   "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"
  },
  "r434": {
   "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"
  },
  "r435": {
   "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"
  },
  "r436": {
   "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"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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"
  },
  "r439": {
   "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"
  },
  "r44": {
   "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"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL77916155-209984"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL77916155-209984"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL77916155-209984"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL77916155-209984"
  },
  "r446": {
   "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"
  },
  "r447": {
   "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"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r45": {
   "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"
  },
  "r450": {
   "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"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918673-209980"
  },
  "r452": {
   "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"
  },
  "r453": {
   "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"
  },
  "r454": {
   "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"
  },
  "r455": {
   "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"
  },
  "r456": {
   "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"
  },
  "r457": {
   "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"
  },
  "r458": {
   "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"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/subtopic&trid=77888251"
  },
  "r46": {
   "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"
  },
  "r460": {
   "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"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864"
  },
  "r462": {
   "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"
  },
  "r463": {
   "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"
  },
  "r464": {
   "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"
  },
  "r465": {
   "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"
  },
  "r466": {
   "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"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r47": {
   "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"
  },
  "r470": {
   "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"
  },
  "r471": {
   "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"
  },
  "r472": {
   "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"
  },
  "r473": {
   "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"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "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"
  },
  "r479": {
   "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"
  },
  "r48": {
   "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"
  },
  "r480": {
   "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"
  },
  "r481": {
   "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"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "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"
  },
  "r487": {
   "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"
  },
  "r488": {
   "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"
  },
  "r489": {
   "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"
  },
  "r49": {
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "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"
  },
  "r493": {
   "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"
  },
  "r494": {
   "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"
  },
  "r495": {
   "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"
  },
  "r496": {
   "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"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-04(Schedule I))",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=120391182&loc=d3e5864-122674"
  },
  "r50": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "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"
  },
  "r503": {
   "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"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117340910&loc=d3e59706-112781"
  },
  "r506": {
   "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"
  },
  "r507": {
   "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"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL116659661-227067"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(17))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r512": {
   "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"
  },
  "r513": {
   "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"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r515": {
   "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"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(1),(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r518": {
   "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"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r52": {
   "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"
  },
  "r520": {
   "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"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13)(c))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r524": {
   "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"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(20))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "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"
  },
  "r53": {
   "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"
  },
  "r530": {
   "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"
  },
  "r531": {
   "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"
  },
  "r532": {
   "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"
  },
  "r533": {
   "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"
  },
  "r534": {
   "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"
  },
  "r535": {
   "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"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=SL120269850-112803"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=SL120269850-112803"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=SL120269850-112803"
  },
  "r539": {
   "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"
  },
  "r54": {
   "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"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r541": {
   "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"
  },
  "r542": {
   "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"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6480726&loc=d3e6691-158385"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99397103&loc=d3e6811-158387"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99397103&loc=d3e6816-158387"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99397103&loc=d3e6824-158387"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(13)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123457312&loc=SL116659633-172590"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(5))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r554": {
   "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"
  },
  "r555": {
   "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"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(13)(a)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r557": {
   "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"
  },
  "r558": {
   "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"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(c))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(13))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868656-224227"
  },
  "r560": {
   "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"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(7))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r562": {
   "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"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(h))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.23(c))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(1))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "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": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(11))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r571": {
   "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"
  },
  "r572": {
   "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"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r574": {
   "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"
  },
  "r575": {
   "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"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(3)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(3)(d))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(7)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r579": {
   "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"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r580": {
   "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"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r582": {
   "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"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.5)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.5,6,7)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column B))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column C))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column D))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column F))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column G))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r59": {
   "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"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column H))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column I))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column J))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16(Column K))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-16)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column A))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574960-122915"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column B))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column C))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column D))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column E))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "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(12))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17(Column F))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-17)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e574992-122915"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column A)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column A))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column B))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column C))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column E))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column F))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column G))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r61": {
   "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"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column I))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column J))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18(Column K))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.12-18)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120401096&loc=d3e575016-122915"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=35755530&loc=d3e11264-158415"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=35755530&loc=d3e11264-158415"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124505477&loc=SL117422543-158416"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124505477&loc=SL117422543-158416"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504731&loc=d3e11522-158419"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99404803&loc=d3e21409-158489"
  },
  "r62": {
   "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"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99404803&loc=d3e21412-158489"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "340",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6485982&loc=d3e22818-158507"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884095&loc=d3e14764-158437"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884095&loc=d3e14764-158437"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884095&loc=d3e14764-158437"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(cc)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884095&loc=d3e14764-158437"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884095&loc=d3e14764-158437"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671311-158438"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671311-158438"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671311-158438"
  },
  "r63": {
   "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"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671315-158438"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671317-158438"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4G",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671329-158438"
  },
  "r633": {
   "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"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "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"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=122147696&loc=SL65671395-207642"
  },
  "r638": {
   "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"
  },
  "r639": {
   "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"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1(e))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "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"
  },
  "r644": {
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "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"
  },
  "r647": {
   "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"
  },
  "r648": {
   "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"
  },
  "r649": {
   "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"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(a),(b))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/subtopic&trid=2560295"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24708-158529"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24708-158529"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24708-158529"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24708-158529"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24746-158529"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486098&loc=d3e24790-158529"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "505",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=82848697&loc=d3e24938-158530"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "505",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=82848697&loc=d3e24959-158530"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "605",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486390&loc=d3e25715-158539"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "605",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486390&loc=d3e25718-158539"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "605",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=84167274&loc=d3e27175-158546"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(a)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(b)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(b)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(b)(3)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(c)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(c)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Subparagraph": "(c)(3)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6486672&loc=d3e27261-158547"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "605",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99379264&loc=d3e27758-158548"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "605",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99379264&loc=d3e27830-158548"
  },
  "r671": {
   "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"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124508989&loc=d3e19393-158473"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124506110&loc=d3e32546-158582"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "944",
   "URI": "http://asc.fasb.org/topic&trid=2303980"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r68": {
   "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"
  },
  "r680": {
   "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"
  },
  "r681": {
   "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"
  },
  "r682": {
   "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"
  },
  "r683": {
   "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"
  },
  "r684": {
   "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"
  },
  "r685": {
   "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"
  },
  "r686": {
   "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"
  },
  "r687": {
   "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"
  },
  "r688": {
   "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"
  },
  "r689": {
   "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"
  },
  "r69": {
   "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"
  },
  "r690": {
   "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"
  },
  "r691": {
   "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"
  },
  "r692": {
   "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"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=123364037&loc=d3e3115-115594"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99779-112916"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99893-112916"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=SL120174063-112916"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r700": {
   "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"
  },
  "r701": {
   "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"
  },
  "r702": {
   "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"
  },
  "r703": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r704": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r705": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r706": {
   "Name": "Form 10-K",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "310"
  },
  "r707": {
   "Name": "Form 20-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "220",
   "Subsection": "f"
  },
  "r708": {
   "Name": "Form 40-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "240",
   "Subsection": "f"
  },
  "r709": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r71": {
   "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"
  },
  "r710": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402"
  },
  "r711": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)"
  },
  "r712": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)"
  },
  "r713": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)"
  },
  "r714": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)"
  },
  "r715": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)"
  },
  "r716": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)"
  },
  "r717": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1403"
  },
  "r718": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r719": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r720": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "04"
  },
  "r721": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column A",
   "Publisher": "SEC",
   "Section": "12",
   "Subparagraph": "(a)",
   "Subsection": "18"
  },
  "r722": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column A",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "18"
  },
  "r723": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "a",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "04"
  },
  "r724": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "09"
  },
  "r725": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "15"
  },
  "r726": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "16"
  },
  "r727": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "17"
  },
  "r728": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "18"
  },
  "r729": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01"
  },
  "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": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01"
  },
  "r731": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02"
  },
  "r732": {
   "Name": "Rule 15c3-1",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "15c3-1"
  },
  "r733": {
   "Name": "Securities Act",
   "Number": "230",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3444-108585"
  },
  "r79": {
   "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"
  },
  "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": "21D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=SL94080555-108585"
  },
  "r81": {
   "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"
  },
  "r82": {
   "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"
  },
  "r83": {
   "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"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r85": {
   "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"
  },
  "r86": {
   "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"
  },
  "r87": {
   "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"
  },
  "r88": {
   "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"
  },
  "r89": {
   "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"
  },
  "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": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4273-108586"
  },
  "r91": {
   "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"
  },
  "r92": {
   "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"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18726-107790"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(c))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r99": {
   "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"
  }
 },
 "version": "2.1"
}
