<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="saft-20260513.xsd" xlink:type="simple"/>
    <context id="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001172052</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_GFRDc4v70UWixZoddBiZMw_2_1">0001172052</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_voMYDCol1EGWr9Lp0gEirA_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_lfPo226zXE6JvsLDI4H7fw">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_d7FVOJqIykW-wMmXViC0Jg">2026-05-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_KNfjx6sc8Uy0V0enb9slbg">SAFETY INSURANCE GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_FmNMCZTIj0mhiIypqYAoyQ_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_AGioOe6ytkS1a862PYqbKA_1_1">000-50070</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_YoXoIKUXXkOgv7DvaZgX8A_1_2">13-4181699</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_Iv7KNWN3uEaxeDf-MVZwEA">20 Custom House Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_Pjrs_8YkUES04mM-wAyljw">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_EpLWy0pkyEisv9v3vx3etw">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_K1KxBEcv-EGXc1AKTu6IqQ">02110</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_16wQZDf7KUeA2UmVA4zXkQ">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_DQoSAtNApEWgcM0rOp6EHw">951-0600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_Chs0I5Bl7kexmOj_dcjh2w">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_VP4Dqz0ieUyasJAOUkRgdA">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_oeaFZULsMEqZBeCPi6Wl_Q">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_WnDqpaxWEUCNvNUkn8Q78g">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_VtYFXhFlb0W2Ey7Evc1xDg_1_0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_rLtW7LUL0EuPQv4TNZ_eqQ_1_1">SAFT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Tc_hT1Q4Ffka0aDMz3GBD3VBg_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_5_13_2026_To_5_13_2026_1IbghqGABUKuHQlgDSTsDA"
      id="Narr_CZpV0BqzCUe_i5i7D9PNKg">false</dei:EntityEmergingGrowthCompany>
</xbrl>
