<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="saft-20261103.xsd" xlink:type="simple"/>
    <context id="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001172052</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_Ew5JUMTr2Eai7d7YU17fhw_2_1">0001172052</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_3UAjLzDZlEqvC_n05LkdAw_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_Vo16AQbsnUiSAkGnbovpbQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_ORfFxeatkkymeUaqJW3Wrg">2026-11-03</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_1VnEus6-30y-VoJcLGG92Q">SAFETY INSURANCE GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_M7gD6ymVKESTiy9AhQ0wTA_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_l_FrMEKTjUWjAESNHZNx5w_1_1">000-50070</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_AwPNwssbsU6Y1T3F234XHA_1_2">13-4181699</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_H1RKTvM1ikync7CicjY8Aw">20 Custom House Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_kBpQJyEBjkGTCUsD4c7Iyg">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_44xfDs_55Uy-C07KYsSF9w">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_bDZtjNTRpESraciM6jyZ8A_1_1">02110</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_ECJmVp231UGJ4s3TD-qGBg">617</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_qnsBEuH2I0SlQbpQ-3Lk3Q">951-0600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_yV-DjtU2EEu2xN_pPZa56w">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_hDuDlyFk6EGHqHg9YjWhNw">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_bZjS4LQIhEu9hgCCRRl5Ow">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_L0qOl-qi9ECBA995Ayd_-w">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_fcrQZVq8L0OuLZI_HTv5Pg_1_0">Common Stock, $0.01 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_0PHx5rix706HmP32z7utlA_1_2">SAFT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Tc_9n-1_j6nBk-VWqM8Z9cexA_1_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_11_3_2026_To_11_3_2026_WV3ufu2nCkuCh96-rVhu3Q"
      id="Narr_0R-N_cKWFk6VjJjcj5XHLQ">false</dei:EntityEmergingGrowthCompany>
</xbrl>
