<?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-20260805.xsd" xlink:type="simple"/>
    <context id="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001172052</identifier>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_XwCER_3myEmGu2EpasAdkg_2_1">0001172052</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_DWzA9Lpn9kKTtnGXQ-U4bg_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_CKHsbvhW7EOEvGbpd-CFcQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_hm-khbPx4kOIjsiUeOEiIw">2026-08-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_jmGWjLdLNUiDOGwWEXZncg">SAFETY INSURANCE GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_X356HaOHW0uv1yXmXXdctg_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_2RjCnQ-B_0S-KK5fvxdiyA_1_1">000-50070</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_9WoKoSE5ykaP22UQcWtxXQ_1_2">13-4181699</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_zNrhUb_q1E-_Gnlsk_VaMA">20 Custom House Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_3kretj06NEifsLVqiwCk-A">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_rRJ2RxOw8UOT4x1m-BVKcw">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_ruRR2Mcb0EOdLWeRAS61AA">02110</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_El8SZfWx10Cw4Sjp0di4HQ">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_VVxUjkCg4Uqpn1iPdwRrUA">951-0600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_Q0YDToZ6wUGnqA3s0vcp5g">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_PNO0E9kz_Uu_EoQN6wwFNg">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_PFIwNAWIwkGsMnA8CskYfQ">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_mu6XLxmQS0WC22ybzAO0pg">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_KGbjUR16hEG4nOTAVp5-hA_1_0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_2t-gqRMilkyzbvdf7Mk16g_1_1">SAFT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Tc_4YaEvpZGtEm1ShhMjk739w_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_8_5_2026_To_8_5_2026_tQ9QJN2rC061d4LsjGfAIg"
      id="Narr_JJ46up-zfE6n1XqFp_VebA">false</dei:EntityEmergingGrowthCompany>
</xbrl>
