<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>533</ContextCount>
  <ElementCount>568</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>88</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00305 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00400 - Statement - Consolidated Statements of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Allowance for Expected Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLosses</Role>
      <ShortName>Allowance for Expected Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Equipment and Leasehold Improvements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovements</Role>
      <ShortName>Equipment and Leasehold Improvements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Share-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensation</Role>
      <ShortName>Share-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Reinsurance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureReinsurance</Role>
      <ShortName>Reinsurance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Loss and Loss Adjustment Expense Reserves</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReserves</Role>
      <ShortName>Loss and Loss Adjustment Expense Reserves</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Share Repurchase Program</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgram</Role>
      <ShortName>Share Repurchase Program</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11501 - Disclosure - Statutory Net Income and Surplus</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplus</Role>
      <ShortName>Statutory Net Income and Surplus</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11601 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>11701 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>11801 - Disclosure - Schedule I - Summary of Investments - Other than Investments in Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties</Role>
      <ShortName>Schedule I - Summary of Investments - Other than Investments in Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>11901 - Disclosure - Schedule II - Condensed Financial Information of the Registrant</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrant</Role>
      <ShortName>Schedule II - Condensed Financial Information of the Registrant</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>12001 - Disclosure - Schedule III - Supplementary Insurance Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformation</Role>
      <ShortName>Schedule III - Supplementary Insurance Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>12101 - Disclosure - Schedule IV - Reinsurance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsurance</Role>
      <ShortName>Schedule IV - Reinsurance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>12201 - Disclosure - Schedule V - Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccounts</Role>
      <ShortName>Schedule V - Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>12301 - Disclosure - Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperations</Role>
      <ShortName>Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>20202 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureInvestments</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Allowance for Expected Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesTables</Role>
      <ShortName>Allowance for Expected Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLosses</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Equipment and Leasehold Improvements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsTables</Role>
      <ShortName>Equipment and Leasehold Improvements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovements</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Share-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationTables</Role>
      <ShortName>Share-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureLeases</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Reinsurance (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureReinsuranceTables</Role>
      <ShortName>Reinsurance (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureReinsurance</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Loss and Loss Adjustment Expense Reserves (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables</Role>
      <ShortName>Loss and Loss Adjustment Expense Reserves (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReserves</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>31603 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureBasisOfPresentationDetails</Role>
      <ShortName>Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureBasisOfPresentation</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsDetails</Role>
      <ShortName>Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Investments Amortized Cost and Estimated Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsAmortizedCostAndEstimatedFairValueDetails</Role>
      <ShortName>Investments Amortized Cost and Estimated Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Investments Gross Realized Gains and Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossRealizedGainsAndLossesDetails</Role>
      <ShortName>Investments Gross Realized Gains and Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40304 - Disclosure - Investments Gross Unrealized Losses and Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValueDetails</Role>
      <ShortName>Investments Gross Unrealized Losses and Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40305 - Disclosure - Investments Allowance for Expected Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsAllowanceForExpectedCreditLossesDetails</Role>
      <ShortName>Investments Allowance for Expected Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40306 - Disclosure - Investments Components of Net Investment Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureInvestmentsComponentsOfNetInvestmentIncomeDetails</Role>
      <ShortName>Investments Components of Net Investment Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Allowance for Expected Credit Losses Balances of Premiums Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesBalancesOfPremiumsReceivableDetails</Role>
      <ShortName>Allowance for Expected Credit Losses Balances of Premiums Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Allowance for Expected Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesDetails</Role>
      <ShortName>Allowance for Expected Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureAllowanceForExpectedCreditLossesTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Equipment and Leasehold Improvements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsDetails</Role>
      <ShortName>Equipment and Leasehold Improvements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureEquipmentAndLeaseholdImprovementsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Employee Benefit Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlanDetails</Role>
      <ShortName>Employee Benefit Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureEmployeeBenefitPlan</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Share-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationDetails</Role>
      <ShortName>Share-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40702 - Disclosure - Share-Based Compensation Restricted Stock Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareBasedCompensationRestrictedStockActivityDetails</Role>
      <ShortName>Share-Based Compensation Restricted Stock Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureLeasesTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Leases - Components of lease (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLeasesComponentsOfLeaseDetails</Role>
      <ShortName>Leases - Components of lease (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40903 - Disclosure - Leases - Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLeasesMaturitiesDetails</Role>
      <ShortName>Leases - Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureDebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureDebt</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Reinsurance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureReinsuranceDetails</Role>
      <ShortName>Reinsurance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureReinsuranceTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>41102 - Disclosure - Reinsurance - Written and Earned Premiums (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureReinsuranceWrittenAndEarnedPremiumsDetails</Role>
      <ShortName>Reinsurance - Written and Earned Premiums (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Loss and Loss Adjustment Expense Reserves (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDetails</Role>
      <ShortName>Loss and Loss Adjustment Expense Reserves (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Loss and Loss Adjustment Expense Reserves - Incurred and paid claims development (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesIncurredAndPaidClaimsDevelopmentDetails</Role>
      <ShortName>Loss and Loss Adjustment Expense Reserves - Incurred and paid claims development (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41203 - Disclosure - Loss and Loss Adjustment Expense Reserves - Supplementary information about average historical claims (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesSupplementaryInformationAboutAverageHistoricalClaimsDetails</Role>
      <ShortName>Loss and Loss Adjustment Expense Reserves - Supplementary information about average historical claims (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <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)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureLossAndLossAdjustmentExpenseReservesDisclosureOfIncurredAndPaidClaimsDevelopmentToLiabilityForUnpaidClaimsAndClaimAdjustmentExpensesDetails</Role>
      <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)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41302 - Disclosure - Income Taxes - Sources of Difference and Tax Effects (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureIncomeTaxesSourcesOfDifferenceAndTaxEffectsDetails</Role>
      <ShortName>Income Taxes - Sources of Difference and Tax Effects (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41303 - Disclosure - Income Taxes - Temporary Differences (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureIncomeTaxesTemporaryDifferencesDetails</Role>
      <ShortName>Income Taxes - Temporary Differences (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Share Repurchase Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgramDetails</Role>
      <ShortName>Share Repurchase Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureShareRepurchaseProgram</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>41501 - Disclosure - Statutory Net Income and Surplus (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplusDetails</Role>
      <ShortName>Statutory Net Income and Surplus (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureStatutoryNetIncomeAndSurplus</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>41601 - Disclosure - Fair Value of Financial Instruments Level 1 - 3 Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsLevel13InputsDetails</Role>
      <ShortName>Fair Value of Financial Instruments Level 1 - 3 Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>41602 - Disclosure - Fair Value of Financial Instruments Transfers between Levels (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureFairValueOfFinancialInstrumentsTransfersBetweenLevelsDetails</Role>
      <ShortName>Fair Value of Financial Instruments Transfers between Levels (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>41801 - Disclosure - Schedule I - Summary of Investments - Other than Investments in Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails</Role>
      <ShortName>Schedule I - Summary of Investments - Other than Investments in Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>41901 - Disclosure - Schedule II - Condensed Financial Information of the Registrant (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantDetails</Role>
      <ShortName>Schedule II - Condensed Financial Information of the Registrant (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrant</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>41902 - Disclosure - Schedule II - Condensed Financial Information of the Registrant Comprehensive Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantComprehensiveIncomeDetail</Role>
      <ShortName>Schedule II - Condensed Financial Information of the Registrant Comprehensive Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>41903 - Disclosure - Schedule II - Condensed Financial Information of the Registrant Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrantCashFlowDetails</Role>
      <ShortName>Schedule II - Condensed Financial Information of the Registrant Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleIiCondensedFinancialInformationOfRegistrant</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>42001 - Disclosure - Schedule III - Supplementary Insurance Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformationDetails</Role>
      <ShortName>Schedule III - Supplementary Insurance Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleIiiSupplementaryInsuranceInformation</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>42101 - Disclosure - Schedule IV - Reinsurance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsuranceDetails</Role>
      <ShortName>Schedule IV - Reinsurance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleIvReinsurance</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>42201 - Disclosure - Schedule V - Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule V - Valuation and Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleVValuationAndQualifyingAccounts</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="saft-20211231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>42301 - Disclosure - Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperationsDetails</Role>
      <ShortName>Schedule VI - Supplemental Information Concerning Property and Casualty Insurance Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.safetyinsurance.com/role/DisclosureScheduleViSupplementalInformationConcerningPropertyAndCasualtyInsuranceOperations</ParentRole>
      <Position>82</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="saft-20211231x10k.htm">saft-20211231x10k.htm</File>
    <File>saft-20211231.xsd</File>
    <File>saft-20211231_cal.xml</File>
    <File>saft-20211231_def.xml</File>
    <File>saft-20211231_lab.xml</File>
    <File>saft-20211231_pre.xml</File>
    <File>saft-20211231ex231b7065b.htm</File>
    <File>saft-20211231ex23266b43f.htm</File>
    <File>saft-20211231ex311416462.htm</File>
    <File>saft-20211231ex31288cf99.htm</File>
    <File>saft-20211231ex321d2b623.htm</File>
    <File>saft-20211231ex322b2b320.htm</File>
    <File>saft-20211231xex21.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>saft-20211231x10k004.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="7">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="2001">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
